On Sun, Mar 30, 2008 at 9:37 PM, Eric Descourtis
The scheduler isn't really designed to force programs to idle when
there's nothing else to run - that would be a waste :)
If the reason you're on 2.6.18.8 is for Xen, you might want to try
using a recent kernel with paravirt ops, and use the CFS fair group
(or user) scheduler to set cpu shares. See
Documentation/sched-design-CFS.txt . If you really want to eat up a
certain portion of CPU time doing nothing, you could create a program
to busy-loop to starve the others and set CPU shares appropriately,
though I don't really see the point in that.
--