public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6.16-rc6 patch] remove sleep_avg multiplier
@ 2006-03-14  9:51 Mike Galbraith
  2006-03-14  9:56 ` Ingo Molnar
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Galbraith @ 2006-03-14  9:51 UTC (permalink / raw)
  To: lkml; +Cc: Ingo Molnar, Andrew Morton

Greetings,

The patchlet below removes the sleep_avg multiplier.  This multiplier
was necessary back when we had 10 seconds of dynamic range in sleep_avg,
but now that we only have one second, it causes that one second to be
compressed down to 100ms in some cases.  This is particularly noticeable
when compiling a kernel in a slow NFS mount, and I believe it to be a
very likely candidate for other recently reported network related
interactivity problems.

In testing, I can detect no negative impact of this removal.  IMHO, this
constitutes a bug-fix, and as such is suitable for 2.6.16.

	-Mike

Signed-off-by: Mike Galbraith <efault@gmx.de>

--- linux-2.6.16rc6/kernel/sched.c.org	2006-03-14 10:30:35.000000000 +0100
+++ linux-2.6.16rc6/kernel/sched.c	2006-03-14 10:31:13.000000000 +0100
@@ -707,12 +707,6 @@
 						DEF_TIMESLICE);
 		} else {
 			/*
-			 * The lower the sleep avg a task has the more
-			 * rapidly it will rise with sleep time.
-			 */
-			sleep_time *= (MAX_BONUS - CURRENT_BONUS(p)) ? : 1;
-
-			/*
 			 * Tasks waking from uninterruptible sleep are
 			 * limited in their sleep_avg rise as they
 			 * are likely to be waiting on I/O



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-03-14 12:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14  9:51 [2.6.16-rc6 patch] remove sleep_avg multiplier Mike Galbraith
2006-03-14  9:56 ` Ingo Molnar
2006-03-14 10:05   ` Con Kolivas
2006-03-14 10:10     ` Con Kolivas
2006-03-14 11:56       ` Mike Galbraith
2006-03-14 12:07         ` Con Kolivas
2006-03-14 12:24           ` Mike Galbraith
2006-03-14 12:29             ` Con Kolivas
2006-03-14 12:36               ` Con Kolivas
2006-03-14 12:40               ` Mike Galbraith
2006-03-14 12:47                 ` Con Kolivas
2006-03-14 12:59                   ` Mike Galbraith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox