Re: Question about fair schedulers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paolo Ornati
Date: Saturday, June 23, 2007 - 6:26 am

On Sat, 23 Jun 2007 10:01:02 +0200
Alberto Gonzalez <info@gnebu.es> wrote:


Yes and no... the "logic" is supposed to identify what processes are
somehow interactive and give them more priority / CPU time.

This makes the system behaves better when there are CPU hog processes
(like encoders etc...) because the interactive ones doesn't suffer too
much.

The big problem is that it can identify an almost CPU hog process as
interactive.... and giving him an insane amount of CPU starve the
others.

In my case it was "trancode", and I assure you... it wasn't funny.
Sometimes it happened that running it (at standard nice 0) made
the machine totally unusable!  (something like 30s to switch from X to
a virtual terminal... and I don't tell you how hard was doing login and
killing/renicing it).

So far I've seen these pathological behaviour only with trancode and
wine (only with particular programs I don't remember now).

But the fact is, the "interactivity estimator" is too fragile, and when
it fails it can do much damage.


Fair scheduler instead:
	- are robust
	- provide consistent behaviour
	- provide good interactivity within the bounds of fairness



Of course... because of the two competing processes the
"interactive" (for you) one needs 60%, that is more than it's 50% fair
share.

The real solution is to use nice levels so the scheduler doesn't have
to guess what process is more important.

And yes, programs/distributions should set good defaults for you... and
if they don't, just complain to them  :)

-- 
	Paolo Ornati
	Linux 2.6.22-rc5-g0864a4e2 on x86_64
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Question about fair schedulers, Alberto Gonzalez, (Fri Jun 22, 3:07 pm)
Re: Question about fair schedulers, Kyle Moffett, (Fri Jun 22, 5:55 pm)
Re: Question about fair schedulers, Paolo Ornati, (Sat Jun 23, 12:06 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 12:46 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 1:01 am)
Re: Question about fair schedulers, Willy Tarreau, (Sat Jun 23, 1:23 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 2:18 am)
Re: Question about fair schedulers, Russell Harmon, (Sat Jun 23, 2:28 am)
Re: Question about fair schedulers, Willy Tarreau, (Sat Jun 23, 3:30 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 3:45 am)
Re: Question about fair schedulers, Willy Tarreau, (Sat Jun 23, 3:50 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 4:00 am)
Re: Question about fair schedulers, Paolo Ornati, (Sat Jun 23, 6:26 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 6:56 am)
Re: Question about fair schedulers, Paolo Ornati, (Sat Jun 23, 7:28 am)
Re: Question about fair schedulers, Kyle Moffett, (Sat Jun 23, 9:35 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Sat Jun 23, 10:28 am)
RE: Question about fair schedulers, David Schwartz, (Sun Jun 24, 12:36 pm)
Re: Question about fair schedulers, Jesper Juhl, (Sun Jun 24, 1:57 pm)
Re: Question about fair schedulers, Helge Hafting, (Tue Jun 26, 5:19 am)
Re: Question about fair schedulers, Alberto Gonzalez, (Wed Jun 27, 5:39 am)