[LUNI] Scheduling question in 2.4/2.6

Michael Knoop mknoop at uic.edu
Wed Apr 14 13:27:37 CDT 2004


Well... this is really beyond me, but out of curiosity I poked around in
the kernel source and documentation.  From what I can see, priority is set
internally by the sched.c code and cannot be modified externally.   If you
want to change this, I think you are going to have to hack the kernel code.
 The following URL is a discussion of just such a hack as a class assignment :

<http://www.cc.gatech.edu/classes/AY2001/cs3210_fall/labs/sched.html>

and there is a brief discussion of the Solaris vs Linux scheduling
differences in this email :

<http://www.beowulf.org/pipermail/beowulf/1999-March/003785.html>

Good luck,
Mike K

At 12:00 AM 4/14/04 -0500, you wrote:
>
>> ok. i checked man, it is only when you need to renice a value that is
>> lesser than 0 that you need root privileges. if it is within 0 and
>> PRIO_MAX(20), it is fine, provided the process is owned by you.
>
>renice only modifies the nice value, not the ultimate
>scheduling priority. I'd like the thing to remain at
>the end of the run que permenantly. This is done on
>Solaris using a table-driven approach: jobs exit with
>a new scheduling value based on their old one. If the
>entry and exit values are the same then the jobs's
>scheduling priority (vs. niceness) never changes.
>
>--
>Steven Lembark                               2930 W. Palmer
>Workhorse Computing                       Chicago, IL 60647
>                                            +1 888 359 3508
>-- 
>Linux Users Of Northern Illinois - Technical Discussion 
>http://luni.org/mailman/listinfo/luni



More information about the luni mailing list