annotate loop_qsub.sh @ 13:e3fe67fee803

adde hello_post.rb
author Nobuyasu
date Mon, 20 Jan 2014 17:01:44 +0900
parents f94fc7812cd8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
8 nodenum=$i
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
9 if [ $i -lt 10 ]
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
10 then
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
11 nodenum=0$i
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
12 fi
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
13 echo "current count = $nodenum"
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
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
f94fc7812cd8 Modified benchmark program
Nobuyasu
parents: 2
diff changeset
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