Messages in this thread Patch in this message | | | Subject | Re: [patch 2.6.16-mm2 3/9] sched throttle tree extract - remove IO priority barrier | From | Mike Galbraith <> | Date | Sat, 01 Apr 2006 10:44:18 +0200 |
| |
This patch removes the barrier preventing IO bound tasks from competing against highly interactive tasks for cpu time. This barrier has been demonstrated to cause starvation of IO bound tasks, and in testing, I've found it to now be unnecessary in any case.
Signed-off-by: Mike Galbraith <efault@gmx.de>
--- linux-2.6.16-mm2/kernel/sched.c-2.fix_uninterruptible 2006-03-31 13:34:04.000000000 +0200 +++ linux-2.6.16-mm2/kernel/sched.c 2006-04-01 08:57:40.000000000 +0200 @@ -880,21 +880,6 @@ static int recalc_task_prio(task_t *p, u p->sleep_avg = ceiling; } else { /* - * Tasks waking from uninterruptible sleep are - * limited in their sleep_avg rise as they - * are likely to be waiting on I/O - */ - if (p->sleep_type == SLEEP_NONINTERACTIVE && p->mm) { - if (p->sleep_avg >= INTERACTIVE_SLEEP(p)) - sleep_time = 0; - else if (p->sleep_avg + sleep_time >= - INTERACTIVE_SLEEP(p)) { - p->sleep_avg = INTERACTIVE_SLEEP(p); - sleep_time = 0; - } - } - - /* * This code gives a bonus to interactive tasks. * * The boost works by updating the 'average sleep time'
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |