From: Mike Galbraith 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 Acked-by: Ingo Molnar Signed-off-by: Andrew Morton --- kernel/sched.c | 6 ------ 1 files changed, 6 deletions(-) diff -puN kernel/sched.c~remove-sleep_avg-multiplier kernel/sched.c --- devel/kernel/sched.c~remove-sleep_avg-multiplier 2006-03-14 17:48:46.000000000 -0800 +++ devel-akpm/kernel/sched.c 2006-03-14 18:01:48.000000000 -0800 @@ -707,12 +707,6 @@ static int recalc_task_prio(task_t *p, u 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 _