8 echo -n "mounting swap..."
12 echo -n "setting up network..."
13 /sbin
/ifconfig eth0
$CLIENT txqueuelen
1000
14 /sbin
/ifconfig lo
127.0.0.1
16 echo "1" > /proc
/sys
/net
/ipv
4/tcp_tw_recycle
17 echo "1" > /proc
/sys
/net
/ipv
4/tcp_tw_reuse
18 echo "1" > /proc
/sys
/net
/ipv
4/tcp_window_scaling
19 echo "0" > /proc
/sys
/net
/ipv
4/tcp_timestamps
20 echo "0" > /proc
/sys
/net
/ipv
4/tcp_sack
21 echo "15" > /proc
/sys
/net
/ipv
4/tcp_fin_timeout
22 echo "16384" > /proc
/sys
/net
/ipv
4/tcp_max_syn_backlog
23 echo "1" > /proc
/sys
/net
/ipv
4/tcp_vegas_cong_avoid
25 echo "1024 65535" > /proc
/sys
/net
/ipv
4/ip_local_port_range
26 echo "10000000 10000000 10000000" > /proc
/sys
/net
/ipv
4/tcp_rmem
27 echo "10000000 10000000 10000000" > /proc
/sys
/net
/ipv
4/tcp_wmem
28 echo "10000000 10000000 10000000" > /proc
/sys
/net
/ipv
4/tcp_mem
30 echo "262144" > /proc
/sys
/net
/ipv
4/ip_conntrack_max
32 echo "524287" > /proc
/sys
/net
/core
/rmem_max
33 echo "524287" > /proc
/sys
/net
/core
/wmem_max
34 echo "524287" > /proc
/sys
/net
/core
/optmem_max
35 echo "300000" > /proc
/sys
/net
/core
/netdev_max_backlog
37 echo "131072" > /proc
/sys
/fs
/file-max
40 echo "changing route table..."
41 route add default gw
10.0.0.1
43 echo "waiting for server..."
44 /usr
/bin
/netcat
-c -l -p 8000
46 echo -n "running surge client..."
47 /bin
/bash
-c "cd /benchmarks/surge && ./spec-m5 1 20 1 $SERVER 5 40000 1000000000 1000"
50 echo -n "halting machine"
53 echo -n "starting bash shell..."