lkml.org 
[lkml]   [2013]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Bench for testing scheduler
From
On 7 November 2013 15:04, Catalin Marinas <catalin.marinas@arm.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@arm.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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-11-08 10:41    [W:0.109 / U:0.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site