public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat•com>
To: "Paul A. Clarke" <pc@us•ibm.com>
Cc: Ian Rogers <irogers@google•com>,
	Peter Zijlstra <peterz@infradead•org>,
	Ingo Molnar <mingo@redhat•com>,
	Arnaldo Carvalho de Melo <acme@kernel•org>,
	Mark Rutland <mark.rutland@arm•com>,
	Alexander Shishkin <alexander.shishkin@linux•intel.com>,
	Namhyung Kim <namhyung@kernel•org>,
	Alexei Starovoitov <ast@kernel•org>,
	Daniel Borkmann <daniel@iogearbox•net>,
	Martin KaFai Lau <kafai@fb•com>, Song Liu <songliubraving@fb•com>,
	Yonghong Song <yhs@fb•com>, Andrii Nakryiko <andriin@fb•com>,
	John Fastabend <john.fastabend@gmail•com>,
	KP Singh <kpsingh@chromium•org>, Kajol Jain <kjain@linux•ibm.com>,
	Andi Kleen <ak@linux•intel.com>,
	John Garry <john.garry@huawei•com>,
	Jin Yao <yao.jin@linux•intel.com>,
	Kan Liang <kan.liang@linux•intel.com>,
	Cong Wang <xiyou.wangcong@gmail•com>,
	Kim Phillips <kim.phillips@amd•com>,
	Adrian Hunter <adrian.hunter@intel•com>,
	Leo Yan <leo.yan@linaro•org>,
	linux-kernel@vger•kernel.org, netdev@vger•kernel.org,
	bpf@vger•kernel.org, Stephane Eranian <eranian@google•com>,
	Arnaldo Carvalho de Melo <acme@redhat•com>
Subject: Re: metric expressions including metrics?
Date: Mon, 18 May 2020 21:20:51 +0200	[thread overview]
Message-ID: <20200518192051.GE11620@krava> (raw)
In-Reply-To: <20200518191242.GA27634@oc3272150783.ibm.com>

On Mon, May 18, 2020 at 02:12:42PM -0500, Paul A. Clarke wrote:
> 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.

hi,
actually we were discussing this with Ian and Stephane and I plan on
checking on that.. should be doable, I'll keep you in the loop

jirka

> 
> Regards,
> Paul Clarke
> 


  reply	other threads:[~2020-05-18 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-18 19:12 metric expressions including metrics? Paul A. Clarke
2020-05-18 19:20 ` Jiri Olsa [this message]
2020-05-18 19:24   ` Stephane Eranian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200518192051.GE11620@krava \
    --to=jolsa@redhat$(echo .)com \
    --cc=acme@kernel$(echo .)org \
    --cc=acme@redhat$(echo .)com \
    --cc=adrian.hunter@intel$(echo .)com \
    --cc=ak@linux$(echo .)intel.com \
    --cc=alexander.shishkin@linux$(echo .)intel.com \
    --cc=andriin@fb$(echo .)com \
    --cc=ast@kernel$(echo .)org \
    --cc=bpf@vger$(echo .)kernel.org \
    --cc=daniel@iogearbox$(echo .)net \
    --cc=eranian@google$(echo .)com \
    --cc=irogers@google$(echo .)com \
    --cc=john.fastabend@gmail$(echo .)com \
    --cc=john.garry@huawei$(echo .)com \
    --cc=kafai@fb$(echo .)com \
    --cc=kan.liang@linux$(echo .)intel.com \
    --cc=kim.phillips@amd$(echo .)com \
    --cc=kjain@linux$(echo .)ibm.com \
    --cc=kpsingh@chromium$(echo .)org \
    --cc=leo.yan@linaro$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=mark.rutland@arm$(echo .)com \
    --cc=mingo@redhat$(echo .)com \
    --cc=namhyung@kernel$(echo .)org \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=pc@us$(echo .)ibm.com \
    --cc=peterz@infradead$(echo .)org \
    --cc=songliubraving@fb$(echo .)com \
    --cc=xiyou.wangcong@gmail$(echo .)com \
    --cc=yao.jin@linux$(echo .)intel.com \
    --cc=yhs@fb$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox