This patch is changes the initial TCP congestion window for connections that are over the loopback device. This gives better for performance for applications that do lots of small writes. It might also help for idiotic benchmarks.
See: http://bugzilla.kernel.org/show_bug.cgi?id=6177 Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- linux-2.6.orig/net/ipv4/route.c 2006-03-07 13:28:54.000000000 -0800 +++ linux-2.6/net/ipv4/route.c 2006-03-09 13:55:16.000000000 -0800 @@ -2244,6 +2244,11 @@ if (flags & RTCF_LOCAL) { rth->u.dst.input = ip_local_deliver; rth->rt_spec_dst = fl->fl4_dst; + + /* Hack: for buggy applications and benchmarks that send + * many small packets over loopback. + */ + rth->u.dst.metrics[RTAX_INITCWND-1] = 10; } if (flags & (RTCF_BROADCAST | RTCF_MULTICAST)) { rth->rt_spec_dst = fl->fl4_src; - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html