tweak a bunch of kernel parameters to get better performance
authorNathan Binkert <binkertn@umich.edu>
Tue, 10 Aug 2004 13:08:36 +0000 (09:08 -0400)
committerNathan Binkert <binkertn@umich.edu>
Tue, 10 Aug 2004 13:08:36 +0000 (09:08 -0400)
--HG--
extra : convert_revision : 57cca576fac4013027c2cb6c85cc73cbbcf772ae

configs/boot/client.netperf.maerts
configs/boot/client.netperf.rr
configs/boot/client.netperf.stream
configs/boot/server.netperf

index f1335c02007d6da487e59957f485b1661203ecba..916bb25ab216d1e24ee4a874108c73e11f680f49 100644 (file)
@@ -4,7 +4,19 @@ CLIENT=10.0.0.2
 
 echo "setting up network..."
 ifconfig lo 127.0.0.1
-ifconfig eth0 $CLIENT
+ifconfig eth0 $CLIENT txqueuelen 1000
+
+echo "0" > /proc/sys/net/ipv4/tcp_timestamps
+echo "0" > /proc/sys/net/ipv4/tcp_sack
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem
+echo "262143" > /proc/sys/net/core/rmem_max
+echo "262143" > /proc/sys/net/core/wmem_max
+echo "262143" > /proc/sys/net/core/rmem_default
+echo "262143" > /proc/sys/net/core/wmem_default
+echo "262143" > /proc/sys/net/core/optmem_max
+echo "100000" > /proc/sys/net/core/netdev_max_backlog
 
 echo -n "waiting for server..."
 /usr/bin/netcat -c -l -p 8000
index aafc569e759ab1f128f74548e7b4cc6d9aa7bec2..b2128bed45569ceb5da303ec52151c49dea34f7c 100644 (file)
@@ -4,7 +4,19 @@ CLIENT=10.0.0.2
 
 echo "setting up network..."
 ifconfig lo 127.0.0.1
-ifconfig eth0 $CLIENT
+ifconfig eth0 $CLIENT txqueuelen 1000
+
+echo "0" > /proc/sys/net/ipv4/tcp_timestamps
+echo "0" > /proc/sys/net/ipv4/tcp_sack
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem
+echo "262143" > /proc/sys/net/core/rmem_max
+echo "262143" > /proc/sys/net/core/wmem_max
+echo "262143" > /proc/sys/net/core/rmem_default
+echo "262143" > /proc/sys/net/core/wmem_default
+echo "262143" > /proc/sys/net/core/optmem_max
+echo "100000" > /proc/sys/net/core/netdev_max_backlog
 
 echo -n "waiting for server..."
 /usr/bin/netcat -c -l -p 8000
index f04228cd4bd7b96875377a19465068b5e99fd35e..0dba6f1a23c765dd923bdb630c82b9bab9b894f3 100644 (file)
@@ -4,7 +4,19 @@ CLIENT=10.0.0.2
 
 echo "setting up network..."
 ifconfig lo 127.0.0.1
-ifconfig eth0 $CLIENT
+ifconfig eth0 $CLIENT txqueuelen 1000
+
+echo "0" > /proc/sys/net/ipv4/tcp_timestamps
+echo "0" > /proc/sys/net/ipv4/tcp_sack
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem
+echo "262143" > /proc/sys/net/core/rmem_max
+echo "262143" > /proc/sys/net/core/wmem_max
+echo "262143" > /proc/sys/net/core/rmem_default
+echo "262143" > /proc/sys/net/core/wmem_default
+echo "262143" > /proc/sys/net/core/optmem_max
+echo "100000" > /proc/sys/net/core/netdev_max_backlog
 
 echo -n "waiting for server..."
 /usr/bin/netcat -c -l -p 8000
index a62bc171e289e8104775fb3362f09990a3ae6689..f77ff0ce8bd9c73ddb07f69443ea9eb9f0ad2b66 100644 (file)
@@ -4,7 +4,19 @@ CLIENT=10.0.0.2
 
 echo "setting up network..."
 ifconfig lo 127.0.0.1
-ifconfig eth0 $SERVER
+ifconfig eth0 $SERVER txqueuelen 1000
+
+echo "0" > /proc/sys/net/ipv4/tcp_timestamps
+echo "0" > /proc/sys/net/ipv4/tcp_sack
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem
+echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem
+echo "262143" > /proc/sys/net/core/rmem_max
+echo "262143" > /proc/sys/net/core/wmem_max
+echo "262143" > /proc/sys/net/core/rmem_default
+echo "262143" > /proc/sys/net/core/wmem_default
+echo "262143" > /proc/sys/net/core/optmem_max
+echo "100000" > /proc/sys/net/core/netdev_max_backlog
 
 echo "running netserver..."
 /benchmarks/netperf/netserver