summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-08-11 10:17:11 -0400
committerNathan Binkert <binkertn@umich.edu>2004-08-11 10:17:11 -0400
commite3d0e9cf769f0a1876bc2bfe61b5417d06a2da1b (patch)
tree8e436ab563d8c036d079ac87603bb1625d406f2d
parent40174f119de13d9d295a2e68c6410b9e4aa9ff82 (diff)
downloadgem5-e3d0e9cf769f0a1876bc2bfe61b5417d06a2da1b.tar.xz
commented script with various kernel parameter tweaks for better
network performance --HG-- extra : convert_revision : 9fd2f18a0d2b79942661d764d90177a50754d9c0
-rw-r--r--configs/boot/setup37
1 files changed, 37 insertions, 0 deletions
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