Mercurial > hg > Members > nobuyasu > jungle_benchmark
annotate distributed/loop_qsub.sh @ 13:e3fe67fee803
adde hello_post.rb
author | Nobuyasu |
---|---|
date | Mon, 20 Jan 2014 17:01:44 +0900 |
parents | c69a41ffc439 |
children |
rev | line source |
---|---|
7
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 #!/bin/sh |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 start=1 |
12 | 4 finish=12 |
7
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 for i in `seq $start $finish` |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 do |
10 | 8 nodenum=$i |
9 if [ $i -lt 10 ] | |
10 then | |
11 nodenum=0$i | |
12 fi | |
7
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 echo "current count = $i" |
10 | 14 qsub -e /home/mass/share/student/k128576/jungle_benchmark/distributed/error_log/ -o /home/mass/share/student/k128576/jungle_benchmark/distributed/log/ -v times=5000,schedule=`expr $(date +%s) + 5` -l nodes=$nodenum:ppn=4 /home/mass/share/student/k128576/jungle_benchmark/distributed/stress_write_jungle.sh |
15 # qsub -e /home/mass/share/student/k128576/jungle_benchmark/distributed/error_log/ -o /home/mass/share/student/k128576/jungle_benchmark/distributed/log/ -v times=5000,schedule=`expr $(date +%s) + 5` -l nodes=$nodenum:ppn=4 /home/mass/share/student/k128576/jungle_benchmark/distributed/stress_read_jungle.sh | |
7
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 while [ "x`qstat`" != "x" ] |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 do |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 echo "waiting for job to complete" |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 sleep 5 |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 done |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 echo "job complete" |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 sleep 15 |
867cd5f213d3
Added distributed directory
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
23 done |