Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1094753ybj; Thu, 7 May 2020 14:50:00 -0700 (PDT) X-Google-Smtp-Source: APiQypL2mO/E8+dQF/8YoQwE0ZFaDgo6WJFbadxvj/9QWP3OqPR6V8+e9qtFnSvgyTybjjUb8/V+ X-Received: by 2002:a17:906:3713:: with SMTP id d19mr13551023ejc.111.1588888200277; Thu, 07 May 2020 14:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588888200; cv=none; d=google.com; s=arc-20160816; b=ZD+KRwbAEEL5KQWP+XsnMjP5Kxo7OSIL150sF0MbxMPg65aKhD+jkS+PagXqkAD44u Y8ePOZ7gWyx3Cyy05/xJaOH3IADPTCOCkSF4IFwPxdE5Y5POHXd5Vz7HmVeaEhrXt688 Q0lYFzJdH+CI9aA/LQKH5ijF1EHAqTrOG7T5WRLTpZ2Qj6fG0HVpzniEZJV2ULNEh8KY K6tPEX+A1m5dJd1WrMHK3prLirIeLaEEpExfMsA5L6DF8oa0yTEWlz3376Mxuq6brnUw VjZ2y7pLW/x8GeR52WDqqJ5hHyB7rAeVb6KzX+rcNUZyLAojPuIPaFaLFpXPwLumPSbP zU1w== 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=GFnrBkb9LpMtfIlMefcEhAh47yiaD6gj39egxxbv6GQ=; b=cBHjXxjSx+fBXFUjkNbAuSseA5lSR2CbBWoBiVIhl0toBF4k/EEiBJ0TEvmEd+QzpP HeiGpb3TLzQTkgJRiWcQ1ybv9HEhxVnOiou+eRlhVJl+GZDIlbX0mR4ecXDqaQ3nS+Sr DP97EernYrEOkCOPFk7uZ0uavjfRMisKo820+HR4xhxs5KzrKNd/u1uUbaZ0794Am5i2 rdT9UTYkGnHP/Cfalg5UZO2Xb8r4cVcNrYmG1+vY/6IIohE3kqU0xJTFksWhkWhju0qs yKVHjJZSogFtvNuktYcVGFlzDAgMJFw0JZqJ6mYVVNk9M+SavlzhXISeFmngMvNVYCgy GDpA== 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 bo7si3829310edb.80.2020.05.07.14.49.36; Thu, 07 May 2020 14:50:00 -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 S1726891AbgEGVrB (ORCPT + 99 others); Thu, 7 May 2020 17:47:01 -0400 Received: from mga09.intel.com ([134.134.136.24]:30012 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbgEGVrA (ORCPT ); Thu, 7 May 2020 17:47:00 -0400 IronPort-SDR: lZy1lW9BpjeakLNig3qvWwA18fGMQhtZVfMP07O7UGbbtjgYhWNCdb45cw1jmvINoSVmYsad0d qoq8vHXJ1c0A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2020 14:46:54 -0700 IronPort-SDR: XSzS7dTe6Wy7C+q//uzNDJRFqXYcvr54hWsflNNGVA2u2d/Yo2Vb3KSk0fM0DqTCqOyLDGNX46 U16slWjhO8sQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,365,1583222400"; d="scan'208";a="462004281" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by fmsmga005.fm.intel.com with ESMTP; 07 May 2020 14:46:52 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 5A34B301C1B; Thu, 7 May 2020 14:46:52 -0700 (PDT) Date: Thu, 7 May 2020 14:46:52 -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 , LKML , Networking , bpf , linux-perf-users , Stephane Eranian Subject: Re: [RFC PATCH 0/7] Share events between metrics Message-ID: <20200507214652.GC3538@tassilo.jf.intel.com> References: <20200507081436.49071-1-irogers@google.com> <20200507174835.GB3538@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > - without this change events within a metric may get scheduled > > together, after they may appear as part of a larger group and be > > multiplexed at different times, lowering accuracy - however, less > > multiplexing may compensate for this. > > I agree the heuristic in this patch set is naive and would welcome to > improve it from your toplev experience. I think this change is > progress on TopDownL1 - would you agree? TopdownL1 in non SMT mode should always fit. Inside a group deduping always makes sense. The problem is SMT mode where it doesn't fit. toplev tries to group each node and each level together. > > I'm wondering if what is needed are flags to control behavior. For > example, avoiding the use of groups altogether. For TopDownL1 I see. Yes the current situation isn't great. For Topdown your patch clearly is an improvement, I'm not sure it's for everything though. Probably the advanced heuristics are only useful for a few formulas, most are very simple. So maybe it's ok. I guess would need some testing over the existing formulas. -Andi