Skip to content

Commit

Permalink
[PATCH] sched: remove sleep_avg multiplier
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Galbraith authored and Linus Torvalds committed Mar 22, 2006
1 parent e952f31 commit 9430d58
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,12 +706,6 @@ static int recalc_task_prio(task_t *p, unsigned long long now)
p->sleep_avg = JIFFIES_TO_NS(MAX_SLEEP_AVG -
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
Expand Down

0 comments on commit 9430d58

Please sign in to comment.