Re: [rfc][patch] improved interactive starvation patch against2.6.16
From: Mike Galbraith
Date: Thu Mar 30 2006 - 13:20:11 EST
On Thu, 2006-03-30 at 16:22 +0200, Mike Galbraith wrote:
> + if (expired_starving(rq)) {
> + int limit = MIN_TIMESLICE + CURRENT_BONUS(p);
> + int runtime = now - p->timestamp;
> +
> + runtime = NS_TO_JIFFIES(runtime);
> + if (runtime >= limit && p->time_slice >= limit) {
> +
> + dequeue_task(p, rq->active);
> + enqueue_task(p, rq->expired);
> + set_tsk_need_resched(p);
> + if (p->prio < rq->best_expired_prio)
> + rq->best_expired_prio = p->prio;
> + }
> + }
This bit isn't cutting it. expired_starving() is routine enough that
short slicing (on this scale at least) is noticed. Don't waste your
time with this one.
-Mike
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/