lkml.org 
[lkml]   [2006]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [rfc][patch] improved interactive starvation patch against 2.6.16
From
Date
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@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: 2006-03-30 20:25    [W:0.065 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site