Received: by 10.223.185.116 with SMTP id b49csp3442296wrg; Tue, 13 Feb 2018 02:28:56 -0800 (PST) X-Google-Smtp-Source: AH8x227vssS43wJJaE0qz3WPlNFRpCpRPjZb4ZWWn/mEQZas+NMxa8c1IdKtLKYbbpo6xSZlxzjv X-Received: by 2002:a17:902:5388:: with SMTP id c8-v6mr669197pli.355.1518517736883; Tue, 13 Feb 2018 02:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518517736; cv=none; d=google.com; s=arc-20160816; b=XKd+NOvUQ/qdGXZRECrqJJxTFjShEFKkQ/qjqqBiQzsD/iQVGV4w1bEiu2YVcdu/ME 8y3hi5oGAX0T+ooQoXHRKblXic30wutYMQiFUqmNb7aobNtRkfnibi5LcAeJpzRQWllL hRSTp2aIAlTOaxSUf2EISUBb3nvA0G33mcyphM1InLr9GzSissZwDWgpjgFtr4ffsNLs TSj306p1W9c164s1z6Q0I67FpWqaI02lZDaBS9jujVELCTgNcgq0ht8xmjuFejE/dSSQ YX6mz9Mc6215/JfK7F7FU8ZV6Ur5iYbT/86bICC18Sb1YwX3AdM12Jums+n/v7eP1JRa d+yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=jVY0oyC/hRaqwRqQUN1PYjpb4GvVrXBId6ZpEZnVnns=; b=SxoYmT01xzQZcfdeAB79KBupqPAJQzcmLZA7BcGqFd0wi1x/p9BsWhd5vpcHcnkalX YzHYgCEZQ1Yr4+Ytsv7XpZBcv9r/2Bi0GIpPXgeqGih7R+YfU+qu1VH4NBO5PwviyAN8 wDZuaRsoDiCZtjCab2BOHpqPwUPB8kVWyfl1mGxcRMCaAvt0V/XQDA/MVlbuboRIdxjM o0v+x7p50N5g2cyE8bqdiwfGXEJXeKSpBnKeiqsAO/Ld+wxBVJwouK5Exg3h5S2jS2EW +TBNnDN9B94wP1hxKD2Avh7AazMPC7IpkKd2OW0Obj+Ea7A55uqNLYdmiEHr/WgTD8uN YzAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12-v6si7246031pld.162.2018.02.13.02.28.41; Tue, 13 Feb 2018 02:28:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754243AbeBMK1a (ORCPT + 99 others); Tue, 13 Feb 2018 05:27:30 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:50201 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751685AbeBMK10 (ORCPT ); Tue, 13 Feb 2018 05:27:26 -0500 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1elXki-0007k8-Jb; Tue, 13 Feb 2018 11:23:56 +0100 Date: Tue, 13 Feb 2018 11:27:16 +0100 (CET) From: Thomas Gleixner To: Reinette Chatre cc: "Hindman, Gavin" , "Yu, Fenghua" , "Luck, Tony" , "vikas.shivappa@linux.intel.com" , "Hansen, Dave" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 00/20] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling In-Reply-To: <0a93c952-070f-eb79-74d5-25c1df8a9791@intel.com> Message-ID: References: <93415e33-6adf-047f-9a46-0862c3cd33b6@intel.com> <0a93c952-070f-eb79-74d5-25c1df8a9791@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Feb 2018, Reinette Chatre wrote: > On 1/16/2018 3:38 AM, Thomas Gleixner wrote: > All tests involve a user space application that allocates (malloc() with > mlockall()) or in the case of Cache Pseudo-Locking maps using mmap()) a > 256KB region of memory. The application then randomly accesses this > region, 32 bytes at a time, measuring the latency in cycles of each > access using the rdtsc instruction. Each time a test is run it is > repeated ten times. > In both the PALLOC and CAT tests there was improvement (CAT most > significant) in latency accessing a 256KB memory region but in both > (PALLOC and CAT) 512KB of cache was set aside for application to obtain > these results. Using Cache Pseudo-Locking to access the 256KB memory > region only 256KB of cache was set aside while also reducing the access > latency when compared to both PALLOC and CAT. > > I do hope these results establishes the value of Cache Pseudo-Locking to > you. Very nice. Thank you so much for doing this. That kind of data is really valuable. My take away from this: All of the mechanisms are only delivering best effort and the real benefit is the reduction of average latency. The worst case outliers are in the same ballpark at seems. > The rebased patch series used in this testing will be sent out > this week. I'll make sure to have cycles available for review. Thanks, tglx