Commit a2e135bb authored by Con Kolivas's avatar Con Kolivas Committed by Linus Torvalds

[PATCH] sched: alter_kthread_prio

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: default avatarCon Kolivas <kernel@kolivas.org>
Acked-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>
parent 672eb0e1
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment