Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8792521ybl; Fri, 17 Jan 2020 01:01:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzEpDJdqISOyh5cltRozB6kyzj5k4uuORmgEp7yhrWmEWYB/mpavzD00JVuYUUUm4w77v+U X-Received: by 2002:a9d:7c8f:: with SMTP id q15mr5444258otn.140.1579251681229; Fri, 17 Jan 2020 01:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579251681; cv=none; d=google.com; s=arc-20160816; b=fl27q2tmAyQLB1PHMGbDkKtxx5HVBOrqa4ZwA3QOdpXa7vYRowl9B6niygvMf24MSY WK4FgFutPOjwqDF6wL6/EvG/lfgQl22dG2nMNHAdc/GYiyFe4ZnSCvc/WZFeHMjwf8n+ 5V39+365hsW/TTdpElctIssExDWej4zRe0dPuGD0P5LiIrssLPRvJfHS9Vf5tPFsFyl2 k+39aAy3orGPvf1ac3+98fwE3ioo9etbLYbY46C3Q+uWYILbWJdv99v0N1STXmauVjKC ZNlf9rr9lzLbWgU9qAzr80AQvvlDvz9tX7y2F4S7YS16yl3YqPfmk+N95Np9yr+YsId2 zxOA== 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; bh=OABgM1a6oPKPMeWxNxW0wMfzlTQfl0VNtqA25ogfx+g=; b=K1WUJQcJbr25A/WvMJ+5GtNTYKVlozsIhJvJ6OT0e/4zhvzfaTqJxMZ7bvJ8+S1wXX x6XcwA2mSvb9YpAyDrmKgvgHiwWG5DDxq2iT/9aiqFXhzAnmxMTt6LE/snhy97HKH4bU FZY+CD2U+f+M2r3ByOhCm3tOMhqTKdtQouVpg//5We64PnKGQ2fuc6DdjoTRBlXSNeLg 5Hf4VQ5TroMPZTwul5HsTKvBbgtN5GQ8jPAJF/MMUKUAYPKSeyn4GF0aF0la4fXR8nnW RKO69at+3zB/aCEy7mLR+KdSe2f5LMcth9d5TkhLpMOSsTjPO/bteuv9/JlO1I7BCFuv kP+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ysh+s53a; 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 g6si14662554otk.171.2020.01.17.01.01.09; Fri, 17 Jan 2020 01:01:21 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=Ysh+s53a; 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 S1729505AbgAQI6w (ORCPT + 99 others); Fri, 17 Jan 2020 03:58:52 -0500 Received: from merlin.infradead.org ([205.233.59.134]:47304 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727740AbgAQI6w (ORCPT ); Fri, 17 Jan 2020 03:58:52 -0500 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=OABgM1a6oPKPMeWxNxW0wMfzlTQfl0VNtqA25ogfx+g=; b=Ysh+s53aOoIRYLNNUILcKaDl+ Aoguy2FKXBZj5HHrsD49Dn5UW9PB1JNUuSz3DrbWgS2PInCSz1mnj2zI2ZN7bfuRzSfGlfYCeIHAZ SlhjlmsnwZ6a7KwD61/5w5I/xP9muq2knVVaniBrNWUtmZGmSB4JjMcf06eVTqGs1us/qgf6bwDYA R2mNeUlZTHBVSUfObvAx0lzS9skI6oeTLZX2FchK4Dud+6ZvZ8tDWseqlZz7xZ4VznSlcRpNWBLkI d7zX0KjA5wIZM8BQy+VqFF0B30JoW5otA3XYEmS1/YlCvesoh2kHG4mG86H/hmVDwjzqR+yzEO2bq at5skV4oQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1isNSl-0004Nb-35; Fri, 17 Jan 2020 08:58:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B23933058B4; Fri, 17 Jan 2020 09:57:04 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DDCB020AFB27D; Fri, 17 Jan 2020 09:58:41 +0100 (CET) Date: Fri, 17 Jan 2020 09:58:41 +0100 From: Peter Zijlstra To: kan.liang@linux.intel.com Cc: mingo@redhat.com, acme@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, ak@linux.intel.com Subject: Re: [RESEND PATCH V3] perf/x86: Consider pinned events for group validation Message-ID: <20200117085841.GW2827@hirez.programming.kicks-ass.net> References: <1579201225-178031-1-git-send-email-kan.liang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1579201225-178031-1-git-send-email-kan.liang@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 16, 2020 at 11:00:25AM -0800, kan.liang@linux.intel.com wrote: > From: Kan Liang > > perf stat -M metrics relies on weak groups to reject unschedulable > groups and run them as non-groups. > This uses the group validation code in the kernel. Unfortunately > that code doesn't take pinned events, such as the NMI watchdog, into > account. So some groups can pass validation, but then later still > never schedule. > > For example, > > $echo 1 > /proc/sys/kernel/nmi_watchdog > $perf stat -M Page_Walks_Utilization > > Performance counter stats for 'system wide': > > itlb_misses.walk_pending > (0.00%) > dtlb_load_misses.walk_pending > (0.00%) > dtlb_store_misses.walk_pending > (0.00%) > ept.walk_pending > (0.00%) > cycles > (0.00%) > > 1.176613558 seconds time elapsed More unreadable mess.