public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Con Kolivas <kernel@kolivas.org>
To: Andrew Morton <akpm@osdl.org>
Cc: npiggin@suse.de, mingo@elte.hu, rostedt@goodmis.org,
	pwil3058@bigpond.net.au, suresh.b.siddha@intel.com,
	linux-kernel@vger.kernel.org, torvalds@osdl.org
Subject: Re: [rfc][patch] sched: remove smpnice
Date: Wed, 8 Feb 2006 10:11:09 +1100	[thread overview]
Message-ID: <200602081011.09749.kernel@kolivas.org> (raw)
In-Reply-To: <20060207141525.19d2b1be.akpm@osdl.org>

On Wed, 8 Feb 2006 09:15 am, Andrew Morton wrote:
> Con Kolivas <kernel@kolivas.org> wrote:
> > On Wednesday 08 February 2006 01:28, Nick Piggin wrote:
> > > I'd like to get some comments on removing smpnice for 2.6.16. I don't
> > > think the code is quite ready, which is why I asked for Peter's
> > > additions to also be merged before I acked it (although it turned out
> > > that it still isn't quite ready with his additions either).
> > >
> > > Basically I have had similar observations to Suresh in that it does not
> > > play nicely with the rest of the balancing infrastructure (and raised
> > > similar concerns in my review).
> > >
> > > The samples (group of 4) I got for "maximum recorded imbalance" on a
> > > 2x2
> > >
> > > SMP+HT Xeon are as follows:
> > >            | Following boot | hackbench 20        | hackbench 40
> > >
> > > -----------+----------------+---------------------+--------------------
> > >- 2.6.16-rc2 | 30,37,100,112  | 5600,5530,6020,6090 |
> > > 6390,7090,8760,8470 +nosmpnice |  3, 2,  4,  2  |   28, 150, 294, 132 |
> > >  348, 348, 294, 347
> > >
> > > Hackbench raw performance is down around 15% with smpnice (but that in
> > > itself isn't a huge deal because it is just a benchmark). However, the
> > > samples show that the imbalance passed into move_tasks is increased by
> > > about a factor of 10-30. I think this would also go some way to
> > > explaining latency blips turning up in the balancing code (though I
> > > haven't actually measured that).
> > >
> > > We'll probably have to revert this in the SUSE kernel.
> > >
> > > The other option for 2.6.16 would be to fast track Peter's stuff, which
> > > I could put some time into... but that seems a bit risky at this stage
> > > of the game.
> > >
> > > I'd like to hear any other suggestions though. Patch included to aid
> > > discussion at this stage, rather than to encourage any rash decisions.
> >
> > I see the demonstrable imbalance but I was wondering if there is there a
> > real world benchmark that is currently affected?
>
> Well was any real-world workload (or benchmark) improved by the smpnice
> change?

No benchmark improved but 'nice' handling moved from completely not working on 
SMP to having quite effective cpu resource modification according to nice. 
nice 19 vs nice 0 has 5% of the cpu on UP. On SMP machines without smp nice 
if you have more tasks than cpus (the 5 tasks on 4 cpu example) you often get 
nice 19 tasks getting more cpu resources than nice 0 tasks; a nice 19 task 
would get 100% of one cpu and two nice 0 tasks would get 50% of a cpu. With 
smp nice the nice 19 task received between 5-30% of one cpu depending on 
their sleep/wake pattern.

> Because if we have one workload which slowed and and none which sped up,
> it's a pretty easy decision..

The resource allocation fairness was improved with smp nice but no benchmark 
directly sped up per se.

Cheers,
Con

  reply	other threads:[~2006-02-07 23:11 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 14:28 [rfc][patch] sched: remove smpnice Nick Piggin
2006-02-07 14:57 ` Con Kolivas
2006-02-07 15:05   ` Nick Piggin
2006-02-07 22:15   ` Andrew Morton
2006-02-07 23:11     ` Con Kolivas [this message]
2006-02-07 23:36       ` Andrew Morton
2006-02-08  3:28         ` Nick Piggin
2006-02-08 14:56         ` Ingo Molnar
2006-02-10  7:01         ` Siddha, Suresh B
2006-02-10  7:17           ` Andrew Morton
2006-02-10  7:23             ` Con Kolivas
2006-02-10  9:06             ` Ingo Molnar
2006-02-11  1:27             ` Peter Williams
2006-02-11  2:00               ` Andrew Morton
2006-02-12  1:13                 ` Peter Williams
2006-02-12 23:10                   ` Peter Williams
2006-02-13  1:06                     ` Peter Williams
2006-02-14  0:37                       ` Peter Williams
2006-02-14  8:53                         ` Siddha, Suresh B
2006-02-11  3:36               ` Peter Williams
2006-02-11  4:04               ` Peter Williams
2006-02-14  9:07               ` Siddha, Suresh B
2006-02-14 22:40                 ` Peter Williams
2006-02-14 23:44                   ` Paul Jackson
2006-02-15  0:09                     ` Peter Williams
2006-02-15  1:00                       ` Paul Jackson
2006-02-15  7:07                   ` Siddha, Suresh B
2006-02-15 22:36                     ` Peter Williams
2006-02-15 23:29                       ` Peter Williams
2006-02-13 14:12           ` Con Kolivas
2006-02-07 23:20     ` Peter Williams
2006-02-07 23:29       ` Con Kolivas
2006-02-07 23:36       ` Martin Bligh

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=200602081011.09749.kernel@kolivas.org \
    --to=kernel@kolivas.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=npiggin@suse.de \
    --cc=pwil3058@bigpond.net.au \
    --cc=rostedt@goodmis.org \
    --cc=suresh.b.siddha@intel.com \
    --cc=torvalds@osdl.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