[PATCH] O11.2int for interactivity

From: Con Kolivas (kernel@kolivas.org)
Date: Wed Jul 30 2003 - 16:28:56 EST


This patch backs out a little section which isn't quite right and
just might in the wrong circumstances cause unfairness. Goes on
top of O11.1

Con

--- linux-2.6.0-test2-mm1/kernel/sched.c 2003-07-30 20:26:08.000000000 +1000
+++ linux-2.6.0-test2mm1O11/kernel/sched.c 2003-07-30 20:26:45.000000000 +1000
@@ -1292,16 +1292,7 @@ void scheduler_tick(int user_ticks, int
                 if (!TASK_INTERACTIVE(p) || EXPIRED_STARVING(rq)) {
                         if (!rq->expired_timestamp)
                                 rq->expired_timestamp = jiffies;
- /*
- * Long term interactive tasks need to completely
- * run out of sleep_avg to be expired, and when they
- * do they are put at the start of the expired array
- */
- if (unlikely(p->interactive_credit && p->sleep_avg)){
- enqueue_task(p, rq->active);
- goto out_unlock;
- }
- enqueue_task(p, rq->expired);
+ enqueue_task(p, rq->expired);
                 } else
                         enqueue_task(p, rq->active);
         } else if (p->mm && !((task_timeslice(p) - p->time_slice) %

-
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/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:47 EST