From: Ben Hutchings <bhutchings@solarflare.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Ian Campbell <Ian.Campbell@eu.citrix.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
xen-devel <xen-devel@lists.xensource.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Tom Herbert <therbert@google.com>
Subject: Re: [PATCH] xen network backend driver
Date: Wed, 19 Jan 2011 19:25:47 +0000 [thread overview]
Message-ID: <1295465147.11126.57.camel@bwh-desktop> (raw)
In-Reply-To: <4D3738AB.60701@goop.org>
On Wed, 2011-01-19 at 11:16 -0800, Jeremy Fitzhardinge wrote:
> On 01/19/2011 10:05 AM, Ben Hutchings wrote:
> > Not in itself. NAPI polling will run on the same CPU which scheduled it
> > (so wherever the IRQ was initially handled). If the protocol used
> > between netfront and netback doesn't support RSS then RPS
> > <http://lwn.net/Articles/362339/> can be used to spread the RX work
> > across CPUs.
>
> There's only one irq per netback which is bound to one (V)CPU at a
> time. I guess we could extend it to have multiple irqs per netback and
> some way of distributing packet flows over them, but that would only
> really make sense if there's a single interface with much more traffic
> than the others; otherwise the interrupts should be fairly well
> distributed (assuming that the different netback irqs are routed to
> different cpus).
>
> Also, I assume that if most of the packets are not terminating in dom0
> itself but are sent out some other device (either real hardware or to
> another domain), then there won't be any protocol processing and the
> amount of CPU required to handle the packet is minimal. Is that true?
> And if so, would RPS help in that case? I would expect the cost of an
> IPI to swamp anything else that needs to happen to the packet.
IPIs are apparently pretty cheap now.
If NAPI doesn't work for netback, with or without RPS, maybe you have to
use that kthread. But please don't reinvent the wheel by creating your
own tasklets or require users to set a special parameter.
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:[~2011-01-19 19:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-19 15:01 [PATCH] xen network backend driver Ian Campbell
2011-01-19 16:40 ` Ben Hutchings
2011-01-19 17:48 ` Ian Campbell
2011-01-19 18:05 ` Ben Hutchings
2011-01-19 19:16 ` Jeremy Fitzhardinge
2011-01-19 19:24 ` Ian Campbell
2011-01-19 19:25 ` Ben Hutchings [this message]
2011-01-19 19:31 ` Ian Campbell
2011-01-19 19:28 ` [Xen-devel] " Pasi Kärkkäinen
2011-01-19 19:48 ` Ben Hutchings
2011-01-19 19:58 ` Pasi Kärkkäinen
2011-01-19 20:16 ` Ben Hutchings
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=1295465147.11126.57.camel@bwh-desktop \
--to=bhutchings@solarflare.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=jeremy@goop.org \
--cc=konrad.wilk@oracle.com \
--cc=netdev@vger.kernel.org \
--cc=therbert@google.com \
--cc=xen-devel@lists.xensource.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).