Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp8999imm; Thu, 2 Aug 2018 12:55:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdZO9axnVgQqfYf6Wecmq+aKoX8lq+TV3oEgXIARnn3DB9+hFtPI3vevvwya8Vp4KqfpjlR X-Received: by 2002:a63:6604:: with SMTP id a4-v6mr793885pgc.404.1533239740595; Thu, 02 Aug 2018 12:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533239740; cv=none; d=google.com; s=arc-20160816; b=UG4WyQwEb3NUVJL25MAQ4VSij/dduvnwqQbcqtgXuUQMW7XE2kHrmtjROX3SYKO9qe bQQZK98fFX/t46uW82iq/XCtyE3lFrjtBzFVsCbzmNWcM3mEj5T9nhO5LMF9+WThPoxZ Ihy9xpfw9h61PECSmrOEDiw389lHDzzxQs375UV8XBQsiwSnD4xDXjnrWWoHsTCK9ibQ HK1wEXvHeX01NWyxvH6YWJciRDshJrl+3is8/p7FjZPTsqaDycxCAMKy4FrOFzaVPK++ xg63CmnMo2H4Heu7rzhk24SbXfLATOYxwGWaXNuj2jszk2S7tCf6OmKr60hS4k3YveKm WMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=SoFNaEJssEh5lDXOJmxu+4uTXbUwwRfiPoPNNxvlTrg=; b=c9AnIo43QmL3vaXhWbv3Ok8K95RUCoYQNnhmL90D05qmLsSWgXgV2Tm2QvLgMebdJT H9MzfO4s4or2D1YtHSCTmSwJz2GPoHMr8ygJmDVRUPKsKyMtm7IWhyIcNS1bFF7BK70u xJ8F0FQwFR8vbpuQFnJgaJzw9bz/sRnhFC19mvZHfptVxKF3G2Hfhw030+3jnfYNzJSK 4Kef5xGLNckcHcXZPbXw+6Ogs/QsH0V0EmqxVik4QqmRhI1jBTNSVkxWnnu0EsOkfdaP HVPx58zOLgvG3uuiVkP6F6OGGFpIDCf8dsVWRJcVdKQilT0P86sE5Kc1dBho2IWK0yBH JsyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Vr3jxd9K; 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 y23-v6si3092904pfb.284.2018.08.02.12.55.25; Thu, 02 Aug 2018 12:55:40 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Vr3jxd9K; 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 S1731364AbeHBVrB (ORCPT + 99 others); Thu, 2 Aug 2018 17:47:01 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33966 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbeHBVrB (ORCPT ); Thu, 2 Aug 2018 17:47:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SoFNaEJssEh5lDXOJmxu+4uTXbUwwRfiPoPNNxvlTrg=; b=Vr3jxd9KEbwhiFfta2h6u6LZa hejejq5JxR993WP87354daG1Tev7cOt+LFOHltR/OSUQzh7GwOYE1Rdnexc3YPW+63xOvzX77K0gI DAGMUy/xQkHHKZrXdX1Pd8oNN5HjC+X+S5fCnqkSkTkkzLYw2RIKb3MV3AtFAprwhWVIqRgHcmErN m918OIwZcs/Wws8C2xOqP5WBQ9PcsPQuNzQVMAVXkcE1ewFMEyXkLWnAUwkFafGdJqW7S6fa+mkkt ofjQliAd7hqW2C3MBIymB/OLEgVyM1TYeN0Q9JqBVRm3xYNXcimHSiLk2OKzdB5ww1HQCf5K02Ty0 bTaxXX9Mw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1flJfp-0008R9-B0; Thu, 02 Aug 2018 19:54:13 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BBB8820267B1E; Thu, 2 Aug 2018 21:54:10 +0200 (CEST) Date: Thu, 2 Aug 2018 21:54:10 +0200 From: Peter Zijlstra To: Dave Hansen Cc: Reinette Chatre , tglx@linutronix.de, mingo@redhat.com, fenghua.yu@intel.com, tony.luck@intel.com, vikas.shivappa@linux.intel.com, gavin.hindman@intel.com, jithu.joseph@intel.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] x86/intel_rdt and perf/x86: Fix lack of coordination with perf Message-ID: <20180802195410.GR2494@hirez.programming.kicks-ass.net> References: <20180802123923.GJ2530@hirez.programming.kicks-ass.net> <1af731f8-b5d3-5aca-af02-575802a961b9@intel.com> <20180802161823.GJ2458@hirez.programming.kicks-ass.net> <20180802173727.GP2494@hirez.programming.kicks-ass.net> <653e874f-5e77-a9b5-996a-ed9daa3c6d43@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <653e874f-5e77-a9b5-996a-ed9daa3c6d43@intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 02, 2018 at 11:18:01AM -0700, Dave Hansen wrote: > On 08/02/2018 10:37 AM, Peter Zijlstra wrote: > >> I do not see how I can do so without incurring the cache hits and misses > >> from the data needed and instructions run by this interface. Could you > >> please share how I can do so and still obtain the accurate measurement > >> of cache residency of a specific memory region? > > That's the best you're going to get. You do _NOT_ get to use raw PMU. > > Hi Peter, > > This code is really fidgety. It's really easily perturbed even by tiny > things like implicit cache accesses from the page walker filling the TLB > from the page tables. > > Adding a bunch more code in the way is surely going to make it more > fragile and imprecise. > > I totally understand not wanting to fill the tree with code hijacking > the raw PMU. Is your reaction to this really around not wanting to > start down the slippery slope that ends up with lots of raw PMU "owners"? That and the fact that multiple owner directly contradicts what perf set out to do, provide resource arbitration for the PMU. Not being able to use both perf and this resctl thing at the same time is utter crap. You will not get special dispensation.