From: Ashok Raj <ashok.raj@intel.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>,
Andi Kleen <ak@suse.de>, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, ashok.raj@intel.com
Subject: Re: [patch] genapic: optimize & fix APIC mode setup
Date: Mon, 13 Nov 2006 11:31:02 -0800 [thread overview]
Message-ID: <20061113113102.A23060@unix-os.sc.intel.com> (raw)
In-Reply-To: <20061113184255.GA25528@elte.hu>; from mingo@elte.hu on Mon, Nov 13, 2006 at 07:42:56PM +0100
On Mon, Nov 13, 2006 at 07:42:56PM +0100, Ingo Molnar wrote:
>
> * Siddha, Suresh B <suresh.b.siddha@intel.com> wrote:
>
> > > for that i'd have to know the bug, and this is the third time i'm
> > > asking about specifics :-) (The URL that was given in the thread was
> > > about a chipset bug regarding incompatibility with clustered-APIC
> > > mode - my patch in fact - because it switches small systems to use
> > > logical flat mode always - solves that kind of regression too.)
> >
> > Not really. That chipset belongs to a MP platform and with your
> > proposed patch, we will endup using clustered APIC mode and will hit
> > the issue(in the presence of cpu hotplug) mentioned in that URL.
>
> hm, why does it end up in clustered mode? Cluster mode should only
> trigger if the APIC IDs go beyond 16.
number of cpus >8 we need to switch to either clustered or flat physical mode.
>
> but i'd be fine with never going into cluster mode, instead always using
> physical flat mode when having more than 8 APICs (independent of the
> presence of CPU hotplug). On small systems, logical flat mode is what is
> the best-tested variant (it's also slightly faster).
>
> Ingo
I think we choose flat physical mode for two reasons, x86_64 was doing the same
so we were consistent with the approach. The other was when we have cpu hotplug
enabled its difficult to say what the max number of cpus will be. So
choosing flat logical was not right even if we had 8 or less cpus, and
technically we could think of something that starts with less and go beyond
max cluster limit of 60 as well.
Hence Andi introduces another way to limit it based on disabled cpu count in
MADT, or user can specify at startup time to specify the limit of potentially
hot-pluggable cpus.
bigsmp was also a relatively new variant at the time, and all agreed to keep
things simple instead of having 3 different approaches, (logical flat,
logical cluster, and flat physical). Running some simple tests we didnt
see any appreciable differences at that time, maybe we were not that exhaustive.
--
Cheers,
Ashok Raj
- Open Source Technology Center
next prev parent reply other threads:[~2006-11-13 19:54 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-11 15:14 [patch] genapic: optimize & fix APIC mode setup Ingo Molnar
2006-11-11 15:20 ` Andi Kleen
2006-11-11 15:27 ` Ingo Molnar
2006-11-11 15:39 ` Ingo Molnar
2006-11-13 1:50 ` Siddha, Suresh B
2006-11-13 2:32 ` Andi Kleen
2006-11-13 8:16 ` Ingo Molnar
2006-11-13 9:08 ` Andi Kleen
2006-11-13 14:05 ` Ingo Molnar
2006-11-13 14:29 ` Andi Kleen
2006-11-13 15:04 ` Ingo Molnar
2006-11-13 16:10 ` Andi Kleen
2006-11-13 16:32 ` Ingo Molnar
2006-11-13 18:03 ` Siddha, Suresh B
2006-11-13 18:42 ` Ingo Molnar
2006-11-13 18:30 ` Siddha, Suresh B
2006-11-13 19:04 ` Ingo Molnar
2006-11-13 18:58 ` Siddha, Suresh B
2006-11-13 19:31 ` Ashok Raj [this message]
2006-11-13 19:08 ` Ingo Molnar
2006-11-13 14:14 ` Ingo Molnar
2006-11-13 8:43 ` Ingo Molnar
2006-11-13 17:34 ` Siddha, Suresh B
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=20061113113102.A23060@unix-os.sc.intel.com \
--to=ashok.raj@intel.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=suresh.b.siddha@intel.com \
/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