Mercurial > hg > Members > nobuyasu > jungle_benchmark
annotate loop_qsub.sh @ 10:f94fc7812cd8
Modified benchmark program
author | Nobuyasu |
---|---|
date | Fri, 17 Jan 2014 11:31:28 +0900 |
parents | d4f55fd47603 |
children |
rev | line source |
---|---|
0
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 #!/bin/sh |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 start=1 |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 finish=45 |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 for i in `seq $start $finish` |
f049a3340d2c
added some files
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 | |
13 echo "current count = $nodenum" | |
14 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=$nodenum:ppn=4 /home/mass/share/student/k128576/jungle_benchmark/stress_write_jungle.sh | |
15 # 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=$nodenum:ppn=4 /home/mass/share/student/k128576/jungle_benchmark/stress_read_jungle.sh | |
0
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 while [ "x`qstat`" != "x" ] |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 do |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 echo "waiting for job to complete" |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 sleep 5 |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 done |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 echo "job complete" |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 sleep 15 |
f049a3340d2c
added some files
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
23 done |