Re: Question about fair schedulers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alberto Gonzalez
Date: Saturday, June 23, 2007 - 2:18 am

On Saturday 23 June 2007, Willy Tarreau wrote:

I see. I was sure I was missing something, since everyone around here are 
praising these new schedulers. However, the example you provide is not so 
much about fair/unfair, but about good/bad scheduler. I mean, if a process 
consumes 48% CPU and the other one also consumes 48% (if each were running 
alone), when you run them at the same time a fair scheduler would give them 
48% to each, but an unfair one should also give them 48% to each. I still 
fail to see the advantages of the "fair scheduler" design (even if I accept 
that CFS is technically much better than mainline and thus work better in 
your example).


I think you're not considering normal users here. Believe it or not, 99% of 
desktop users in the world just click on a icon to watch a video. And they DO 
want watch them, not use them for monitoring purposes (whatever that means).

I acknowledge it's impossible to be inside a user's mind to decide what it's 
more important to him/her, but let's agree that clearly a audio/video player 
should have by default a higher priority than an audio/video encoder, for the 
simple reason that one task requires a certain amount of CPU to do the job 
correctly, while the other one can do the job correctly regardless of how 
much CPU time you give it. They are different in nature. What I don't know is 
if knowing this should belong to the CPU scheduler or to the application 
itself. But the bottom line is that on a desktop, tasks should receive 
different -unfair- amounts of CPU time to work correctly. The "fair" concept 
still looks wrong to me.

Nicing tasks might not be hard at all, but expecting normal users to do so is 
not realistic. Either the scheduler or the applications should make these 
decisions for them (us).


Thanks,
Alberto.

-
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)