lkml.org 
[lkml]   [2003]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] O11.2int for interactivity
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.029 / U:1.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site