public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jakob Oestergaard <jakob@unthought.net>
To: Helge Hafting <helgehaf@aitel.hist.no>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.66-(bk) == horrible response times for non X11 applications
Date: Wed, 9 Apr 2003 10:52:31 +0200	[thread overview]
Message-ID: <20030409085231.GD10141@unthought.net> (raw)
In-Reply-To: <3E93D345.5090209@aitel.hist.no>

On Wed, Apr 09, 2003 at 10:01:09AM +0200, Helge Hafting wrote:
> Jakob Oestergaard wrote:
> >On Sun, Apr 06, 2003 at 06:24:35PM -0700, Andrew Morton wrote:
> [...]
> >>the problem with setiathome is that it displays something every now and
> >>then - so it gets a backboost from X, and hovers at a relatively high
> >>priority.
> >
> >
> >Why are niced processes boosted?   Does that make sense?
> >
> >If only non-niced processes were boosted, wouldn't that pretty much fix
> >the problem?
> >
> You'd have exactly the same problem for any non-niced cpu hog
> that displays something now and then. A non-niced cpu hog is supposed
> to be ok because the interactive processes are boosted above them.

A non-niced CPU hog that has interactivity, like eh, Descent or
Half-Life (under Wine) - well, I want those to get one heck of a lot
more boost than my seti...  or my emacs...

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.

You can break Linux in a million ways from user space by writing poor
user space code.

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.   :)

-- 
................................................................
:   jakob@unthought.net   : And I see the elder races,         :
:.........................: putrid forms of man                :
:   Jakob Østergaard      : See him rise and claim the earth,  :
:        OZ9ABN           : his downfall is at hand.           :
:.........................:............{Konkhra}...............:

  reply	other threads:[~2003-04-09  8:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-06 22:36 2.5.66-(bk) == horrible response times for non X11 applications Zwane Mwaikambo
2003-04-07  1:24 ` Andrew Morton
2003-04-09  6:42   ` Jakob Oestergaard
2003-04-09  8:01     ` Helge Hafting
2003-04-09  8:52       ` Jakob Oestergaard [this message]
2003-04-09  9:10         ` Helge Hafting
2003-04-09  9:26           ` Jakob Oestergaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030409085231.GD10141@unthought.net \
    --to=jakob@unthought.net \
    --cc=helgehaf@aitel.hist.no \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox