From owner-freebsd-arch@FreeBSD.ORG Wed Aug 24 22:08:05 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA415106566B for ; Wed, 24 Aug 2011 22:08:05 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from vps.hungerhost.com (vps.hungerhost.com [216.38.53.176]) by mx1.freebsd.org (Postfix) with ESMTP id 60B278FC21 for ; Wed, 24 Aug 2011 22:08:05 +0000 (UTC) Received: from [209.249.190.124] (helo=gnnmac.hudson-trading.com) by vps.hungerhost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1QwJfH-0000pT-9J; Wed, 24 Aug 2011 16:03:07 -0400 Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=us-ascii From: George Neville-Neil In-Reply-To: Date: Wed, 24 Aug 2011 16:03:06 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <72EBCA4C-B002-4A77-9D4B-28541C1933C1@neville-neil.com> References: <132388F1-44D9-45C9-AE05-1799A7A2DCD9@neville-neil.com> To: Bjoern A. Zeeb X-Mailer: Apple Mail (2.1244.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.hungerhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - neville-neil.com Cc: arch@freebsd.org Subject: Re: Updating our TCP and socket sysctl values... X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2011 22:08:05 -0000 On Aug 24, 2011, at 12:18 , Bjoern A. Zeeb wrote: > On Mar 19, 2011, at 6:37 AM, George Neville-Neil wrote: >=20 >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >>=20 >> Howdy, >>=20 >> I believe it's time for us to upgrade our sysctl values for TCP = sockets so that >> they are more in line with the modern world. At the moment we have = these limits on >> our buffering: >>=20 >> kern.ipc.maxsockbuf: 262144 >> net.inet.tcp.recvbuf_max: 262144 >> net.inet.tcp.sendbuf_max: 262144 >>=20 >> I believe it's time to up these values to something that's in line = with higher speed >> local networks, such as 10G. Perhaps it's time to move these to 2MB = instead of 256K. >>=20 >> Thoughts? >=20 >=20 > This never happened, did it? Was there a reason? >=20 I went back and looked at the mail thread. I didn't see any strong = objections so I think you should commit this for 9.x. np@ did point out that nmbclusters also lags on modern hardware so = consider upping that at the same time. Best, George > Index: sys/netinet/tcp_input.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/netinet/tcp_input.c (revision 225048) > +++ sys/netinet/tcp_input.c (working copy) > @@ -195,7 +195,7 @@ SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, recvbuf_i > &VNET_NAME(tcp_autorcvbuf_inc), 0, > "Incrementor step size of automatic receive buffer"); >=20 > -VNET_DEFINE(int, tcp_autorcvbuf_max) =3D 256*1024; > +VNET_DEFINE(int, tcp_autorcvbuf_max) =3D 2*1024*1024; > #define V_tcp_autorcvbuf_max VNET(tcp_autorcvbuf_max) > SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, recvbuf_max, CTLFLAG_RW, > &VNET_NAME(tcp_autorcvbuf_max), 0, > Index: sys/netinet/tcp_output.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/netinet/tcp_output.c (revision 225048) > +++ sys/netinet/tcp_output.c (working copy) > @@ -117,7 +117,7 @@ SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_i > &VNET_NAME(tcp_autosndbuf_inc), 0, > "Incrementor step size of automatic send buffer"); >=20 > -VNET_DEFINE(int, tcp_autosndbuf_max) =3D 256*1024; > +VNET_DEFINE(int, tcp_autosndbuf_max) =3D 2*1024*1024; > #define V_tcp_autosndbuf_max VNET(tcp_autosndbuf_max) > SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, sendbuf_max, CTLFLAG_RW, > &VNET_NAME(tcp_autosndbuf_max), 0, > Index: sys/sys/sockbuf.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/sys/sockbuf.h (revision 225048) > +++ sys/sys/sockbuf.h (working copy) > @@ -37,7 +37,7 @@ > #include > #include >=20 > -#define SB_MAX (256*1024) /* default for max = chars in sockbuf */ > +#define SB_MAX (2*1024*1024) /* default for max = chars in sockbuf */ >=20 > /* > * Constants for sb_flags field of struct sockbuf. >=20 > --=20 > Bjoern A. Zeeb You have to have = visions! > Stop bit received. Insert coin for new address family. >=20 > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to = "freebsd-arch-unsubscribe@freebsd.org"