From: Ben Hutchings <bhutchings@solarflare.com>
To: "Luck, Tony" <tony.luck@intel.com>
Cc: "jgarzik@redhat.com" <jgarzik@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"matthew@wil.cx" <matthew@wil.cx>, Robin Holt <holt@sgi.com>,
linux-net-drivers <linux-net-drivers@solarflare.com>
Subject: Re: [Patch] fix ia64 build failure when CONFIG_SFC=m
Date: Tue, 29 Jul 2008 18:48:41 +0100 [thread overview]
Message-ID: <20080729174839.GG10471@solarflare.com> (raw)
In-Reply-To: <57C9024A16AD2D4C97DC78E552063EA3080BA318@orsmsx505.amr.corp.intel.com>
Luck, Tony wrote:
> > CONFIG_SFC=m uses topology_core_siblings() which, for ia64, expects
> > cpu_core_map to be exported. It is not. This patch exports the needed
> > symbol.
>
> Ben,
>
> Before I rush to apply this (or one of the other identical patches that
> I've received) ... I'd like to ponder on whether this is the right thing
> to do.
>
> Looking at the code in drivers/net/sfc/efx.c I see that you are using
> this to compute the number of RX queues based on the number of packages
> with the git commit comment saying:
>
> Using multiple cores in the same package to handle received traffic
> does not appear to provide a performance benefit. Therefore use CPU
> topology information to count CPU packages and use that as the default
> number of RX queues and interrupts. We rely on interrupt balancing to
> spread the interrupts across packages.
>
> I have some questions on this:
>
> 1) Did you measure on FSB based systems? ... It's kind of sad that the extra
> cores are not helping and I wonder why. Do AMD and QPI based systems have
> this same limitation?
This heuristic has been in the out-of-tree driver for some time, mostly
based on experience with Intel x86 systems but apparently resulting in good
performance on both Intel and AMD multi-core systems tested here. We do not
have any IA64 multi-core systems. I think a single core in each package can
generally saturate the memory bus and this is why spreading the load wider
is not useful.
> 2) Should Linux have an API to give you a useful number of threads, rather
> than make you dig through the topology data structures? At some point cpumask_t
> data structure is going to be too big for the kernel stack.
Since that's all we want to know, it would certainly simplify this driver
and might be useful to others that implement RSS.
> 3) Does interrupt balancing always do the right thing to spread your interrupts
> across packages?
No, if we want to be sure then we do interrupt pinning afterwards.
> 4) In a hotplug system would you want to adjust the number of threads if cpus
> were added or removed?
That would make sense, but I don't think it can be done without disrupting
network traffic.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
next prev parent reply other threads:[~2008-07-29 17:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-29 1:36 [Patch] fix ia64 build failure when CONFIG_SFC=m Robin Holt
2008-07-29 17:23 ` Luck, Tony
2008-07-29 17:48 ` Ben Hutchings [this message]
2008-07-29 21:00 ` David Miller
2008-07-30 13:35 ` Ben Hutchings
2008-07-30 22:18 ` David Miller
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=20080729174839.GG10471@solarflare.com \
--to=bhutchings@solarflare.com \
--cc=holt@sgi.com \
--cc=jgarzik@redhat.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net-drivers@solarflare.com \
--cc=matthew@wil.cx \
--cc=netdev@vger.kernel.org \
--cc=tony.luck@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;
as well as URLs for NNTP newsgroup(s).