aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sockbuf.h
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2011-08-25 09:20:13 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2011-08-25 09:20:13 +0000
commitb233773bb9f2d7b382c829856684f216b2d3fb2a (patch)
treee9be85bb6767dd706449cec9e576bcc8bbd6d21a /sys/sys/sockbuf.h
parent64371599f08505c9fbc2a93d2f93d6542a6b8c38 (diff)
downloadsrc-b233773bb9f2d7b382c829856684f216b2d3fb2a.tar.gz
src-b233773bb9f2d7b382c829856684f216b2d3fb2a.zip
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)
Notes
Notes: svn path=/head/; revision=225169
Diffstat (limited to 'sys/sys/sockbuf.h')
-rw-r--r--sys/sys/sockbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index b8e669990289..bfccd74f6f7a 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -37,7 +37,7 @@
#include <sys/_mutex.h>
#include <sys/_sx.h>
-#define SB_MAX (256*1024) /* default for max chars in sockbuf */
+#define SB_MAX (2*1024*1024) /* default for max chars in sockbuf */
/*
* Constants for sb_flags field of struct sockbuf.