netdev
[Top] [All Lists]

Re: bad TSO performance in 2.6.9-rc2-BK

To: davem@xxxxxxxxxxxxx (David S. Miller)
Subject: Re: bad TSO performance in 2.6.9-rc2-BK
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Sep 2004 11:27:24 +1000
Cc: herbert@xxxxxxxxxxxxxxxxxxx, ak@xxxxxxx, niv@xxxxxxxxxx, andy.grover@xxxxxxxxx, anton@xxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20040923164149.5368d291.davem@xxxxxxxxxxxxx>
Organization: Core
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686))
David S. Miller <davem@xxxxxxxxxxxxx> wrote:
> 
> Previously we counted TSO frames as single "packets" as long as
> we could fit one more frame into the congestion window we'd spit
> out the whole TSO frame, and this kept the pipe full.

Indeed, I think the new code means that Minshall's check will disable
Nagle which is what was keeping TSO working properly.

Anton, could you please try this patch which disables Minshall's check
and see what it does?

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
===== include/net/tcp.h 1.88 vs edited =====
--- 1.88/include/net/tcp.h      2004-09-15 06:57:07 +10:00
+++ edited/include/net/tcp.h    2004-09-27 11:25:56 +10:00
@@ -1461,8 +1461,7 @@
                !(TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN) &&
                ((nonagle&TCP_NAGLE_CORK) ||
                 (!nonagle &&
-                 tcp_get_pcount(&tp->packets_out) &&
-                 tcp_minshall_check(tp))));
+                 tcp_get_pcount(&tp->packets_out))));
 }
 
 extern void tcp_set_skb_tso_factor(struct sk_buff *, unsigned int);

<Prev in Thread] Current Thread [Next in Thread>