From abe7607f691caeb40518c63eb8c9cc8a847af424 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 4 Jan 2011 12:27:23 -0500 Subject: Add sysctl for maximum socket buffer sizing. Set to 42621444. This is needed for some heavily loaded servers running unbound, squid, etc --- conf.default/config.xml | 5 +++++ etc/inc/globals.inc | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/conf.default/config.xml b/conf.default/config.xml index 0200f4d..f5ea2c9 100644 --- a/conf.default/config.xml +++ b/conf.default/config.xml @@ -135,6 +135,11 @@ net.inet.tcp.tso default + + Maximum socket buffer size + kern.ipc.maxsockbuf + default + normal diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 8afab4a..bf01a11 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -3,7 +3,7 @@ /* globals.inc part of pfSense (www.pfsense.com) - Copyright (C) 2004-2006 Scott Ullrich + Copyright (C) 2004-2010 Scott Ullrich Originally Part of m0n0wall Copyright (C) 2003-2004 Manuel Kasper . @@ -159,9 +159,10 @@ $sysctls = array("net.inet.ip.portrange.first" => "1024", "net.inet.tcp.log_debug" => "0", "net.inet.tcp.tso" => "1", "net.inet.icmp.icmplim" => "0", - "vfs.read_max" => "32" + "vfs.read_max" => "32", + "kern.ipc.maxsockbuf" => "4262144" ); $config_parsed = false; -?> +?> \ No newline at end of file -- cgit v1.1