mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
To: "Martin J. Bligh" <mbligh@aracnet.com>
Cc: Nick Piggin <piggin@cyberone.com.au>,
	Mike Fedyk <mfedyk@matchmail.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Nick's scheduler policy v12
Date: Sat, 6 Sep 2003 08:20:08 +0200	[thread overview]
Message-ID: <20030906062007.GA15178@wohnheim.fh-wedel.de> (raw)
In-Reply-To: <6470000.1062819391@[10.10.2.4]>

On Fri, 5 September 2003 20:36:32 -0700, Martin J. Bligh wrote:
> 
> Well, if I can be naive for a second (and I'll fully admit I don't
> understand the implications of this), there are two things here - 
> either give it more of a timeslice (bandwidth increase), or make it 
> more interactive (latency increase). Those two seem to be separable,
> but we don't bother. Seems better to pass a more subtle hint to the
> scheduler that this is interactive - nice seems like a very large
> brick between the eyes.

Just as naïve as you, Martin, but your idea is at least incomplete.
We have to make some processes behave differently, right, but we also
have to detect, which ones they are.  Is the user unhappy with gcc
being a bit jerky?  No, so gcc is not a problem.  X, xmms, xine,
mplayer, quake and a thousand more make the user unhappy, but how do
we detect them and only them?  And which ones do we favor if several
are competing?

One way is to let the user tell you, through nice or anything else,
but the user doesn't want to, so that is suboptimal.

Another way is to integrate the GUI into the kernel, so you know which
window is on top, etc.  But we surely don't want that.

A third way may be to accept hints from userspace, so that X can tell
us, which window is on top.  Maybe as a last resort.

What remains is to try to detect the "interactive" processes through
their behaviour and I am not sure if it is possible to always get this
right in the general case.

Detecting the right processes is the real problem, Martin.  If you can
do that, the rest is quite simple.  And so far, we are quite bad at
it. :(

> I'm probably missing something ... feel free to slap me ;-)

*slap*
Maybe you didn't offer me to, but it still felt good. :)

Jörn

-- 
Fools ignore complexity.  Pragmatists suffer it.
Some can avoid it.  Geniuses remove it.
-- Perlis's Programming Proverb #58, SIGPLAN Notices, Sept.  1982

  reply	other threads:[~2003-09-06  6:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-05 17:57 Nick Piggin
2003-09-05 18:54 ` Martin J. Bligh
2003-09-05 20:22   ` Mike Fedyk
2003-09-05 20:19     ` Martin J. Bligh
2003-09-05 20:39       ` Mike Fedyk
2003-09-05 21:08         ` Robert Love
2003-09-06  1:31           ` Nick Piggin
2003-09-06  1:18       ` Nick Piggin
2003-09-06  3:36         ` Martin J. Bligh
2003-09-06  6:20           ` Jörn Engel [this message]
2003-09-06  6:38           ` Nick Piggin
2003-09-06  6:55             ` Nick Piggin
2003-09-06 15:13             ` Martin J. Bligh
2003-09-06 11:47               ` Ed Sweetman
2003-09-07  2:34                 ` Martin J. Bligh
2003-09-07  3:27                   ` Valdis.Kletnieks
2003-09-07  4:42                   ` Nick Piggin
2003-09-07  4:37               ` Nick Piggin
2003-09-06  7:49           ` Martin Schlemmer

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=20030906062007.GA15178@wohnheim.fh-wedel.de \
    --to=joern@wohnheim.fh-wedel.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mbligh@aracnet.com \
    --cc=mfedyk@matchmail.com \
    --cc=piggin@cyberone.com.au \
    /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

all inboxes | Powered by JetHome®