From: Catalin Marinas <catalin.marinas@arm.com>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Morten Rasmussen <Morten.Rasmussen@arm.com>,
Alex Shi <alex.shi@linaro.org>,
Peter Zijlstra <peterz@infradead.org>,
Paul Turner <pjt@google.com>, Ingo Molnar <mingo@kernel.org>,
"rjw@rjwysocki.net" <rjw@rjwysocki.net>,
"Srivatsa S. Bhat" <srivatsa.bhat@linux.vnet.ibm.com>,
Paul Walmsley <paul@pwsan.com>, Mel Gorman <mgorman@suse.de>,
Juri Lelli <juri.lelli@gmail.com>,
"fengguang.wu@intel.com" <fengguang.wu@intel.com>,
"markgross@thegnar.org" <markgross@thegnar.org>,
Kevin Hilman <khilman@linaro.org>,
"Frank.Rowand@sonymobile.com" <Frank.Rowand@sonymobile.com>,
Paul McKenney <paulmck@linux.vnet.ibm.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Bench for testing scheduler
Date: Thu, 7 Nov 2013 11:32:26 +0000 [thread overview]
Message-ID: <20131107113226.GE13674@arm.com> (raw)
In-Reply-To: <CAKfTPtCh+f1FZxkWqU5=2PjGtfRaN8jVV3WdTCzLDAWSjMP7yw@mail.gmail.com>
Hi Vincent,
(for whatever reason, the text is wrapped and results hard to read)
On Thu, Nov 07, 2013 at 10:54:30AM +0000, Vincent Guittot wrote:
> During the Energy-aware scheduling mini-summit, we spoke about benches
> that should be used to evaluate the modifications of the scheduler.
> I’d like to propose a bench that uses cyclictest to measure the wake
> up latency and the power consumption. The goal of this bench is to
> exercise the scheduler with various sleeping period and get the
> average wakeup latency. The range of the sleeping period must cover
> all residency times of the idle state table of the platform. I have
> run such tests on a tc2 platform with the packing tasks patchset.
> I have use the following command:
> #cyclictest -t <number of cores> -q -e 10000000 -i <500-12000> -d 150 -l 2000
cyclictest could be a good starting point but we need to improve it to
allow threads of different loads, possibly starting multiple processes
(can be done with a script), randomly varying load threads. These
parameters should be loaded from a file so that we can have multiple
configurations (per SoC and per use-case). But the big risk is that we
try to optimise the scheduler for something which is not realistic.
We are working on describing some basic scenarios (plain English for
now) and one of them could be video playing with threads for audio and
video decoding with random change in the workload.
So I think the first step should be a set of tools/scripts to analyse
the scheduler behaviour, both in terms of latency and power, and these
can use perf sched. We can then run some real life scenarios (e.g.
Android video playback) and build a benchmark that matches such
behaviour as close as possible. We can probably use (or improve) perf
sched replay to also simulate such workload (we may need additional
features like thread dependencies).
> The figures below give the average wakeup latency and power
> consumption for default scheduler behavior, packing tasks at cluster
> level and packing tasks at core level. We can see both wakeup latency
> and power consumption variation. The detailed result is not a simple
> single value which makes comparison not so easy but the average of all
> measurements should give us a usable “score”.
How did you assess the power/energy?
Thanks.
--
Catalin
next prev parent reply other threads:[~2013-11-07 11:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 10:54 Bench for testing scheduler Vincent Guittot
2013-11-07 11:32 ` Catalin Marinas [this message]
2013-11-07 13:33 ` Vincent Guittot
2013-11-07 14:04 ` Catalin Marinas
2013-11-08 9:30 ` Vincent Guittot
2013-11-08 0:04 ` Rowand, Frank
2013-11-08 9:28 ` Vincent Guittot
2013-11-08 21:12 ` Rowand, Frank
2013-11-12 10:02 ` Vincent Guittot
2013-11-07 17:42 ` Morten Rasmussen
2013-11-09 0:15 ` Rowand, Frank
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=20131107113226.GE13674@arm.com \
--to=catalin.marinas@arm.com \
--cc=Frank.Rowand@sonymobile.com \
--cc=Morten.Rasmussen@arm.com \
--cc=alex.shi@linaro.org \
--cc=fengguang.wu@intel.com \
--cc=juri.lelli@gmail.com \
--cc=khilman@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markgross@thegnar.org \
--cc=mgorman@suse.de \
--cc=mingo@kernel.org \
--cc=paul@pwsan.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=pjt@google.com \
--cc=rjw@rjwysocki.net \
--cc=srivatsa.bhat@linux.vnet.ibm.com \
--cc=vincent.guittot@linaro.org \
/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