Re: [ck] Re: [PATCH] mm: yield during swap prefetching

Ingo Molnar
2006-03-17T09:09:14Z

* Con Kolivas <kernel@kolivas.org> wrote:

> > We do have SCHED_BATCH but even that doesn't really have the desired
> > effect. I know how much yield sucks and I actually want it to suck as much
> > as yield does.
>
> Thinking some more on this I wonder if SCHED_BATCH isn't a strong
> enough scheduling hint if it's not suitable for such an application.
> Ingo do you think we could make SCHED_BATCH tasks always wake up on
> the expired array?

yep, i think that's a good idea. In the worst case the starvation
timeout should kick in.

Ingo