nat-netperf-server.rcS revision 1434
1#!/bin/sh 2SERVER=192.168.0.1 3CLIENT=10.0.0.2 4NATBOX=192.168.0.2 5 6echo "setting up network..." 7ifconfig lo 127.0.0.1 8ifconfig eth0 $SERVER txqueuelen 1000 9 10echo "0" > /proc/sys/net/ipv4/tcp_timestamps 11echo "0" > /proc/sys/net/ipv4/tcp_sack 12echo "1" > /proc/sys/net/ipv4/tcp_vegas_cong_avoid 13echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_rmem 14echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_wmem 15echo "5000000 5000000 5000000" > /proc/sys/net/ipv4/tcp_mem 16echo "262143" > /proc/sys/net/core/rmem_max 17echo "262143" > /proc/sys/net/core/wmem_max 18echo "262143" > /proc/sys/net/core/rmem_default 19echo "262143" > /proc/sys/net/core/wmem_default 20echo "262143" > /proc/sys/net/core/optmem_max 21echo "100000" > /proc/sys/net/core/netdev_max_backlog 22 23echo "running netserver..." 24/benchmarks/netperf/netserver 25 26echo -n "signal natbox to begin..." 27sleep 1 28echo "server ready" | /usr/bin/netcat -c $NATBOX 8000 29echo "done." 30 31echo "starting bash..." 32exec /bin/bash 33