How can I force the scheduler to give processes only 1 millisecond
maximum per timeslice ?

I have changed the HZ variable in param.h from 100 to 1000, and my
rt-2.0.35 kernel runs fine.

Using a test process which toggles a bit on the printer port, then calls
usleep(1) in a loop (yielding the processor), I see (on an O-scope) my
process runs every 2 msec, (as opposed to every 20 msec when HZ was
100). Why doesn't this process run every millisecond ?

I tried changing DEF_PRIORITY in sched.h from (20*HZ/100) to (10*HZ/100)
but this apparently didn't have the effect I wanted: my O-scope still
shows 2 msec timeslices.  I admit I don't know how DEF_PRIORITY is used
in the scheduler.

-- 
Steve Rosenbluth
Jim Henson's Creature Shop
2821 Burton St, Burbank CA
(818) 953-3030

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to