From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>,
Andi Kleen <andi@firstfloor.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] x86: implement multiple queues for smp function call IPIs
Date: Thu, 31 Jul 2008 15:23:54 -0700 [thread overview]
Message-ID: <48923B7A.3020805@goop.org> (raw)
In-Reply-To: <20080731220825.GD23801@elte.hu>
Ingo Molnar wrote:
>
> heh, nice :-)
>
> Before going into all the fine details an trying our luck in tip/master
> QA, i'm a bit worried about hw compatibility in general though. APICs
> have been flaky since the beginnings of times. We had erratas in the
> area of local timer IRQs(IPIs) overlapping with IPIs, etc. - so i'd not
> bet the farm on all APICs being able to handle a _lot_ more overlapped
> inter-CPU IPIs than we do currently. (which basically was just three of
> them until now, and now four with the new SMP cross-call IPIs)
>
> So this _has_ to be approached defensively. It _should_ work, and i'm
> all in favor of utilizing hardware resources more fully, but it's an
> entirely new mode of operation for the hardware. I think a Kconfig
> option (which defaults to off), and a boot option to disable it would be
> nice, so that we can introduce this gently, at least initially. Then
> when we see that it's 100% trouble-free we can flip around the default.
>
As Andi pointed out, this is more or less functionally identical to the
code I ripped out of tlb_64.c, so this mode of operation has had lots of
exposure on the 64-bit side. Because the number of queues is a CONFIG
variable, it would be relatively easy to make it a real config option,
and/or use different numbers for 32 and 64-bit. Choosing 1 as the
number of queues will make it behave exactly as the current code does.
I'm not really familiar with all the ins and outs of apic bugs. What's
the issue you're concerned about?
> Plus, would it be possible to shape this a bit more dynamically? I like
> 8 as a nice round number, but i bet some folks would like to have 16,
> some would like to have 4 ... Perhaps even making it dynamic (so that we
> can turn it all off in the case of trouble with certain CPU/APIC
> versions).
>
> Hm?
>
Sure, that's possible in a followup patch. There's a pile of repeated
boilerplate code which would need to be cleaned up to make it
configurable and/or runtime changable. Also, it would need some way to
allocate a contiguous block of vectors; I'm not sure if the just-posted
SGI patch allows that...
It also occurred to me that it might be more interesting to parameterise
the queues - and the mapping of cpus->queues - in a more topology-aware
way than simply NQUEUES=NCPUS/x, queue=cpuid % NQUEUES. But I haven't
given it much thought.
J
next prev parent reply other threads:[~2008-07-31 22:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 23:32 [PATCH 2/2] x86: implement multiple queues for smp function call IPIs Jeremy Fitzhardinge
2008-07-29 23:43 ` Jeremy Fitzhardinge
2008-07-30 0:13 ` Andi Kleen
2008-07-30 0:44 ` Jeremy Fitzhardinge
2008-07-30 4:55 ` Nick Piggin
2008-07-31 22:08 ` Ingo Molnar
2008-07-31 22:12 ` Andi Kleen
2008-07-31 22:23 ` Jeremy Fitzhardinge [this message]
2008-07-31 22:42 ` Ingo Molnar
2008-08-01 4:58 ` Jeremy Fitzhardinge
2008-08-01 9:09 ` Ingo Molnar
2008-08-01 14:17 ` Andi Kleen
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=48923B7A.3020805@goop.org \
--to=jeremy@goop.org \
--cc=andi@firstfloor.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