Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp20094ybk; Fri, 8 May 2020 17:15:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIRdkt3jY6AOosSGpzUC6EE2Oufb2lgltphMPulQsiJuw1MqsDdH4v4THKA0eAOoRyxXiNY X-Received: by 2002:a50:bb6b:: with SMTP id y98mr4348345ede.296.1588983314182; Fri, 08 May 2020 17:15:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588983314; cv=none; d=google.com; s=arc-20160816; b=cobGkBcHZ/U/WRCx60UGX1zK5t/y/nIJsHZLj9y67uRKQ+v8fzwVz0xQzwCGMm87Nd OepcniYxfgWg/Zg64+4ZbU4dXA4X7mfBT1bXUm46FLf1sLiLmlxwj581qnj+8ulcyZ3b jLL6fg4bnbPJ0178XL44VCfn1UonQfnsp1bFhA6AubbTQHyuSjr1wIqxzDCzn/sniegy 6ZuBbjZxxnPK9nCN+vseqiQ1BW1CxtN/8BgMZWgnMnj+n88uh1N7oePqqdD1fa+wdRXp BUo+pXi1fWg+sM1USsWECvVXN3dMtW31It/T00TSuKJ9XQXr91+3Q95Af41MX/2fxWDI bByA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=mVrjKxLwkoseoncY036HZXqRv+BriK/f408alxLIe9c=; b=0yTc4u9Wrw4jpcALUpyv7zjRaTYwgAx5Dk8ahwu+GO+feKgUpB/2VwHUyShrRwpywt WEeGgHbxTP/605NT1kDNt9cDBuk7mHQsMb0LZc0uaoSM0kHiZrZXT4JhB7xFrwaJcKT7 qD7L0pF7HegAFRdMpnRWft/98S/AaVISfns+OP1Ms+XObSzks/T/2ZJOhxiIH+j/vjKS RqDv9D1elbs4WEHM4siTMTL8tNjdRAEFp7VHnQikK15m6lYHMA2BewRHo6CTSUKA5k/u QhMbWdELcnEpBWgQ5/fcOdJpSjUl4fgLtcYuSgZhd1MMwE63BIsiTomrS9oUIUmnM8FU adCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x1si617938edr.335.2020.05.08.17.14.51; Fri, 08 May 2020 17:15:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728456AbgEIAMk (ORCPT + 99 others); Fri, 8 May 2020 20:12:40 -0400 Received: from mga09.intel.com ([134.134.136.24]:58674 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727878AbgEIAMj (ORCPT ); Fri, 8 May 2020 20:12:39 -0400 IronPort-SDR: L0wzQSIcx/nEb+cg0h87kx+WcFYi8tv1CSX9TP5/xKXN3D8WmO4WzQ8RQP+1cIzGTEu6y7kqoU 1uoOlx6TJ2Ew== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2020 17:12:39 -0700 IronPort-SDR: EsUwmc+TGJxa1Uzunjzr5CH78OgWwX+YLUO62mVT5Ha2qaJaWEUvFeJjWl3RtOtpobAuwv3Mvu ypOKMXHLF9dg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,369,1583222400"; d="scan'208";a="408277513" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga004.jf.intel.com with ESMTP; 08 May 2020 17:12:39 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 08629301C4C; Fri, 8 May 2020 17:12:39 -0700 (PDT) Date: Fri, 8 May 2020 17:12:38 -0700 From: Andi Kleen To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , Kajol Jain , John Garry , Jin Yao , Kan Liang , Cong Wang , Kim Phillips , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Vince Weaver , Stephane Eranian Subject: Re: [RFC PATCH v3 00/14] Share events between metrics Message-ID: <20200509001238.GD3538@tassilo.jf.intel.com> References: <20200508053629.210324-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508053629.210324-1-irogers@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 10:36:15PM -0700, Ian Rogers wrote: > Metric groups contain metrics. Metrics create groups of events to > ideally be scheduled together. Often metrics refer to the same events, > for example, a cache hit and cache miss rate. Using separate event > groups means these metrics are multiplexed at different times and the > counts don't sum to 100%. More multiplexing also decreases the > accuracy of the measurement. > > This change orders metrics from groups or the command line, so that > the ones with the most events are set up first. Later metrics see if > groups already provide their events, and reuse them if > possible. Unnecessary events and groups are eliminated. Yes some improvements here are great. > > The option --metric-no-group is added so that metrics aren't placed in > groups. This affects multiplexing and may increase sharing. > > The option --metric-mo-merge is added and with this option the > existing grouping behavior is preserved. Could we also make this a per metric option, like -M foo:nomerge,... or somesuch? Okay i suppose this could be a followon. Ultimatively like you said we probably want to configure defaults in the event file. -Andi