alter_kthread_prio
PATCH 1/5 alter_kthread_prio
alter_kthread_prio.diff
As discussed previously with Ingo; please include in at least one -mm release.
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 <[email protected]>
kernel/workqueue.c +1 -1
@@ -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);