Qstat
From HPC
(Difference between revisions)
(→List details of specified job) |
(→List all jobs) |
||
(One intermediate revision not shown) | |||
Line 6: | Line 6: | ||
==List all jobs== | ==List all jobs== | ||
+ | |||
+ | This will show all jobs running/queued for all users | ||
+ | |||
+ | qstat -u '*' | ||
+ | |||
+ | If you would like this to be the default you need to add the options to a text file .sge_qstat in your home directory. | ||
+ | |||
+ | nano ~/.sge_qstat | ||
+ | |||
+ | Add the following | ||
+ | |||
+ | -u * | ||
+ | |||
+ | Save the file and exit | ||
+ | |||
+ | ==List all your jobs== | ||
qstat | qstat | ||
Line 23: | Line 39: | ||
qstat -q c | qstat -q c | ||
+ | ==List queues by host and the jobs running on that host== | ||
+ | |||
+ | qstat -f | ||
[[Category:SGE]] | [[Category:SGE]] |
Current revision as of 10:30, 4 November 2008
Contents |
Qstat
Qstat will show you the jobs in the queue and by default includes jobs from other users. You can also use it to look at just your jobs, get more detail on a specific job.
Note: jobs are listed in the order they will be run on the cluster. This is continuely updated, as new users submit jobs. The system employees a sliding priority, depending on how many jobs have been run and how often.
List all jobs
This will show all jobs running/queued for all users
qstat -u '*'
If you would like this to be the default you need to add the options to a text file .sge_qstat in your home directory.
nano ~/.sge_qstat
Add the following
-u *
Save the file and exit
List all your jobs
qstat
List a users jobs
qstat -u <username> qstat -u train
List details of specified job
qstat -j <jobid> qstat -j 5410
List queues
qstat -q c
List queues by host and the jobs running on that host
qstat -f