Merge branch 'master' of https://github.com/simple-rules/harmony-benchmark
commit
e174be6d57
@ -1,6 +1,26 @@ |
|||||||
|
# System kernel setup (Mac) |
||||||
|
# Reference: http://www.macfreek.nl/memory/Kernel_Configuration |
||||||
|
sudo sysctl -w kern.ipc.somaxconn=1024 # Limit of number of new connections |
||||||
|
#sudo sysctl -w kern.ipc.maxsockets=1024 # Initial number of sockets in memory |
||||||
|
sudo sysctl -w net.inet.tcp.msl=1000 # TIME_WAIT |
||||||
|
sudo sysctl -w net.inet.tcp.rfc1323=1 # Enable TCP window scaling |
||||||
|
sudo sysctl -w kern.ipc.maxsockbuf=4194304 # Maximum TCP Window size |
||||||
|
sudo sysctl -w net.inet.tcp.sendspace=131072 # Default send buffer |
||||||
|
sudo sysctl -w net.inet.tcp.recvspace=358400 # Default receive buffer |
||||||
|
|
||||||
|
# The commented suffix is for linux |
||||||
|
# Reference: https://github.com/Zilliqa/Zilliqa/blob/master/tests/Node/test_node_simple.sh |
||||||
|
#sudo sysctl net.core.somaxconn=1024 |
||||||
|
#sudo sysctl net.core.netdev_max_backlog=65536; |
||||||
|
#sudo sysctl net.ipv4.tcp_tw_reuse=1; |
||||||
|
#sudo sysctl -w net.ipv4.tcp_rmem='65536 873800 1534217728'; |
||||||
|
#sudo sysctl -w net.ipv4.tcp_wmem='65536 873800 1534217728'; |
||||||
|
#sudo sysctl -w net.ipv4.tcp_mem='65536 873800 1534217728'; |
||||||
|
|
||||||
|
|
||||||
./kill_node.sh |
./kill_node.sh |
||||||
ipfile=$1 |
ipfile=$1 |
||||||
while read ip port mode; do |
while read ip port mode; do |
||||||
echo $ip $port $mode $ipfile |
#echo $ip $port $mode $ipfile |
||||||
go run ./benchmark_node.go -ip $ip -port $port -ipfile $ipfile& |
go run ./benchmark_node.go -ip $ip -port $port -ipfile $ipfile& |
||||||
done < $ipfile |
done < $ipfile |
@ -1,5 +1,5 @@ |
|||||||
for pid in `/bin/ps -fu $USER| grep "slave.go\|slave -port\|leader\|benchmark_node" | grep -v "grep" | awk '{print $2}'`; |
for pid in `/bin/ps -fu $USER| grep "slave.go\|slave -port\|leader\|benchmark_node" | grep -v "grep" | awk '{print $2}'`; |
||||||
do |
do |
||||||
echo $pid |
echo 'Killed process: '$pid |
||||||
kill -9 $pid |
kill -9 $pid |
||||||
done |
done |
||||||
|
Loading…
Reference in new issue