From: Jeremy Fitzhardinge <jeremy@goop•org>
To: Ben Hutchings <bhutchings@solarflare•com>
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>
Subject: Re: [PATCH] xen network backend driver
Date: Wed, 19 Jan 2011 11:16:59 -0800 [thread overview]
Message-ID: <4D3738AB.60701@goop.org> (raw)
In-Reply-To: <1295460304.11126.53.camel@bwh-desktop>
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.
J
next prev parent reply other threads:[~2011-01-19 19:16 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 [this message]
2011-01-19 19:24 ` Ian Campbell
2011-01-19 19:25 ` Ben Hutchings
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=4D3738AB.60701@goop.org \
--to=jeremy@goop$(echo .)org \
--cc=Ian.Campbell@eu$(echo .)citrix.com \
--cc=bhutchings@solarflare$(echo .)com \
--cc=konrad.wilk@oracle$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
--cc=xen-devel@lists$(echo .)xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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