From: Jonathan Cooper <jcooper@solarflare.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Edward Cree <ecree@solarflare.com>, <netdev@vger.kernel.org>,
Shawn Bohrer <shawn.bohrer@gmail.com>,
Shawn Bohrer <sbohrer@rgmadvisors.com>
Subject: Re: [RFC PATCH] udp: allow busy_poll on some unconnected sockets
Date: Fri, 11 Apr 2014 11:44:07 +0100 [thread overview]
Message-ID: <5347C777.2080901@solarflare.com> (raw)
In-Reply-To: <1397156649.16584.45.camel@edumazet-glaptop2.roam.corp.google.com>
On 10/04/14 20:04, Eric Dumazet wrote:
> On Thu, 2014-04-10 at 19:38 +0100, Edward Cree wrote:
>> On 10/04/14 19:32, Eric Dumazet wrote:
>>> On Thu, 2014-04-10 at 19:04 +0100, Edward Cree wrote:
>>>
>>>> Tested by setting IFF_SINGLE_NAPI in sfc; a UDP ping-pong test showed a
>>>> performance benefit from sysctl net.core.busy_{read,poll}=50 in both the
>>>> connected and unconnected case, where previously it only saw the benefit
>>>> when the socket had been connected.
>>> Right, but how often do we have single NAPI devices on hosts wanting
>>> very low latencies ?
>>>
>> Well, sfc only has a single NAPI context per device, and I'm fairly sure
>> most sfc users want very low latencies.
>> Or have I misunderstood?
> sfc is multi queue/channel, but has a single NAPI instance ?
>
> Sounds wierd.
>
> Please explain me, how GRO can be efficient.
>
> I believe you have one napi per channel.
>
Whoops, this is my fault, I derped reading our NAPI code. You are
entirely correct, we do have multiple NAPI instances per device, so our
proposed scheme is unworkable. We'll just have to connect the socket.
Sorry to waste your time.
Jon
prev parent reply other threads:[~2014-04-11 10:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-09 14:13 udp: Question about busy_poll change Edward Cree
2014-04-09 14:51 ` Shawn Bohrer
2014-04-09 16:20 ` Edward Cree
2014-04-10 18:04 ` [RFC PATCH] udp: allow busy_poll on some unconnected sockets Edward Cree
2014-04-10 18:32 ` Eric Dumazet
2014-04-10 18:38 ` Edward Cree
2014-04-10 19:04 ` Eric Dumazet
2014-04-11 10:44 ` Jonathan Cooper [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=5347C777.2080901@solarflare.com \
--to=jcooper@solarflare.com \
--cc=ecree@solarflare.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=sbohrer@rgmadvisors.com \
--cc=shawn.bohrer@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.