nat-netperf-stream-client.rcS revision 1196
11196Shsul@eecs.umich.edu#!/bin/sh 21196Shsul@eecs.umich.eduSERVER=192.168.0.1 31196Shsul@eecs.umich.eduCLIENT=10.0.0.2 41196Shsul@eecs.umich.edu 51196Shsul@eecs.umich.eduecho "setting up network..." 61196Shsul@eecs.umich.eduifconfig lo 127.0.0.1 71196Shsul@eecs.umich.eduifconfig eth0 $CLIENT txqueuelen 1000 81196Shsul@eecs.umich.edu 91196Shsul@eecs.umich.eduecho "0" > /proc/sys/net/ipv4/tcp_timestamps 101196Shsul@eecs.umich.eduecho "0" > /proc/sys/net/ipv4/tcp_sack 111196Shsul@eecs.umich.eduecho "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem 121196Shsul@eecs.umich.eduecho "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem 131196Shsul@eecs.umich.eduecho "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem 141196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/rmem_max 151196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/wmem_max 161196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/rmem_default 171196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/wmem_default 181196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/optmem_max 191196Shsul@eecs.umich.eduecho "100000" > /proc/sys/net/core/netdev_max_backlog 201196Shsul@eecs.umich.edu 211196Shsul@eecs.umich.eduecho "modifying route table" 221196Shsul@eecs.umich.eduroute add default gw 10.0.0.1 231196Shsul@eecs.umich.edu 241196Shsul@eecs.umich.eduecho -n "waiting for server..." 251196Shsul@eecs.umich.edu/usr/bin/netcat -c -l -p 8000 261196Shsul@eecs.umich.edu 271196Shsul@eecs.umich.eduBINARY=/benchmarks/netperf/netperf 281196Shsul@eecs.umich.eduTEST="TCP_STREAM" 291196Shsul@eecs.umich.eduSHORT_ARGS="-l -100k" 301196Shsul@eecs.umich.eduLONG_ARGS="-k16384,0 -K16384,0 -- -m 65536 -M 65536 -s 262144 -S 262144" 311196Shsul@eecs.umich.edu 321196Shsul@eecs.umich.edu 331196Shsul@eecs.umich.eduSHORT="$BINARY -H $SERVER -t $TEST $SHORT_ARGS" 341196Shsul@eecs.umich.eduLONG="$BINARY -H $SERVER -t $TEST $LONG_ARGS" 351196Shsul@eecs.umich.edu 361196Shsul@eecs.umich.eduecho "starting test..." 371196Shsul@eecs.umich.eduecho "netperf warmup" 381196Shsul@eecs.umich.eduecho $SHORT 391196Shsul@eecs.umich.edueval $SHORT 401196Shsul@eecs.umich.edu 411196Shsul@eecs.umich.eduecho "netperf benchmark" 421196Shsul@eecs.umich.eduecho $LONG 431196Shsul@eecs.umich.edu/sbin/m5 ivlb 1 441196Shsul@eecs.umich.edu/sbin/m5 resetstats 451196Shsul@eecs.umich.edu/sbin/m5 dumpresetstats 2000000000 2000000000 461196Shsul@eecs.umich.edu/sbin/m5 checkpoint 2000000000 2000000000 471196Shsul@eecs.umich.edueval $LONG 481196Shsul@eecs.umich.edu/sbin/m5 exit 49