]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Increase the defaults for the maximum socket buffer limit,
authorbz <bz@FreeBSD.org>
Thu, 25 Aug 2011 09:20:13 +0000 (09:20 +0000)
committerbz <bz@FreeBSD.org>
Thu, 25 Aug 2011 09:20:13 +0000 (09:20 +0000)
commit860d2aa85df1d35491870df7bf0b51f97fe69848
treee9be85bb6767dd706449cec9e576bcc8bbd6d21a
parentd491106e41e82491cb69f865172f26c93efad73b
Increase the defaults for the maximum socket buffer limit,
and the maximum TCP send and receive buffer limits from 256kB
to 2MB.

For sb_max_adj we need to add the cast as already used in the sysctl
handler to not overflow the type doing the maths.

Note that this is just the defaults.  They will allow more memory
to be consumed per socket/connection if needed but not change the
default "idle" memory consumption.   All values are still tunable
by sysctls.

Suggested by: gnn
Discussed on: arch (Mar and Aug 2011)
MFC after: 3 weeks
Approved by: re (kib)
sys/kern/uipc_sockbuf.c
sys/netinet/tcp_input.c
sys/netinet/tcp_output.c
sys/sys/sockbuf.h