]> git.hungrycats.org Git - linux/commitdiff
[PATCH] sched: alter_kthread_prio
authorCon Kolivas <kernel@kolivas.org>
Sat, 8 Jan 2005 05:45:40 +0000 (21:45 -0800)
committerLinus Torvalds <torvalds@evo.osdl.org>
Sat, 8 Jan 2005 05:45:40 +0000 (21:45 -0800)
Timeslice proportion has been increased substantially for -niced tasks.  As
a result of this kernel threads have much larger timeslices than they
previously had.

Change kernel threads' nice value to -5 to bring their timeslice back in
line with previous behaviour.  This means kernel threads will be less
likely to cause large latencies under periods of system stress for normal
nice 0 tasks.

Signed-off-by: Con Kolivas <kernel@kolivas.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/workqueue.c

index 9e08e0c343f8c3a663182b3b51c9aca7e59f7c32..2f7771dc63ec74e87792c1befe9fbdcc96f9e4c3 100644 (file)
@@ -188,7 +188,7 @@ static int worker_thread(void *__cwq)
 
        current->flags |= PF_NOFREEZE;
 
-       set_user_nice(current, -10);
+       set_user_nice(current, -5);
 
        /* Block and flush all signals */
        sigfillset(&blocked);