From: Robert Hancock <hancockr@shaw.ca>
To: caiying@yahoo.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Configure MSI-X vectors to target different CPUs
Date: Thu, 21 Feb 2008 21:59:14 -0600 [thread overview]
Message-ID: <47BE4892.6050904@shaw.ca> (raw)
In-Reply-To: <fa.Q1ZK6K82hcGwyp7RFiD9BqBU0CQ@ifi.uio.no>
caiying@yahoo.com wrote:
> Hi,
>
> In MSI-HOWTO, it's said:
>
> "Using MSI enables the device functions to support two or more vectors, which can be configured to target different CPUs to increase scalability."
>
> So how can I set up MSI-X vectors to target different CPUs? I want to allocate the same number of MSI-X vectors as CPUs, and equally distribute them to every CPU.
>
> Is it automatically done by Linux when I call pci_enable_msix()? If yes, how? If not, what should I do? My guess is to set the affinity of the interrupts manually. Am I right?
>
> Please CC'ed me (caiying@yahoo.com) answers/comments in response to this posting.
>
> Thanks,
> Ying
If the device actually supports multiple vectors (not all do), I think
they should show up as separate interrupts in /proc/interrupts and you
can either set the affinity manually, or maybe irqbalance is smart
enough for this.
Careful, though, as in some cases this may reduce performance due to
causing more cache line bouncing between CPUs.
next parent reply other threads:[~2008-02-22 3:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.Q1ZK6K82hcGwyp7RFiD9BqBU0CQ@ifi.uio.no>
2008-02-22 3:59 ` Robert Hancock [this message]
2008-02-26 3:30 Configure MSI-X vectors to target different CPUs caiying
-- strict thread matches above, loose matches on Subject: below --
2008-02-22 2:24 caiying
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=47BE4892.6050904@shaw.ca \
--to=hancockr@shaw.ca \
--cc=caiying@yahoo.com \
--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