From owner-freebsd-arch@FreeBSD.ORG Thu Aug 25 00:17:23 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 C3A7B106566C for ; Thu, 25 Aug 2011 00:17:23 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 0C1558FC18 for ; Thu, 25 Aug 2011 00:17:22 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 4CF6A25D37C0; Thu, 25 Aug 2011 00:17:21 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 77EC2BD3CEB; Thu, 25 Aug 2011 00:17:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id ahs9oo7nGj8i; Thu, 25 Aug 2011 00:17:18 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 355E1BD3C1C; Thu, 25 Aug 2011 00:17:17 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <72EBCA4C-B002-4A77-9D4B-28541C1933C1@neville-neil.com> Date: Thu, 25 Aug 2011 00:17:16 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <14F25601-6F2A-40F7-B4C7-82139ECE7998@lists.zabbadoz.net> References: <132388F1-44D9-45C9-AE05-1799A7A2DCD9@neville-neil.com> <72EBCA4C-B002-4A77-9D4B-28541C1933C1@neville-neil.com> To: George Neville-Neil X-Mailer: Apple Mail (2.1084) 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: Thu, 25 Aug 2011 00:17:23 -0000 On Aug 24, 2011, at 8:03 PM, George Neville-Neil wrote: >=20 > On Aug 24, 2011, at 12:18 , Bjoern A. Zeeb wrote: >=20 >> 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 >=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. >=20 > np@ did point out that nmbclusters also lags on modern hardware so = consider upping > that at the same time. The below seems to need a cast for max_sb_adj which is already present = for the sysctl; currently doing a universe and will send it to re@. = Thanks for the reply. nmbclusters is harder to change as it's not just a max but directly = needs/eats memory so we cannot just up it; we'll have to look into = auto-tuning after 9 was branched and can possibly merge it for 9.1 or = so. /bz >> 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" >=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" --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.