Re: Question about fair schedulers

From: Paolo Ornati
Date: Sat Jun 23 2007 - 10:29:55 EST


On Sat, 23 Jun 2007 15:56:36 +0200
Alberto Gonzalez <info@xxxxxxxx> wrote:

> > And yes, programs/distributions should set good defaults for you... and
> > if they don't, just complain to them :)
>
> I'm sure they'll do once a fair scheduler goes into mainline :)

Some already does... for example the current version of:
http://www.exit1.org/dvdrip/

it sets transcode nice to "+19" by default :)

>
> I guess what I was missing from the beginning is that "fair" means that the
> scheduler will be fair among tasks that have the same priority, but if a task
> has a higher priority, it _will_ get more CPU. So we'll just have to mark
> applications like video players, audio players or games with a high priority,
> others like encoders or compilers with low priority, and leave the rest
> (browsers, word processors, email readers, etc...) as normal priority. This
> way a fair scheduler would be able to give each task right amount of CPU.

Yes. I think that the more important thing is to nice background tasks
(like encoders etc..), then games / video players can run without
problems even without renicing (usually normal programs don't eat much
CPU).

--
Paolo Ornati
Linux 2.6.22-rc5-g0864a4e2 on x86_64
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/