linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Pratik Rajesh Sampat <psampat@linux.ibm.com>,
	rjw@rjwysocki.net, daniel.lezcano@linaro.org,
	srivatsa@csail.mit.edu, shuah@kernel.org, npiggin@gmail.com,
	ego@linux.vnet.ibm.com, svaidy@linux.ibm.com,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, pratik.r.sampat@gmail.com
Subject: Re: [RFC v4 1/1] selftests/cpuidle: Add support for cpuidle latency measurement
Date: Wed, 02 Sep 2020 18:25:24 +0300	[thread overview]
Message-ID: <b59481655c29d081eea4f34c00166517738000e5.camel@gmail.com> (raw)
In-Reply-To: <20200902114506.45809-2-psampat@linux.ibm.com>

On Wed, 2020-09-02 at 17:15 +0530, Pratik Rajesh Sampat wrote:
> Measure cpuidle latencies on wakeup to determine and compare with the
> advertsied wakeup latencies for each idle state.

It looks like the measurements include more than just C-state wake,
they also include the overhead of waking up the proces, context switch,
and potentially any interrupts that happen on that CPU. I am not saying
this is not interesting data, it surely is, but it is going to be
larger than you see in cpuidle latency tables. Potentially
significantly larger.

Therefore, I am not sure this program should be advertised as "cpuidle
measurement". It really measures the "IPI latency" in case of the IPI
method.

> A baseline measurement for each case of IPI and timers is taken at
> 100 percent CPU usage to quantify for the kernel-userpsace overhead
> during execution.

At least on Intel platforms, this will mean that the IPI method won't
cover deep C-states like, say, PC6, because one CPU is busy. Again, not
saying this is not interesting, just pointing out the limitation.

I was working on a somewhat similar stuff for x86 platforms, and I am
almost ready to publish that on github. I can notify you when I do so
if you are interested. But here is a small presentation of the approach
that I did on Plumbers last year:

https://youtu.be/Opk92aQyvt0?t=8266

(the link points to the start of my talk)


  reply	other threads:[~2020-09-02 15:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-02 11:45 [RFC v4 0/1] Selftest for cpuidle latency measurement Pratik Rajesh Sampat
2020-09-02 11:45 ` [RFC v4 1/1] selftests/cpuidle: Add support " Pratik Rajesh Sampat
2020-09-02 15:25   ` Artem Bityutskiy [this message]
2020-09-03 12:00     ` Pratik Sampat
2020-09-03 14:50       ` Artem Bityutskiy
2020-09-03 16:13         ` Artem Bityutskiy
2020-09-14  6:31         ` Pratik Sampat
2020-09-14 17:46   ` Gautham R Shenoy
2020-09-14 17:13 ` [RFC v4 0/1] Selftest " Gautham R Shenoy

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=b59481655c29d081eea4f34c00166517738000e5.camel@gmail.com \
    --to=dedekind1@gmail.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=ego@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=npiggin@gmail.com \
    --cc=pratik.r.sampat@gmail.com \
    --cc=psampat@linux.ibm.com \
    --cc=rjw@rjwysocki.net \
    --cc=shuah@kernel.org \
    --cc=srivatsa@csail.mit.edu \
    --cc=svaidy@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).