• Ingo Molnar's avatar
    [PATCH] sched: nonlinear timeslices · 68b4cdb8
    Ingo Molnar authored
    * Nick Piggin <nickpiggin@yahoo.com.au> wrote:
    
    > 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-mm1:
    
       [ -20 ... 0 ... 19 ] => [800ms ... 100ms ... 5ms]
    
    the nice-20/nice+19 ratio is now 1:160 - sufficient for all aspects.
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    68b4cdb8
sched.c 116 KB