public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Williams <pwil3058@bigpond.net.au>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Con Kolivas <kernel@kolivas.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@elte.hu>
Subject: Re: [RFC] CPU scheduler: Simplified interactive bonus mechanism
Date: Thu, 29 Dec 2005 14:51:31 +1100	[thread overview]
Message-ID: <43B35D43.40902@bigpond.net.au> (raw)
In-Reply-To: <43B242F4.3050004@yahoo.com.au>

Nick Piggin wrote:
> Con Kolivas wrote:
> 
>> On Wed, 28 Dec 2005 05:24 pm, Peter Williams wrote:
>>
>>> This patch implements a prototype version of a simplified interactive
>>> bonus mechanism.  The mechanism does not attempt to identify interactive
>>
>>
>>
>>> ---
>>>
>>> Your comments on this proposal are requested.
>>>
>>> ---
>>
>>
>>
>> If we're going to redo the interactivity estimator I happen to have a 
>> whole cpu scheduler design that is interactive by design without being 
>> a state machine that I've been hacking / maintining / debugging for 2 
>> years that many people are already using in production...
>>
> 
> What do you mean interactive by design (presumably as opposed
> to the current scheduler which is not interactive by design)?
> 
> And what do you mean by not being a state machine?
> 
> Back on topic: I don't think that this patch isn't clearly

I assume that the double negative here is accidental and you mean that 
this scheduler isn't clearly better than the current one.

> better than what currently exists, nor would require less
> testing than any other large scale changes to the scheduler
> behaviour.
> 
> So, as Con seems to imply, it is JASW (just another scheduler
> rewrite).

Not a rewrite just some major surgery to one small part (at least when 
compared to nicksched, staircase and the SPA schedulers).  This doesn't 
effect the run queue structure or the load balancing mechanisms.  Or, 
for that matter, even the bonus mechanism itself other than the 
calculation of the bonus as the way the bonus is applied once calculated 
is unchanged.

> Not that there's anything wrong with that... except
> it is not really a good fix for a problem with the current
> scheduler.

Probably not in its present form but with a little refinement I think 
that it may provide a solution.  As I see it the current strategy of 
trying to identify interactive tasks and then giving them bonuses is the 
cause of most of the remaining problems because it's hard to do and if 
you get it wrong and identify non interactive tasks as interactive tasks 
it can have long lasting bad effects on the scheduling quality.  So I 
think a strategy that makes bonuses more ephemeral has some chance of 
success.  Only time and testing will tell.

I think that the big advantage of the patch (at the moment) is that it's 
easy to understand.  Which in turn makes it easier to tweak.

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

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

  reply	other threads:[~2005-12-29  3:51 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 [this message]
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
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=43B35D43.40902@bigpond.net.au \
    --to=pwil3058@bigpond.net.au \
    --cc=kernel@kolivas.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nickpiggin@yahoo.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