Mercurial > hg > Members > nobuyasu > jungle_benchmark
annotate stress_read_write.sh @ 16:704bcc773b96
Modifed capistrano file
author | Nobuyasu |
---|---|
date | Fri, 24 Jan 2014 18:09:16 +0900 |
parents | 5ea96ce6a1c1 |
children |
rev | line source |
---|---|
3
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 #!/bin/sh |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 # |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 #PBS -q tqueue |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 #PBS -N write_read_jungle |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 #PBS -l walltime=00:05:00 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 script=/home/mass/share/student/k128576/jungle_benchmark/stress_read_write.rb |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 function run() { |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 while read serv |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 do |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 ssh $serv "/usr/local/bin/ruby $script $schedule $times" & |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 done |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 wait |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 } |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 uniq $PBS_NODEFILE /tmp/nodes |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 run < /tmp/nodes |