Mercurial > hg > Database > Alice
view scripts/ring_run.sh @ 61:84cfcc8e1bce
change stdout of ring from all time to average time of around time
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 09 Feb 2012 05:02:25 +0900 |
parents | f60c0246c8ce |
children | d4c7f7b1096b |
line wrap: on
line source
#!/bin/bash if [ ! -d output ]; then mkdir output fi max=$1 count=$2 ruby ./topology/ring.rb $1 > ./topology/ring.dot #dot -Tpng ./topology/ring.dot > ./topology/ring.png #open ./topology/ring.png java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot -log ./output/manager.log -level info & cnt=0 while [ $cnt -lt $max ] do java -cp ../Alice.jar alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/ring${cnt}.log -level info -count $count -size 4096 & cnt=`expr $cnt + 1` done wait