nat-netperf-server.rcS revision 1434
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.eduNATBOX=192.168.0.2
51196Shsul@eecs.umich.edu
61196Shsul@eecs.umich.eduecho "setting up network..."
71196Shsul@eecs.umich.eduifconfig lo 127.0.0.1
81196Shsul@eecs.umich.eduifconfig eth0 $SERVER txqueuelen 1000
91196Shsul@eecs.umich.edu
101196Shsul@eecs.umich.eduecho "0" > /proc/sys/net/ipv4/tcp_timestamps
111196Shsul@eecs.umich.eduecho "0" > /proc/sys/net/ipv4/tcp_sack
121362Shsul@eecs.umich.eduecho "1" > /proc/sys/net/ipv4/tcp_vegas_cong_avoid
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 "running netserver..."
241196Shsul@eecs.umich.edu/benchmarks/netperf/netserver
251196Shsul@eecs.umich.edu
261434Sbinkertn@umich.eduecho -n "signal natbox to begin..."
271434Sbinkertn@umich.edusleep 1
281196Shsul@eecs.umich.eduecho "server ready" | /usr/bin/netcat -c $NATBOX 8000
291196Shsul@eecs.umich.eduecho "done."
301196Shsul@eecs.umich.edu
311196Shsul@eecs.umich.eduecho "starting bash..."
321196Shsul@eecs.umich.eduexec /bin/bash
33