The “qstat” command provides information on the state of Grid Engine machines and queues. Entering “qstat” alone gives a brief overview of jobs in the queue:
> qstat
job-ID prior name user state submit/start at queue slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
395 0.55500 run-DSL22- aleonard r 06/13/2007 15:59:18 all.q@compute-0-1.local 1
393 0.55500 run-DSL20- aleonard r 06/13/2007 15:59:18 all.q@compute-0-6.local 1
394 0.55500 run-DSL21- aleonard r 06/13/2007 15:59:18 all.q@compute-0-7.local 1
“qstat -f” gives a “full” display of information, showing the state of all the machines in the cluster:
> qstat -f
queuename qtype used/tot. load_avg arch states
----------------------------------------------------------------------------
all.q@compute-0-0.local BIP 0/4 0.23 lx26-amd64
----------------------------------------------------------------------------
all.q@compute-0-1.local BIP 1/4 1.00 lx26-amd64
395 0.55500 run-DSL22- aleonard r 06/13/2007 15:59:18 1
----------------------------------------------------------------------------
all.q@compute-0-2.local BIP 0/4 0.05 lx26-amd64
----------------------------------------------------------------------------
all.q@compute-0-3.local BIP 0/4 0.04 lx26-amd64
----------------------------------------------------------------------------
all.q@compute-0-4.local BIP 0/4 0.25 lx26-amd64
----------------------------------------------------------------------------
all.q@compute-0-5.local BIP 0/4 0.86 lx26-amd64
----------------------------------------------------------------------------
all.q@compute-0-6.local BIP 1/4 1.10 lx26-amd64
393 0.55500 run-DSL20- aleonard r 06/13/2007 15:59:18 1
----------------------------------------------------------------------------
all.q@compute-0-7.local BIP 1/4 1.89 lx26-amd64
394 0.55500 run-DSL21- aleonard r 06/13/2007 15:59:18 1
----------------------------------------------------------------------------
all.q@compute-0-8.local BIP 0/4 0.62 lx26-amd64
Jobs are submitted to a queue using the ‘qsub’ command:
> qsub blast.sh
An SGE array job is submitted using the ‘-t’ flag:
> qsub -t 1:3 sge-blast-array.sh
Post a Comment