However, that will also send X and friends go off to the expired array
_very_ quickly. This will certainly destroy interactive feel under load
because your desktop can/will go away for seconds at a time. Try to drag a
window while a make -j10 is running, and it'll get choppy as heck. AFAIKT,
anything that you do to increase concurrency in a global manner is _going_
to have the side effect of damaging interactive feel to some extent. The
one and only source of desktop responsiveness is the large repository of
cpu ticks a task is allowed to save up for a rainy day.
What I would love to figure out is a way to reintroduce back-boost without
it having global impact. I think hogging the cpu is absolutely _wonderful_
when the hogs are the tasks I'm interacting with. Unfortunately, there
seems to be no way to determine whether a human is intimately involved or
not other than to specifically tell the scheduler this via renice.
> > Doing make -j20 and staying on the same desktop doesnt cause any
> > skipping at all (but it didnt cause much skipping at all on plain
> > 2.5.72-mm1 either).
>
>So it is better than the default mm1? (doesnt cause any vs didnt cause much)
>
> > I also applied your p->sleep_avg = 0; stuff (keeping MAX_SLEEP_AVG 2 and
> > HZ 1000) and it behaved just like I described earlier (songs started
> > after the make never stop skipping).
>
>Well anything started will be penalised initially as being completely
>non-interactive with the p->sleep_avg = 0. This seems to work fine for normal
>usage patterns I've found on -ck1, as after a short while it gets a bonus up
>to interactive. But you say that doesn't happen on 2.5?
>
> > I am fairly sure the winner for me here was the MAX_SLEEP_AVG since I
> > have fiddled with HZ before without it making big noticable differences.
>
>Yes you're confirming pretty much what I'm finding now that I've played with
>it a lot more.
>
> > I havent gotten a 2.4 kernel patched up yet (lazy), but I'll get that
> > done and see how that sleep_avg patch behaves here then.
>
>Shouldn't be any different than what you've described on 2.5 now, if you make
>CHILD_PENALTY match that on 2.5 (is 50 in 2.5, was 95 in -ck1)
This is the easy way to cure xmms's problem of new thread starting at too
low priority, but it also shows the other side of the coin. With this
change, your interactive feel will be wonderful. However, when you start a
cpu hog, it starts it's life with a fully loaded starve-me battery. What
happens when a highly charged task forks off a bunch of cpu hogs? Yup,
mega-starvation until they burn off the pre-charge.
Sigh, scheduling is a _bitch_.
-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/