Messages in this thread | | | Subject | Re: [rfc][patch] improved interactive starvation patch against 2.6.16 | From | Mike Galbraith <> | Date | Thu, 30 Mar 2006 20:23:24 +0200 |
| |
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/
| |