netperf-stream-nt-client.rcS revision 2011:3aa85909e087
1#!/bin/sh 2SERVER=10.0.0.1 3CLIENT=10.0.0.2 4 5echo "setting up network..." 6ifconfig lo 127.0.0.1 7ifconfig eth0 $CLIENT txqueuelen 1000 8 9echo "0" > /proc/sys/net/ipv4/tcp_timestamps 10echo "0" > /proc/sys/net/ipv4/tcp_sack 11echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem 12echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem 13echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem 14echo "262143" > /proc/sys/net/core/rmem_max 15echo "262143" > /proc/sys/net/core/wmem_max 16echo "262143" > /proc/sys/net/core/rmem_default 17echo "262143" > /proc/sys/net/core/wmem_default 18echo "262143" > /proc/sys/net/core/optmem_max 19echo "100000" > /proc/sys/net/core/netdev_max_backlog 20 21echo -n "waiting for server..." 22/usr/bin/netcat -c -l -p 8000 23 24BINARY=/benchmarks/netperf/netperf 25TEST="TCP_STREAM" 26SHORT_ARGS="-l -100k" 27LONG_ARGS="-- -m 65536 -M 65536 -s 262144 -S 262144" 28 29 30SHORT="$BINARY -H $SERVER -t $TEST $SHORT_ARGS" 31LONG="$BINARY -H $SERVER -t $TEST $LONG_ARGS" 32 33echo "starting test..." 34echo "netperf warmup" 35echo $SHORT 36eval $SHORT 37NUMCLNTS=`/sbin/m5 initparam` 38[ "$NUMCLNTS" -eq "0" ] && NUMCLNTS=1 39 40echo "netperf benchmark... starting $NUMCLNTS..." 41lcv=0 42 43while [ "$lcv" -lt "$NUMCLNTS" ] 44do 45 echo $LONG 46 eval $LONG & 47 ((lcv += 1)) 48done 49 50ckpt=200000000 51((ckpt = ckpt * 12/3 + 1000000000)) 52 53echo "configuring checkpointing at $ckpt..." 54/sbin/m5 checkpoint $ckpt 2000000000 55echo "done configuring checkpointing..." 56sleep 100000 57