[lkml]   [2007]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [report] renicing X, cfs-v5 vs sd-0.46
On Monday 23 April 2007, Niel Lambrechts wrote:
>Gene Heskett wrote:
>> This message prompted me to do some checking in re context switches
>> myself, and I've come to the conclusion that there could be a bug in
>> vmstat itself.
>Perhaps. perhaps not. :)
>> Run singly the context switching is reasonable even for a -19 niceness of
>> x, its only showing about 200 or so on the first loop of vmstat. But
>> throw in the -n 1 arguments and it goes crazy on the second and subsequent
>> loops.
>man vmstat:
>"The first report produced gives averages since the last reboot.
>Additional reports give information on a sampling period of length delay."

I missed that, concentrating on finding the method of telling it the delay I

So then the next question is, over what period is that obviously lower figure
being averaged over? Certainly not over a 1 second period else it would then
be much higher, as seen by the figures after the initial delay. The time
slice spec'd in /proc/sys/kernel/sched_granularity_ns, which here is
currently 5000000 or 5 milliseconds? If that was the case, the first answer
would be in the area of 15, not 200.

So educate me, off list if you would like and have the time.

Thanks Niel.

Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Sweet sixteen is beautiful Bess,
And her voice is changing -- from "No" to "Yes".
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-04-24 03:55    [W:0.081 / U:12.360 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site