From 5a44db2ad8c746b3333742047e7887a8960fb1c7 Mon Sep 17 00:00:00 2001 From: Xin Li Date: Fri, 16 Dec 2011 13:28:46 -0800 Subject: [PATCH 14/65] Instead of doing RFC 3390, use a much larger slow-start IV when doing TCP transfers. This should have a big improvement on TCP performance for small transfers, e.g. HTTP/1.0 with plain text files, and wouldn't hurt for large transfers. Before this change the default gives approximately 4KB of initial window while with this change the initial window size would be approximately 14KB. Testing on: freebsdchina.org, delphij.net, techweb.com.cn --- sys/netinet/tcp_input.c | 2 +- sys/netinet/tcp_output.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 91517b3..42c9dcf 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -150,7 +150,7 @@ SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, rfc3042, CTLFLAG_RW, &VNET_NAME(tcp_do_rfc3042), 0, "Enable RFC 3042 (Limited Transmit)"); -VNET_DEFINE(int, tcp_do_rfc3390) = 1; +VNET_DEFINE(int, tcp_do_rfc3390) = 0; SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, rfc3390, CTLFLAG_RW, &VNET_NAME(tcp_do_rfc3390), 0, "Enable RFC 3390 (Increasing TCP's Initial Congestion Window)"); diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 702eed3..1328ddd 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -89,7 +89,7 @@ SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, path_mtu_discovery, CTLFLAG_RW, &VNET_NAME(path_mtu_discovery), 1, "Enable Path MTU Discovery"); -VNET_DEFINE(int, ss_fltsz) = 1; +VNET_DEFINE(int, ss_fltsz) = 10; SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, slowstart_flightsize, CTLFLAG_RW, &VNET_NAME(ss_fltsz), 1, "Slow start flight size"); -- 1.7.8.3