[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200518191242.GA27634@oc3272150783.ibm.com>
Date: Mon, 18 May 2020 14:12:42 -0500
From: "Paul A. Clarke" <pc@...ibm.com>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
Andrii Nakryiko <andriin@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...omium.org>,
Kajol Jain <kjain@...ux.ibm.com>,
Andi Kleen <ak@...ux.intel.com>,
John Garry <john.garry@...wei.com>,
Jin Yao <yao.jin@...ux.intel.com>,
Kan Liang <kan.liang@...ux.intel.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Kim Phillips <kim.phillips@....com>,
Adrian Hunter <adrian.hunter@...el.com>,
Leo Yan <leo.yan@...aro.org>, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, bpf@...r.kernel.org,
Stephane Eranian <eranian@...gle.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: metric expressions including metrics?
I'm curious how hard it would be to define metrics using other metrics,
in the metrics definition files.
Currently, to my understanding, every metric definition must be an
expresssion based solely on arithmetic combinations of hardware events.
Some metrics are hierarchical in nature such that a higher-level metric
can be defined as an arithmetic expression of two other metrics, e.g.
cache_miss_cycles_per_instruction =
data_cache_miss_cycles_per_instruction +
instruction_cache_miss_cycles_per_instruction
This would need to be defined something like:
dcache_miss_cpi = "dcache_miss_cycles / instructions"
icache_miss_cpi = "icache_miss_cycles / instructions"
cache_miss_cpi = "(dcache_miss_cycles + icache_miss_cycles) / instructions"
Could the latter definition be simplified to:
cache_miss_cpi = "dcache_miss_cpi + icache_miss_cpi"
With multi-level caches and NUMA hierarchies, some of these higher-level
metrics can involve a lot of hardware events.
Given the recent activity in this area, I'm curious if this has been
considered and already on a wish/to-do list, or found onerous.
Regards,
Paul Clarke
Powered by blists - more mailing lists