Mercurial > hg > Members > nobuyasu > jungle_benchmark
annotate read_write_loop_qsub.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 start=1 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 finish=45 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 for i in `seq $start $finish` |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 do |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 echo "current count = $i" |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 qsub -e /home/mass/share/student/k128576/jungle_benchmark/error_log/ -o /home/mass/share/student/k128576/jungle_benchmark/log/ -v times=5000,schedule=`expr $(date +%s) + 5` -l nodes=$i:ppn=4 /home/mass/share/student/k128576/jungle_benchmark/stress_read_write.sh |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 while [ "x`qstat`" != "x" ] |
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 echo "waiting for job to complete" |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 sleep 5 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 done |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 echo "job complete" |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 sleep 15 |
5ea96ce6a1c1
Added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 done |