public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Andi Kleen <ak@suse.de>
Cc: "David S. Miller" <davem@davemloft.net>, linux-kernel@vger.kernel.org
Subject: Re: for_each_online_cpu broken ?
Date: Thu, 8 Dec 2005 01:27:21 -0500	[thread overview]
Message-ID: <20051208062721.GE28201@redhat.com> (raw)
In-Reply-To: <20051208061211.GG11190@wotan.suse.de>

On Thu, Dec 08, 2005 at 07:12:12AM +0100, Andi Kleen wrote:
 > On Wed, Dec 07, 2005 at 09:38:25PM -0800, David S. Miller wrote:
 > > From: Dave Jones <davej@redhat.com>
 > > Date: Thu, 8 Dec 2005 00:33:02 -0500
 > > 
 > > > On Thu, Dec 08, 2005 at 06:26:32AM +0100, Andi Kleen wrote:
 > > > 
 > > >  > The possible map is fixed kind of BTW in 2.6.15rc*. It was a side effect
 > > >  > of CPU hotplug, which now uses a better algorithm to guess the 
 > > >  > number of possible CPUs. In 2.6.15 you will just get half the number
 > > >  > of available CPUs in addition by default
 > > > 
 > > > Yep, I noticed it offers a maximum of 6 cpus on my way.
 > > > As a sidenote, seems kinda funny (and wasteful maybe?), doing this
 > > > on a lot of hardware that isn't hotplug capable. (Whilst I could
 > > > disable cpu hotplug in my local build, this isn't an answer for
 > > > a generic distro kernel).
 > 
 > If you can figure out a way to detect this please share.
 > The ACPI designers unfortunately didn't think that far
 > (they did it right for memory hotplug, but not for CPU) 
 > 
 > I invented an ACPI extensin for it, but it's non standard
 > so the half of CPUs is used as a default unless overwritten
 > (additional_cpus=NUM) 
 > 
 > Anyways I changed it earlier to 1 additional CPU by default.

Just guessing seems to be pretty guaranteed to give the wrong answer.
I think it makes more sense to say "if your BIOS doesn't give
the relevant info (as is usually the case), boot with additional_cpus)

Penalising the many for the needs of the few just seems wrong.
		
		Dave


  reply	other threads:[~2005-12-08  6:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-08  5:07 for_each_online_cpu broken ? Dave Jones
2005-12-08  5:26 ` Andi Kleen
2005-12-08  5:33   ` Dave Jones
2005-12-08  5:38     ` David S. Miller
2005-12-08  6:12       ` Andi Kleen
2005-12-08  6:27         ` Dave Jones [this message]
2005-12-08  6:22     ` Nigel Cunningham
2005-12-08  6:28       ` Dave Jones
2005-12-08  6:30         ` Andi Kleen
2005-12-09  0:03         ` Nigel Cunningham
2005-12-08  6:30     ` Andi Kleen
2005-12-08  6:43       ` Dave Jones

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=20051208062721.GE28201@redhat.com \
    --to=davej@redhat.com \
    --cc=ak@suse.de \
    --cc=davem@davemloft.net \
    --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