* Nick Piggin wrote: > Also, basic interactivity in X is bad with the interactive sysctl set > to 0 (is X supposed to be at nice 0?), however fairness is bad when > interactive is 1. I'm not sure if this is an acceptable tradeoff - are > you planning to fix it? it also has clear interactivity problems when just running lots of CPU hogs even with the default interactive=1 compute=0 setting. > Increasing priority (negative nice) doesn't have much impact. -20 CPU > hog only gets about double the CPU of a 0 priority CPU hog and only > about 120% the CPU time of a nice -10 hog. this is a property of the base scheduler as well. We can do a nonlinear timeslice distribution trivially - the attached patch implements the following timeslice distribution ontop of 2.6.8-rc3: [ -20 ... 0 ... 19 ] => [800ms ... 100ms ... 5ms] the patch also cleans up some other aspects of timeslice calculations - with it applied nice +19 tasks will get 20 times less CPU time than default tasks. Previously it was 1:10. the nice-20/nice+19 ratio is now 1:160 - sufficient for all aspects. Ingo