Mercurial > hg > Members > tatsuki > Alice
annotate scripts/ring_run.sh @ 166:a3f7f25f884b working
show data CS could change dynamic array
author | sugi |
---|---|
date | Fri, 14 Dec 2012 17:17:41 +0900 |
parents | 54f5b5496bfe |
children | 2a8440684441 |
rev | line source |
---|---|
31 | 1 #!/bin/bash |
40 | 2 |
3 if [ ! -d output ]; then | |
4 mkdir output | |
5 fi | |
6 | |
31 | 7 max=$1 |
46 | 8 count=$2 |
31 | 9 ruby ./topology/ring.rb $1 > ./topology/ring.dot |
48
f60c0246c8ce
add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
46
diff
changeset
|
10 #dot -Tpng ./topology/ring.dot > ./topology/ring.png |
f60c0246c8ce
add ring experiment shell script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
46
diff
changeset
|
11 #open ./topology/ring.png |
68
d4c7f7b1096b
remove copy at OutboundTcpConnection
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
61
diff
changeset
|
12 java -cp ../Alice.jar alice.topology.manager.TopologyManager -p 10000 -conf ./topology/ring.dot -log ./output/manager.log -level debug & |
31 | 13 |
14 cnt=0 | |
15 while [ $cnt -lt $max ] | |
16 do | |
80 | 17 java -cp ../Alice.jar alice.test.topology.ring.RingTopology -host `hostname` -port 10000 -p `expr 20000 + $cnt` -log ./output/ring${cnt}.log -level debug -count $count -size 4096 -nodeNum $max & |
31 | 18 cnt=`expr $cnt + 1` |
19 done | |
20 wait |