[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200703112111.38415.a1426z@gawab.com>
Date: Sun, 11 Mar 2007 21:11:38 +0300
From: Al Boldi <a1426z@...ab.com>
To: Con Kolivas <kernel@...ivas.org>
Cc: ck list <ck@....kolivas.org>, linux-kernel@...r.kernel.org
Subject: Re: [ANNOUNCE] RSDL completely fair starvation free interactive cpu scheduler
Al Boldi wrote:
> BTW, another way to show these hickups would be through some kind of a
> cpu/proc timing-tracer. Do we have something like that?
Here is something like a tracer.
Original idea by Chris Friesen, thanks, from this post:
http://marc.theaimsgroup.com/?l=linux-kernel&m=117331003029329&w=4
Try attached chew.c like this:
Boot into /bin/sh.
Run chew in one console.
Run nice chew in another console.
Watch timings.
Console 1: ./chew
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 5 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 6 ms
pid 655, prio 0, out for 5 ms
Console 2: nice -10 ./chew
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 5 ms
pid 669, prio 10, out for 65 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 5 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 5 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 65 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
pid 669, prio 10, out for 6 ms
Console 2: nice -15 ./chew
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 95 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 95 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 95 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 95 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 5 ms
pid 673, prio 15, out for 6 ms
pid 673, prio 15, out for 5 ms
Console 2: nice -18 ./chew
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 6 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 6 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 5 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 6 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 5 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 5 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 5 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 6 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 6 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 5 ms
pid 677, prio 18, out for 113 ms
pid 677, prio 18, out for 5 ms
Console 2: nice -19 ./chew
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
pid 679, prio 19, out for 119 ms
Now with negative nice:
Console 1: ./chew
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 125 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 6 ms
pid 674, prio 0, out for 5 ms
pid 674, prio 0, out for 110 ms
Console 2: nice --20 ./chew
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 5 ms
pid 687, prio -20, out for 6 ms
pid 687, prio -20, out for 6 ms
OTOH, mainline is completely smooth, albeit huge drop-outs.
Thanks!
--
Al
View attachment "chew.c" of type "text/x-csrc" (1028 bytes)
Powered by blists - more mailing lists