From: Eliezer Tamir <eliezer.tamir@linux.intel.com>
To: Eric Wong <normalperson@yhbt.net>
Cc: David Miller <davem@davemloft.net>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
e1000-devel@lists.sourceforge.net,
Eilon Greenstein <eilong@broadcom.com>,
Amir Vadai <amirv@mellanox.com>,
Eric Dumazet <erdnetdev@gmail.com>,
Willem de Bruijn <willemb@google.com>,
Eliezer Tamir <eliezer@tamir.org.il>
Subject: Re: [PATCH RFC net-next] net: epoll support for busy poll
Date: Fri, 23 Aug 2013 10:25:44 +0300 [thread overview]
Message-ID: <52170E78.1010704@linux.intel.com> (raw)
In-Reply-To: <20130822201135.GA4088@dcvr.yhbt.net>
On 22/08/2013 23:11, Eric Wong wrote:
> Eliezer Tamir <eliezer.tamir@linux.intel.com> wrote:
>> Performance:
>> using sockperf, Intel X520 NICs,
>> Supermicro 6026TT-BTF systems with E5-2690 Xeon CPUs
>> 100 UDP sockets avg. latency 5.756 (std-dev 0.510)
>> 1k UDP sockets avg. latency 5.780 (std-dev 0.536)
>> 10k UDP sockets avg. latency 6.269 (std-dev 0.611)
>
> How does this compare to with normal poll on this system?
>
> In other words, what advantage is there to using epoll instead of poll
> when busy looping?
>
> epoll and busy_poll seem to be opposites. epoll inherently has higher
> latency than normal poll, but provides stable performance with many more
> FDs.
I'm not sure I understand your claim that epoll has a higher latency
than poll.
Some quick (and very unscientific) testing seem to indicate that
while poll is slightly faster than epoll when polling one socket,
when polling on three sockets epoll is already slightly faster.
(what's the point of using poll if you only need to monitor one
socket?)
With a larger socket set epoll is a clear winner.
Both select and poll on 1k UDP sockets take over 120us on a similar
system.
Poll on 10 sockets takes about 6.8us, on 100 socket about 16.5us.
Note that I'm using a slightly old NIC that has a high HW latency.
For comparison, a busy poll on a socket read (using netperf) is about 5.7us.
I expect Amir is seeing better numbers, but he's not telling. ;)
next prev parent reply other threads:[~2013-08-23 7:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 10:39 [PATCH RFC net-next] net: epoll support for busy poll Eliezer Tamir
2013-08-21 13:53 ` Eric Dumazet
2013-08-21 15:09 ` Eliezer Tamir
2013-08-22 20:11 ` Eric Wong
2013-08-23 7:25 ` Eliezer Tamir [this message]
2013-08-23 20:36 ` Eric Wong
2013-08-25 21:30 ` Amir Vadai
2013-08-26 6:03 ` Eliezer Tamir
2013-08-27 14:11 ` Amir Vadai
2013-08-22 20:14 ` David Miller
2013-08-23 7:06 ` Eliezer Tamir
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=52170E78.1010704@linux.intel.com \
--to=eliezer.tamir@linux.intel.com \
--cc=amirv@mellanox.com \
--cc=davem@davemloft.net \
--cc=e1000-devel@lists.sourceforge.net \
--cc=eilong@broadcom.com \
--cc=eliezer@tamir.org.il \
--cc=erdnetdev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=normalperson@yhbt.net \
--cc=willemb@google.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).