Re: [rfc][patch] improved interactive starvation patch against 2.6.16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux