spec-surge-client.rcS revision 1645
1#!/bin/sh 2# 3# /etc/init.d/rcS 4# 5 6echo -n "mounting swap..." 7/sbin/swapon /dev/hdc 8echo "done." 9 10echo -n "setting up network..." 11/sbin/ifconfig eth0 192.168.0.10 txqueuelen 1000 12/sbin/ifconfig lo 127.0.0.1 13 14echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle 15echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse 16echo "1" > /proc/sys/net/ipv4/tcp_window_scaling 17echo "0" > /proc/sys/net/ipv4/tcp_timestamps 18echo "0" > /proc/sys/net/ipv4/tcp_sack 19echo "15" > /proc/sys/net/ipv4/tcp_fin_timeout 20echo "16384" > /proc/sys/net/ipv4/tcp_max_syn_backlog 21 22echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range 23echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_rmem 24echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_wmem 25echo "10000000 10000000 10000000" > /proc/sys/net/ipv4/tcp_mem 26 27echo "262144" > /proc/sys/net/ipv4/ip_conntrack_max 28 29echo "524287" > /proc/sys/net/core/rmem_max 30echo "524287" > /proc/sys/net/core/wmem_max 31echo "524287" > /proc/sys/net/core/optmem_max 32echo "300000" > /proc/sys/net/core/netdev_max_backlog 33 34echo "131072" > /proc/sys/fs/file-max 35echo "done." 36 37echo "waiting for server..." 38/usr/bin/netcat -c -l -p 8000 39 40echo -n "running surge client..." 41/bin/bash -c "cd /benchmarks/surge && ./spec-m5 1 20 1 192.168.0.1 5 40000 1000000000 1000" 42echo "done." 43 44echo -n "halting machine" 45m5 exit 46 47echo -n "starting bash shell..." 48/bin/bash 49