lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 8 Nov 2013 10:30:43 +0100
From:	Vincent Guittot <vincent.guittot@...aro.org>
To:	Catalin Marinas <catalin.marinas@....com>
Cc:	Morten Rasmussen <Morten.Rasmussen@....com>,
	"alex.shi@...aro.org" <alex.shi@...aro.org>,
	"peterz@...radead.org" <peterz@...radead.org>,
	"pjt@...gle.com" <pjt@...gle.com>,
	"mingo@...nel.org" <mingo@...nel.org>,
	"rjw@...ysocki.net" <rjw@...ysocki.net>,
	"srivatsa.bhat@...ux.vnet.ibm.com" <srivatsa.bhat@...ux.vnet.ibm.com>,
	"paul@...an.com" <paul@...an.com>,
	"mgorman@...e.de" <mgorman@...e.de>,
	"juri.lelli@...il.com" <juri.lelli@...il.com>,
	"fengguang.wu@...el.com" <fengguang.wu@...el.com>,
	"markgross@...gnar.org" <markgross@...gnar.org>,
	"khilman@...aro.org" <khilman@...aro.org>,
	"Frank.Rowand@...ymobile.com" <Frank.Rowand@...ymobile.com>,
	"paulmck@...ux.vnet.ibm.com" <paulmck@...ux.vnet.ibm.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Bench for testing scheduler

On 7 November 2013 15:04, Catalin Marinas <catalin.marinas@....com> wrote:
> On Thu, Nov 07, 2013 at 01:33:43PM +0000, Vincent Guittot wrote:
>> On 7 November 2013 12:32, Catalin Marinas <catalin.marinas@....com> wrote:
>> > 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.
>>
>> The goal of this simple bench is to measure the wake up latency and
>> the reachable value of the scheduler on a platform but not to emulate
>> a "real" use case. In the same way than sched-pipe tests a specific
>> behavior of the scheduler, this bench tests the wake up latency of a
>> system.
>
> These figures are indeed useful to make sure we don't have any
> regression in terms of latency but I would not use cyclictest (as it is)
> to assess power improvements since the test is too artificial.
>
>> Starting multi processes and adding some loads can also be useful but
>> the target will be a bit different from wake up latency. I have one
>> concern with randomness because it prevents from having repeatable and
>> comparable tests and results.
>
> We can avoid randomness but still make it varying by some predictable
> function.
>
>> I agree that we have to test "real" use cases but it doesn't prevent
>> from testing the limit of a characteristic on a system
>
> I agree. My point is not to use this as "the benchmark".

ok, so i don't plan to make cyclictest "the" benchmark but "a"
benchmark among others because i'm not sure that we can cover all
needs with only one benchmark.

As an example, cyclictest gives information of the wake up latency
that can't be collected with trace

>
> I would prefer to assess the impact on latency (and power) using a tool
> independent from benchmarks like cyclictest (e.g. use the reports from
> power sched). The reason is that once we have those tools/scripts in the
> kernel, a third party can run it on real workloads and provide the
> kernel developers with real numbers on performance vs power scheduling,
> regressions between kernel versions etc. We can't create a power model
> that you can run on an x86 for example and give you an indication of the
> power saving on ARM, you need to run the benchmarks on the actual
> hardware (that's why I don't think linsched is of much use from a power
> perspective).
>
> --
> Catalin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists