5 echo "setting up network..."
7 ifconfig eth0
$CLIENT txqueuelen
1000
9 echo "modifying route table..."
10 route add default gw
10.0.0.1
12 echo "0" > /proc
/sys
/net
/ipv
4/tcp_timestamps
13 echo "0" > /proc
/sys
/net
/ipv
4/tcp_sack
14 echo "1" > /proc
/sys
/net
/ipv
4/tcp_vegas_cong_avoid
15 echo "5000000 5000000 5000000" > /proc
/sys
/net
/ipv
4/tcp_rmem
16 echo "5000000 5000000 5000000" > /proc
/sys
/net
/ipv
4/tcp_wmem
17 echo "5000000 5000000 5000000" > /proc
/sys
/net
/ipv
4/tcp_mem
18 echo "262143" > /proc
/sys
/net
/core
/rmem_max
19 echo "262143" > /proc
/sys
/net
/core
/wmem_max
20 echo "262143" > /proc
/sys
/net
/core
/rmem_default
21 echo "262143" > /proc
/sys
/net
/core
/wmem_default
22 echo "262143" > /proc
/sys
/net
/core
/optmem_max
23 echo "100000" > /proc
/sys
/net
/core
/netdev_max_backlog
25 echo -n "waiting for natbox..."
28 BINARY
=/benchmarks
/netperf-bin
/netperf
31 LONG_ARGS
="-k16384,0 -K16384,0 -- -m 65536 -M 65536 -s 262144 -S 262144"
34 SHORT
="$BINARY -H $SERVER -t $TEST $SHORT_ARGS"
35 LONG
="$BINARY -H $SERVER -t $TEST $LONG_ARGS"
37 echo "starting test..."
42 echo "netperf benchmark"
45 /sbin
/m5 dumpresetstats
200000000 2000000000
46 /sbin
/m5 checkpoint
200000000 2000000000