DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Matthew Hall <mhall@mhcomputing.net>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] DCA
Date: Wed, 22 Apr 2015 10:10:04 +0100	[thread overview]
Message-ID: <20150422091004.GB5652@bricha3-MOBL3> (raw)
In-Reply-To: <20150421174454.GA1172@mhcomputing.net>

On Tue, Apr 21, 2015 at 10:44:54AM -0700, Matthew Hall wrote:
> On Tue, Apr 21, 2015 at 10:27:48AM +0100, Bruce Richardson wrote:
> > Can you perhaps comment on the use-case where you find this binding 
> > limiting? Modern platforms have multiple NUMA nodes, but they also generally 
> > have PCI slots connected to those multiple NUMA nodes also, so that you can 
> > have your NIC ports similarly NUMA partitionned?
> 
> Hi Bruce,
> 
> I was wondering if you have tried to do this on COTS (commerical 
> off-the-shelf) hardware before. What I found each time I tried it was that 
> PCIe slots are not very evenly distributed across the NUMA nodes unlike what 
> you'd expect.
> 

I doubt I've tried it on regular commercial boards as much as you guys have,
though it does happen!

> Sometimes the PCIe lanes on CPU 0 get partly used up by Super IO or other 
> integrated peripherals. Other times the motherboards give you 2 x8 when you 
> needed 1 x16 or they give you a bundh of x4 when you needed x8, etc.

Point taken!

> 
> It's actually pretty difficult to find the mapping, for one, and even when you 
> do, even harder to get the right slots for your cards and so on. In the ixgbe 
> kernel driver you'll sometimes get some cryptic debug prints when it's been 
> munged and performance will suffer. But in the ixgbe PMD driver you're on your 
> own mostly.

It was to try and make the NUMA mapping of PCI clearer that we added in the
printing of the NUMA node on PCI scan:

EAL: PCI device 0000:86:00.0 on NUMA socket 1
EAL:   probe driver: 8086:154a rte_ixgbe_pmd
EAL:   PCI memory mapped at 0x7fb452f04000
EAL:   PCI memory mapped at 0x7fb453004000

Is there something more than this you feel we could do in the PMD to help with
slot identification?

/Bruce

> 
> Matthew.

      reply	other threads:[~2015-04-22  9:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-20 10:07 Vlad Zolotarov
2015-04-20 10:50 ` Bruce Richardson
2015-04-21  8:51   ` Vlad Zolotarov
2015-04-21  9:27     ` Bruce Richardson
2015-04-21  9:47       ` Vlad Zolotarov
2015-04-21 17:44       ` Matthew Hall
2015-04-22  9:10         ` Bruce Richardson [this message]

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=20150422091004.GB5652@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=mhall@mhcomputing.net \
    /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;
as well as URLs for NNTP newsgroup(s).