From: Eric Dumazet <eric.dumazet@gmail.com>
To: Jean-Michel Hautbois <jhautbois@gmail.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: Regression on TX throughput when using bonding
Date: Thu, 14 Jun 2012 11:21:59 +0200 [thread overview]
Message-ID: <1339665719.22704.692.camel@edumazet-glaptop> (raw)
In-Reply-To: <CAL8zT=j8pEVc7AHwJzk+4skj=1tfRYZ_C7CuXD_08T_VmkwoFg@mail.gmail.com>
On Thu, 2012-06-14 at 10:58 +0200, Jean-Michel Hautbois wrote:
> Hi all,
>
> I have bisected a regression which concerns TX throughput when using bonding.
> I tested only with 10Gbps cards, as it appears when bandwidth need is
> over 1Gbps on my machine.
> I send UDP multicast packets over bonding and observe the tc result.
>
> When KO :
> $>tc -s -d qdisc show dev eth1
> qdisc pfifo_fast 0: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1
> 1 1 1 1 1 1
> Sent 1106527591 bytes 273802 pkt (dropped 306419, overlimits 0 requeues 223)
> backlog 0b 0p requeues 223
>
> Ok course, when OK, dropped is 0.
> $>tc -s -d qdisc show dev eth1
> qdisc pfifo_fast 0: root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1
> 1 1 1 1 1 1
> Sent 1648662087 bytes 408009 pkt (dropped 0, overlimits 0 requeues 0)
> backlog 0b 0p requeues 0
>
>
> Here is the incriminated commit:
>
> fc6055a5ba31e2c14e36e8939f9bf2b6d586a7f5 is the first bad commit
> commit fc6055a5ba31e2c14e36e8939f9bf2b6d586a7f5
> net: Introduce skb_orphan_try()
So you are saying that if you make skb_orphan_try() doing nothing, it
solves your problem ?
diff --git a/net/core/dev.c b/net/core/dev.c
index cd09819..6df40dd 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2096,6 +2096,7 @@ static int dev_gso_segment(struct sk_buff *skb, netdev_features_t features)
*/
static inline void skb_orphan_try(struct sk_buff *skb)
{
+#if 0
struct sock *sk = skb->sk;
if (sk && !skb_shinfo(skb)->tx_flags) {
@@ -2106,6 +2107,7 @@ static inline void skb_orphan_try(struct sk_buff *skb)
skb->rxhash = sk->sk_hash;
skb_orphan(skb);
}
+#endif
}
static bool can_checksum_protocol(netdev_features_t features, __be16 protocol)
next prev parent reply other threads:[~2012-06-14 9:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-14 8:58 Regression on TX throughput when using bonding Jean-Michel Hautbois
2012-06-14 9:21 ` Eric Dumazet [this message]
2012-06-14 9:40 ` Jean-Michel Hautbois
2012-06-14 9:50 ` Eric Dumazet
2012-06-14 10:00 ` David Miller
2012-06-14 10:07 ` Eric Dumazet
2012-06-14 10:31 ` David Miller
2012-06-14 16:42 ` [PATCH] net: remove skb_orphan_try() Eric Dumazet
2012-06-15 7:15 ` Oliver Hartkopp
2012-06-15 22:31 ` David Miller
2012-06-14 10:15 ` Regression on TX throughput when using bonding Jean-Michel Hautbois
2012-06-14 14:14 ` Jean-Michel Hautbois
2012-06-14 14:29 ` Eric Dumazet
2012-06-14 15:43 ` Jean-Michel Hautbois
2012-06-14 17:46 ` Rick Jones
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=1339665719.22704.692.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=jhautbois@gmail.com \
--cc=netdev@vger.kernel.org \
/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