From e3d0e9cf769f0a1876bc2bfe61b5417d06a2da1b Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Wed, 11 Aug 2004 10:17:11 -0400 Subject: [PATCH] commented script with various kernel parameter tweaks for better network performance --HG-- extra : convert_revision : 9fd2f18a0d2b79942661d764d90177a50754d9c0 --- configs/boot/setup | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 configs/boot/setup diff --git a/configs/boot/setup b/configs/boot/setup new file mode 100644 index 000000000..842e50a4a --- /dev/null +++ b/configs/boot/setup @@ -0,0 +1,37 @@ +ifconfig eth1 mtu 9000 txqueuelen 1000 up + +### IPV4 specific settings +# turns TCP timestamp support off, default 1, reduces CPU use +echo "0" > /proc/sys/net/ipv4/tcp_timestamps + +# turn SACK support off, default on +echo "0" > /proc/sys/net/ipv4/tcp_sack + +# sets min/default/max TCP read buffer, default 4096 87380 174760 +echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_rmem + +# sets min/pressure/max TCP write buffer, default 4096 16384 131072 +echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_wmem + +# sets min/pressure/max TCP buffer space, default 31744 32256 32768 +echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_mem + +### CORE settings (mostly for socket and UDP effect) +# maximum receive socket buffer size, default 131071 +echo "524287" > /proc/sys/net/core/rmem_max + +# maximum send socket buffer size, default 131071 +echo "524287" > /proc/sys/net/core/wmem_max + +# default receive socket buffer size, default 65535 +echo "524287" > /proc/sys/net/core/rmem_default + +# default send socket buffer size, default 65535 +echo "524287" > /proc/sys/net/core/wmem_default + +# maximum amount of option memory buffers, default 10240 +echo "524287" > /proc/sys/net/core/optmem_max + +# number of unprocessed input packets before kernel starts dropping them, +# default 300 +echo "300000" > /proc/sys/net/core/netdev_max_backlog -- 2.30.2