linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Scheduler starvation (2.5.x, 2.6.0-test1)
@ 2003-07-22  1:34 Simon Kirby
  2003-07-22 17:28 ` Apurva Mehta
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Kirby @ 2003-07-22  1:34 UTC (permalink / raw)
  To: linux-kernel

I keep seeing cases where browsing in mozilla / galeon will suck away all
CPU from X updating the mouse, xmms playing, etc., for about a second as
Mozilla renders a page (which should take 50 ms to render, but anyway..).

This is only a Celeron 466 MHz, but there never used to be such a problem
in 2.2 and 2.4 kernels.  All processes (X, galeon, xmms) are running with
the default nice of 0.  It seems there is something with the scheduler
heuristics which is giving galeon a way-too-large preemptive timeslice
and not even allowing enough CPU to other processes to, for example, let
X update the mouse cursor.  This seems wrong -- Shouldn't the device
event always wake up and switch to the X task if the process has usable
timeslices left?

This only seems to happen after letting the system settle for some time. 
If I refresh a page once, the problem happens.  Again, less.  Again, the
scheduler seems to allow mouse updates normally.  I have to wait about 30
seconds for the problem to occur again.  This is much easier to see with
X reniced to +1.  It occurs with X reniced to +0, but not as often.  With
the old scheduler, +20 wouldn't even make a noticeable difference because
mouse events would still wake up and run the process as expected.

It is really easy to notice the problem on this box not because of the
audible and visible skips, but the fact that there's a bug in the ALSA
Gravis Ultrasound Classic driver which causes it to sometimes play
incorrect portions of RAM when the sound restarts. :)

Is anybody else seeing this or is it something to do with my setup here?

Simon-

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bUil.2D8.11@gated-at.bofh.it>]

end of thread, other threads:[~2003-07-23 18:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-22  1:34 Scheduler starvation (2.5.x, 2.6.0-test1) Simon Kirby
2003-07-22 17:28 ` Apurva Mehta
2003-07-22 18:48   ` Felipe Alfaro Solana
2003-07-22 20:37     ` Apurva Mehta
2003-07-22 21:33       ` Mike Fedyk
2003-07-23  8:18         ` Apurva Mehta
2003-07-23 16:41           ` Mike Fedyk
2003-07-23 19:03             ` Apurva Mehta
     [not found] <bUil.2D8.11@gated-at.bofh.it>
2003-07-22 15:14 ` Tom Felker
2003-07-22 16:04   ` Martin Zwickel
2003-07-22 18:41     ` Felipe Alfaro Solana
2003-07-22 19:39       ` Jose Luis Domingo Lopez
2003-07-22 19:53         ` Mike Fedyk
2003-07-22 22:28           ` Jose Luis Domingo Lopez
2003-07-22 20:20         ` Felipe Alfaro Solana
2003-07-22 20:55       ` Diego Calleja García

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).