public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Williams <pwil3058@bigpond.net.au>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Con Kolivas <kernel@kolivas.org>, Andrew Morton <akpm@osdl.org>
Subject: Re: [RFC] CPU scheduler: Simplified interactive bonus mechanism
Date: Thu, 29 Dec 2005 00:16:19 +1100	[thread overview]
Message-ID: <43B29023.8080306@bigpond.net.au> (raw)
In-Reply-To: <20051228083615.GA12180@elte.hu>

Ingo Molnar wrote:
> * Ingo Molnar <mingo@elte.hu> wrote:
> 
> 
>>* Peter Williams <pwil3058@bigpond.net.au> wrote:
>>
>>
>>>This patch implements a prototype version of a simplified interactive 
>>>bonus mechanism.  The mechanism does not attempt to identify 
>>>interactive tasks and give them a bonus (like the current mechanism 
>>>does) but instead attacks the problem that the bonuses are supposed to 
>>>fix, unacceptable interactive latency, directly.
>>
>>i think we could give this one a workout in -mm, to see the actual 
>>effects. Would you mind to merge this to -mm's scheduler queue, to right 
>>after sched-add-sched_batch-policy.patch?
> 
> 
> i have done this for latest -mm, see the patch below (i also merged your 
> patch to the SCHED_BATCH patch's effects), but the resulting kernel has 
> really bad interactivity: e.g. simply starting 4 CPU hogs on a 2-CPU 
> system slows down shell commands like 'ls' noticeably. So NACK for the 
> time being.

OK.  I didn't really think this was ready for the big time yet without 
some refinement which is why I RFC'd it rather than posting it as a patch.

How good the interactive responsiveness really was one of my concerns as 
it's hard to evaluate.  Just because it seemed to work well on my system 
doesn't mean that it works well everywhere.  I did test it with 16 hard 
spinners on my SMT workstation but I was mainly looking at things like X 
responsiveness and the rythmbox music player and not shell commands.

I think that from a theoretical point of view shell commands won't do 
well with this scheduler (as it stands) as they don't do many 
interactive sleeps and hence are unlikely to accrue any bonuses.  So 
that means back to the drawing board.  It also means that interactive 
latency isn't the only important latency.  Perhaps all latencies need to 
be considered with interactive latencies being given more weight.  (This 
would be consistent with the current scheduler which only completely 
discounts sleep that is marked TASK_NONINTERACTIVE and just heavily 
discounts uninterruptible sleep.)

Thanks for the feed back.  You've given me something to think about and 
I think these issues can be addressed without very little extra 
complexity.  If not I'll just shelve the idea.

Peter
-- 
Peter Williams                                   pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
  -- Ambrose Bierce

  reply	other threads:[~2005-12-28 13:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-28  6:24 [RFC] CPU scheduler: Simplified interactive bonus mechanism Peter Williams
2005-12-28  6:35 ` Con Kolivas
2005-12-28  7:47   ` Nick Piggin
2005-12-29  3:51     ` Peter Williams
2005-12-29  8:02       ` Ingo Molnar
2005-12-29  8:22       ` Nick Piggin
2005-12-28  8:00 ` Ingo Molnar
2005-12-28  8:36   ` Ingo Molnar
2005-12-28 13:16     ` Peter Williams [this message]
2006-01-03  0:55     ` Peter Williams

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=43B29023.8080306@bigpond.net.au \
    --to=pwil3058@bigpond.net.au \
    --cc=akpm@osdl.org \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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