[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <169757198792.167943.8358990853717369246.b4-ty@kernel.org>
Date: Tue, 17 Oct 2023 12:55:29 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
linux-kernel@...r.kernel.org, Leo Yan <leo.yan@...aro.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>, Kajol Jain <kjain@...ux.ibm.com>,
linux-perf-users@...r.kernel.org, Ian Rogers <irogers@...gle.com>,
Jing Zhang <renyu.zj@...ux.alibaba.com>,
Mike Leach <mike.leach@...aro.org>,
Yang Jihong <yangjihong1@...wei.com>,
Peter Zijlstra <peterz@...radead.org>,
John Garry <john.g.garry@...cle.com>,
James Clark <james.clark@....com>,
Will Deacon <will@...nel.org>,
Ravi Bangoria <ravi.bangoria@....com>,
coresight@...ts.linaro.org, Ingo Molnar <mingo@...hat.com>,
linux-arm-kernel@...ts.infradead.org,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Thomas Richter <tmricht@...ux.ibm.com>
Cc: Ingo Molnar <mingo@...nel.org>
Subject: Re: [PATCH v2 0/7] PMU performance improvements
On Thu, 12 Oct 2023 10:56:38 -0700, Ian Rogers wrote:
> Performance improvements to pmu scanning by holding onto the
> event/metric tables for a cpuid (avoid regular expression comparisons)
> and by lazily computing the default perf_event_attr for a PMU.
>
> Before
> % Running 'internals/pmu-scan' benchmark:
> Computing performance of sysfs PMU event scan for 100 times
> Average core PMU scanning took: 251.990 usec (+- 4.009 usec)
> Average PMU scanning took: 3222.460 usec (+- 211.234 usec)
> % Running 'internals/pmu-scan' benchmark:
> Computing performance of sysfs PMU event scan for 100 times
> Average core PMU scanning took: 260.120 usec (+- 7.905 usec)
> Average PMU scanning took: 3228.995 usec (+- 211.196 usec)
> % Running 'internals/pmu-scan' benchmark:
> Computing performance of sysfs PMU event scan for 100 times
> Average core PMU scanning took: 252.310 usec (+- 3.980 usec)
> Average PMU scanning took: 3220.675 usec (+- 210.844 usec)
>
> [...]
Applied to perf-tools-next, thanks!
Powered by blists - more mailing lists