nat-netperf-stream-client.rcS revision 1648
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 111362Shsul@eecs.umich.eduecho "1" > /proc/sys/net/ipv4/tcp_vegas_cong_avoid 121648Sbinkertn@umich.eduecho "262144" > /proc/sys/net/ipv4/ip_conntrack_max 131196Shsul@eecs.umich.eduecho "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem 141196Shsul@eecs.umich.eduecho "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem 151196Shsul@eecs.umich.eduecho "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem 161196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/rmem_max 171196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/wmem_max 181196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/rmem_default 191196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/wmem_default 201196Shsul@eecs.umich.eduecho "262143" > /proc/sys/net/core/optmem_max 211196Shsul@eecs.umich.eduecho "100000" > /proc/sys/net/core/netdev_max_backlog 221196Shsul@eecs.umich.edu 231196Shsul@eecs.umich.eduecho "modifying route table" 241196Shsul@eecs.umich.eduroute add default gw 10.0.0.1 251196Shsul@eecs.umich.edu 261196Shsul@eecs.umich.eduecho -n "waiting for server..." 271196Shsul@eecs.umich.edu/usr/bin/netcat -c -l -p 8000 281196Shsul@eecs.umich.edu 291196Shsul@eecs.umich.eduBINARY=/benchmarks/netperf/netperf 301196Shsul@eecs.umich.eduTEST="TCP_STREAM" 311196Shsul@eecs.umich.eduSHORT_ARGS="-l -100k" 321196Shsul@eecs.umich.eduLONG_ARGS="-k16384,0 -K16384,0 -- -m 65536 -M 65536 -s 262144 -S 262144" 331196Shsul@eecs.umich.edu 341196Shsul@eecs.umich.edu 351196Shsul@eecs.umich.eduSHORT="$BINARY -H $SERVER -t $TEST $SHORT_ARGS" 361196Shsul@eecs.umich.eduLONG="$BINARY -H $SERVER -t $TEST $LONG_ARGS" 371196Shsul@eecs.umich.edu 381196Shsul@eecs.umich.eduecho "starting test..." 391196Shsul@eecs.umich.eduecho "netperf warmup" 401196Shsul@eecs.umich.eduecho $SHORT 411196Shsul@eecs.umich.edueval $SHORT 421196Shsul@eecs.umich.edu 431196Shsul@eecs.umich.eduecho "netperf benchmark" 441196Shsul@eecs.umich.eduecho $LONG 451196Shsul@eecs.umich.edu/sbin/m5 ivlb 1 461196Shsul@eecs.umich.edu/sbin/m5 resetstats 471254Sbinkertn@umich.edu/sbin/m5 dumpresetstats 200000000 2000000000 481254Sbinkertn@umich.edu/sbin/m5 checkpoint 200000000 2000000000 491196Shsul@eecs.umich.edueval $LONG 501196Shsul@eecs.umich.edu/sbin/m5 exit 51