* [PATCH] [sched-int-changes 1/5] alter_kthread_prio
@ 2004-11-06 10:26 Con Kolivas
0 siblings, 0 replies; only message in thread
From: Con Kolivas @ 2004-11-06 10:26 UTC (permalink / raw)
To: linux; +Cc: Andrew Morton, Ingo Molnar
[-- Attachment #1.1: Type: text/plain, Size: 105 bytes --]
alter_kthread_prio.diff
As discussed previously with Ingo; please include in at least one -mm
release.
[-- Attachment #1.2: sched-alter_kthread_prio.diff --]
[-- Type: text/x-patch, Size: 941 bytes --]
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);
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-06 10:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-06 10:26 [PATCH] [sched-int-changes 1/5] alter_kthread_prio Con Kolivas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox