Re: 2.5.64-mm6, a new test case for scheduler interactivity

Mike Galbraith (efault@gmx.de)
Fri, 14 Mar 2003 15:34:44 +0100


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-28864-1047652294-0001-2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

At 10:01 PM 3/13/2003 +0000, Charles Baylis wrote:

>Hi all
>
>I've just installed 2.5.64-mm6, and I've tried out the new improved
>scheduler and it's definately not there yet. I can easily cause ogg
>playback to skip (for example) by changing virtual desktop in windowmaker
>to busy konqueror window. X is not reniced (has a nice level of 0)
>
>It's several months since I last ran a 2.4 kernel on this machine, but as I
>remember it did not skip when changing desktops.
>
>My experience suggests that skips occur when more than one interactive task
>starts to become a CPU hog, for example X and konqueror can be idle for
>long periods, and so become interactive, but during an intensive redraw
>they briefly behave as CPU hogs but maintain their interactive bonus this
>means that ogg123 has to wait until the hogs complete their timeslice
>before being scheduled.
>
>My test case tries to reproduce this by creating a number of tasks which
>alternate between being 'interactive' and CPU hogs. On my Celery 333 laptop
>it can sometimes cause skips with only 1 child, and is pretty much
>guaranteed to cause skips with more child tasks.

Greetings,

Nice test case. I don't have sound capability on my linux box, but your
test case makes it fail the window wiggle test horribly. I fiddled with it
a bit, and convinced it to "stop doing that please". Does the attached
(experimental butchery) help your box's sp-sp-speach im-p-p-pediment?

-Mike
--=_courier-28864-1047652294-0001-2
Content-Type: application/octet-stream; name="bk5_sched.diff"; x-mac-type=42494E41; x-mac-creator=5843454C
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bk5_sched.diff"

LS0tIGxpbnV4LTIuNS42NC1iazUva2VybmVsL3NjaGVkLmMub3JnCVdlZCBNYXIgMTIgMDg6NTE6
MTEgMjAwMworKysgbGludXgtMi41LjY0LWJrNS9rZXJuZWwvc2NoZWQuYwlGcmkgTWFyIDE0IDE1
OjI3OjEyIDIwMDMKQEAgLTcyLDcgKzcyLDcgQEAKICNkZWZpbmUgUF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