lkml.org 
[lkml]   [2004]   [Nov]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] alter kthread prio
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: Con Kolivas <kernel@kolivas.org>

Index: linux-2.6.10-rc1-mm2/kernel/workqueue.c
===================================================================
--- linux-2.6.10-rc1-mm2.orig/kernel/workqueue.c 2004-11-02 13:19:19.000000000 +1100
+++ linux-2.6.10-rc1-mm2/kernel/workqueue.c 2004-11-02 14:13:13.196261374 +1100
@@ -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);
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.241 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site