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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/bin/bash
40
20616fe4d28a add log viewer
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
2
20616fe4d28a add log viewer
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
3 if [ ! -d output ]; then
20616fe4d28a add log viewer
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
4 mkdir output
20616fe4d28a add log viewer
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
5 fi
20616fe4d28a add log viewer
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 31
diff changeset
6
31
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 max=$1
46
1a498f436332 bug fix for time calculate
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 40
diff changeset
8 count=$2
31
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
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
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 cnt=0
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 while [ $cnt -lt $max ]
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 do
80
54f5b5496bfe add arg to ring_run script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents: 68
diff changeset
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
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 cnt=`expr $cnt + 1`
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 done
5c704b9a9a87 add ring script
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 wait