> glxgears - if I run it (I don't know why I would, but let's say I wanted
> to) - I don't want it to drop frames to favour my emacs or kword or
> whatever (in the case of glxgears maybe I would - but I wouldn't run it
> in the first place - let's just assume that glxgears is really some
> important real-time visualization application). If emacs behaves "less
> interactively" than glxgears, then this is because glxgears is doing
> something intensive, eg. it really gets hurt if it is not heavily
> boosted. Yes, you would be insane to run glxgears and some other
> interactive application simultaneously, and expect that both can get 90%
> of the resources - but this is the problem of limited resources and no
> amount of cleverness is going to solve that.
>
>
>>Gui is becoming popular, so many compute tasks get some sort of
>>display, even if it only is a progress bar.
>
>
> And if they update the progress bar 100 times per second, then either it
> is crucially important that this is not delayed, or the app needs
> fixing.
I'm not sure I agree on that - see below.
> You can break Linux in a million ways from user space by writing poor
> user space code.
>
Sure.
> It wouldn't update 100 times per second unless it was important would
> it? And if it is important, then it's a lot better to make sure it
> happens, than to ensure that the bash in the xterm next door gets it's
> timeslices exactly when it wants them. After all, you can type in a
> laggy terminal (and if you type enough, it will get similar
> interactiveness boost and we're back to the problem of limited
> resources).
>
> Look, I'm not trying to defend the boosting mechanism at all costs - I'm
> just trying to argue that it's not fundamentally insane. :)
I agree that it isn't fundamentally insane, but using the 2.5.66
mechanism might force you to
concider some apps "broken" that were fine before. This forces the
question of how hard it should be to write a user program.
100 screen updates per second doesn't mean it is important if it only
is twiddling of a baton or some progress bar. People simply stick such
things in an outer loop - and that worked out to a update or two
per second in 1989. Same code on todays machines results in hundreds
of updates per second. Are we going to fix apps as our pcs becomes faster?
Cpu speed independent animations/screen updates are indeed possible,
something
every game writer has to deal with. But do we want to force people to do
that only so their progress bar won't go over some update treshold and
become an "interactive cpu hog" on some future fast machine?
Helge Hafting
-
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/