From: Jesper Dangaard Brouer <brouer@redhat.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, therbert@google.com, jhs@mojatatu.com,
hannes@stressinduktion.org, edumazet@google.com,
jeffrey.t.kirsher@intel.com, rusty@rustcorp.com.au,
dborkman@redhat.com, brouer@redhat.com
Subject: Re: [PATCH 0/2] Get rid of ndo_xmit_flush
Date: Wed, 27 Aug 2014 14:19:18 +0200 [thread overview]
Message-ID: <20140827141918.198cba38@redhat.com> (raw)
In-Reply-To: <20140825.163458.1117073971092495452.davem@davemloft.net>
On Mon, 25 Aug 2014 16:34:58 -0700 (PDT)
David Miller <davem@davemloft.net> wrote:
> Given Jesper's performance numbers, it's not the way to go.
>
> Instead, go with a signalling scheme via new boolean skb->xmit_more.
>
> This has several advantages:
>
> 1) Nearly trivial driver support, just protect the tail pointer
> update with the skb->xmit_more check.
>
> 2) No extra indirect calls in the non-deferral cases.
Even-though it is obvious that this new API skb->xmit_more will not
hurt performance, especially given skb->xmit_more is always 0 in this
kernel, I've still run my pktgen performance tests.
Compared to baseline[1]: (averaged 5609929 pps) (details below signature)
* (1/5609929*10^9)-(1/5603728*10^9) = -0.197ns
As expected, this API does not hurt performance (as -0.197ns is below
our accuracy levels).
[1] http://thread.gmane.org/gmane.linux.network/327254/focus=327838
--
Best regards,
Jesper Dangaard Brouer
MSc.CS, Sr. Network Kernel Developer at Red Hat
Author of http://www.iptv-analyzer.org
LinkedIn: http://www.linkedin.com/in/brouer
Results: on branch bulking02
----------------------------
Kernel with skb->xmit_more API.
Kernel at:
* commit a3d1214688d ("neigh: document gc_thresh2")
With no HT:
* ethtool -C eth5 rx-usecs 30
* tuned-adm profile latency-performance
Results (pktgen):
* instant rx:1 tx:5604056 pps n:250 average: rx:1 tx:5604013 pps
(instant variation TX 0.001 ns (min:-0.114 max:0.104) RX 0.000 ns)
* instant rx:1 tx:5603388 pps n:87 average: rx:1 tx:5603872 pps
(instant variation TX -0.015 ns (min:-0.031 max:0.060) RX 0.000 ns)
* instant rx:1 tx:5604332 pps n:429 average: rx:1 tx:5603300 pps
(instant variation TX 0.033 ns (min:-0.094 max:0.881) RX 0.000 ns)
* Average: (5604013+5603872+5603300)/3 = 5603728
Compared to baseline: (averaged 5609929 pps)
* (1/5609929*10^9)-(1/5603728*10^9) = -0.197ns
next prev parent reply other threads:[~2014-08-27 12:19 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-25 23:34 [PATCH 0/2] Get rid of ndo_xmit_flush David Miller
2014-08-26 6:28 ` Jesper Dangaard Brouer
2014-08-26 10:13 ` Jesper Dangaard Brouer
2014-08-26 12:52 ` Jesper Dangaard Brouer
2014-08-26 16:43 ` Alexander Duyck
2014-08-27 7:48 ` Jesper Dangaard Brouer
2014-08-27 8:37 ` Jesper Dangaard Brouer
2014-08-26 14:40 ` Jamal Hadi Salim
2014-09-01 0:37 ` Rusty Russell
2014-08-27 12:19 ` Jesper Dangaard Brouer [this message]
2014-08-27 20:43 ` David Miller
2014-08-27 12:31 ` Hannes Frederic Sowa
2014-08-27 13:23 ` Eric Dumazet
2014-08-27 13:56 ` Jesper Dangaard Brouer
2014-08-27 14:09 ` Eric Dumazet
2014-08-27 20:48 ` David Miller
2014-08-27 20:46 ` David Miller
2014-08-27 20:45 ` David Miller
2014-08-28 1:42 ` Hannes Frederic Sowa
2014-08-30 3:22 ` David Miller
2014-08-30 10:23 ` Jesper Dangaard Brouer
2014-09-01 20:05 ` Hannes Frederic Sowa
2014-09-01 21:56 ` David Miller
2014-09-01 22:31 ` Hannes Frederic Sowa
2014-09-01 22:35 ` David Miller
2014-08-27 18:28 ` Cong Wang
2014-08-27 19:31 ` Tom Herbert
2014-08-27 20:53 ` David Miller
2014-08-27 20:51 ` 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=20140827141918.198cba38@redhat.com \
--to=brouer@redhat.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=edumazet@google.com \
--cc=hannes@stressinduktion.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jhs@mojatatu.com \
--cc=netdev@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=therbert@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).