Re: Trying out schedulers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2004-08-24 at 03:24, Nifty Hat Mitch wrote:

> >     Do you have any idea what command lines I'd use to chose a scheduler
> > option?  I've seen sched.c, and a flock of scheduler programs....I just
> > don't really know how to chose'em.   
> > 
> 
> Some of these are compile time options.
> If you look at /usr/src/linux-2.6.8-1.521/kernel/sched.c
> you will see: 
>     #ifdef CONFIG_PREEMPT 
> and other pre processor directives....
> 
> More valuable may be "tuning knobs"
> 
>     /*
>      * These are the 'tuning knobs' of the scheduler:
>      *
>      * Minimum timeslice is 10 msecs, default timeslice is 100 msecs,
>      * maximum timeslice is 200 msecs. Timeslices get refilled after
>      * they expire.
>      */
>     #define MIN_TIMESLICE           ( 10 * HZ / 1000)
>     #define MAX_TIMESLICE           (200 * HZ / 1000)
>     ... etc.
> 
> The scheduler is at the heart of thing so do not expect to find a
> handful of plugins that work.  One thing the scheduler MUST do, is
> not lockup the system.  The way the scheduler works in many 
> ways defines how other parts of the kernel must work.
> 
> In one regard almost anything can be queued, sliced diced, scheduled:
> Network IO, disk, character io, process run time, threads...  The key
> is that you want it to be ready or to happen when you need it and it
> is hard to please all the people all the time.  Remember that some
> things demand strict ordering.
> 
> Of interest all these scheduling ideas can be applied to user space
> applications.  Things like the Xserver... data base engines, web server,
> and more.

    Well, since I'm doing things that 'everyone' does (the usual email,
watching tv, surfing, and gaming) I don't expect any tuning- I'm just
planing to try the 4-5 main 'types' and take the best of them.

    Of course, if I try them all out with default values and the problem
never leaves, I'm screwed...but surely there are enough people doing the
same thing I am and as time goes by we'll have more information on
it...I hope.

-- 
------------------------------------------------------------------------
Brian FahrlÃnder                  Christian, Conservative, and Technomad
Evansville, IN                                 http://www.fahrlander.net
ICQ 5119262
AIM: WheelDweller
------------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux