diff options
author | Mike Galbraith <efault@gmx.de> | 2006-03-22 03:07:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 10:53:54 -0500 |
commit | 9430d58e34ec3861e1ca72f8e49105b227aad327 (patch) | |
tree | ac8f8295131fbf3c0ddc689fa9887a8c95b0814d /kernel | |
parent | e952f31bce6e9f64db01f607abc46529ba57ac9e (diff) |
[PATCH] sched: remove sleep_avg multiplier
Remove 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.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 4d46e90f59c3..6b6e0d70eb30 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -707,12 +707,6 @@ static int recalc_task_prio(task_t *p, unsigned long long now) | |||
707 | DEF_TIMESLICE); | 707 | DEF_TIMESLICE); |
708 | } else { | 708 | } else { |
709 | /* | 709 | /* |
710 | * The lower the sleep avg a task has the more | ||
711 | * rapidly it will rise with sleep time. | ||
712 | */ | ||
713 | sleep_time *= (MAX_BONUS - CURRENT_BONUS(p)) ? : 1; | ||
714 | |||
715 | /* | ||
716 | * Tasks waking from uninterruptible sleep are | 710 | * Tasks waking from uninterruptible sleep are |
717 | * limited in their sleep_avg rise as they | 711 | * limited in their sleep_avg rise as they |
718 | * are likely to be waiting on I/O | 712 | * are likely to be waiting on I/O |