From: Ciju Rajan K <ciju@linux.vnet.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: Robert Hancock <hancockrwd@gmail.com>,
Bryan Hundven <bryanhundven@gmail.com>,
mchehab@redhat.com
Subject: Re: Interrupt Affinity in SMP
Date: Mon, 19 Jul 2010 00:08:17 +0530 [thread overview]
Message-ID: <4C434A19.9050207@linux.vnet.ibm.com> (raw)
In-Reply-To: <AANLkTinSjNHPyariuoUuYZCRcbTf8nQALma81I4CPdsv@mail.gmail.com>
Bryan Hundven wrote:
> On Sat, Jul 10, 2010 at 6:20 PM, Robert Hancock <hancockrwd@gmail.com> wrote:
>
>> On Sat, Jul 10, 2010 at 1:46 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>>
>>> I was able to set eth0 and it's TxRx queues to cpu1, but it is my
>>> understanding that 0xFFFFFFFF should distribute the interrupts across all
>>> cpus, much like LOC in my output of /proc/interrupts.
>>>
>>> I don't have access to the computer this weekend, but I will provide more
>>> info on Monday.
>>>
>> That may be chipset dependent, I don't think all chipsets have the
>> ability to distribute the interrupts like that. Round-robin interrupt
>> distribution for a given handler isn't optimal for performance anyway
>> since it causes the relevant cache lines for the interrupt handler to
>> be ping-ponged between the different CPUs.
>>
>>
>>> -bryan
>>>
>>> On Jul 9, 2010 5:48 PM, "Robert Hancock" <hancockrwd@gmail.com> wrote:
>>>
>>> On 07/09/2010 04:59 PM, Bryan Hundven wrote:
>>>
>>>> Mauro, list,
>>>>
>>>> (please CC me in replies, I am not...
>>>>
>>> Tried changing these files to exclude CPU0?
>>>
>>> Have you tried running the irqbalance daemon? That's what you likely want to
>>> be doing anyway..
>>>
>>>
>>>> =====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====8<=====
>>>>
>>>> =====8<=====8<=====8<==...
>>>>
>
> Please see the two attached examples.
>
> Notice on the 5410 example how we start with the affinity set to 0xff,
> and change it to 0xf0.
> This should spread the interrupts over the last 4 cores of this quad
> core - dual processor system.
>
> Also notice on the 5645 example, with the same commands we start with
> 0xffffff and change to 0xfff000 to spread the interrupts over the last
> 12 cores, but only the first of the last twelve cores receive
> interrupts.
>
> This is the inconsistency I was trying to explain before.
>
What was the status of irqbalance daemon? Was it turned on? If it is
running, there is a chance that the interrupt count is within the
threshold limit and interrupts are not being routed to the other core.
Could you also try with increasing the interrupt load and see if the
distribution is happening among the cores?
-Ciju
> --Bryan
>
next prev parent reply other threads:[~2010-07-18 18:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 22:59 Interrupt Affinity in SMP Bryan Hundven
2010-07-10 0:48 ` Robert Hancock
[not found] ` <AANLkTilH9Hn0MHvfOEOyEeRmDcPTrRXIFB3K8pq31yIH@mail.gmail.com>
[not found] ` <AANLkTikZCBrZwROGgGTj-JREywN3fUnvaANtTGgkok--@mail.gmail.com>
2010-07-11 1:20 ` Robert Hancock
2010-07-17 20:02 ` Bryan Hundven
2010-07-18 18:38 ` Ciju Rajan K [this message]
2010-07-18 18:52 ` Bryan Hundven
2010-07-18 19:22 ` Ciju Rajan K
2010-07-19 17:01 ` Bryan Hundven
2010-07-19 19:22 ` Robert Hancock
2010-07-19 20:03 ` Bryan Hundven
2010-07-19 21:33 ` Robert Hancock
-- strict thread matches above, loose matches on Subject: below --
2010-06-30 6:08 Hari LKML
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=4C434A19.9050207@linux.vnet.ibm.com \
--to=ciju@linux.vnet.ibm.com \
--cc=bryanhundven@gmail.com \
--cc=hancockrwd@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@redhat.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