qsub tips: You need to know this about qsub
A PBS server treats all associated machines as nodes of one big cluster and uses queues to allocate their resources.
Use the pbsnodes and qstat commands below to show the configuration in detail. Submit jobs with qsub.
Use the pbsnodes and qstat commands below to show the configuration in detail. Submit jobs with qsub.
Node info
pbsnodes -a # show status of all nodes pbsnodes -a <node> # show status of specified node pbsnodes -l # list inactive nodes pbsnodelist # list status of all nodes (one per line)
Queue info
qstat -Q # show all queues qstat -Q <queue> # show status of specified queue qstat -f -Q <queue> # show full info for specified queue qstat -q # show all queues (alternative format) qstat -q <queue> # show status of specified queue (alt.)
Job submission and monitoring
qsub <jobscript> # submit to default queue
qsub -q <queue> <jobscript> # submit to specified queue
other useful qsub options:
-N <jobname> # set job name (default: name of jobscript)
-r n # don't rerun the job if system fails
# (default: yes)
-k oe # keep the job's current output and error files
# in the user's HOME directory
# (default: deliver them in the end)
-m mail_options # send email at beginning, end, abort of job
-M <email> # full email address for notification
# (firewall: must be inside of HU)
These two options are my favorate ones.
qdel <job_no> # delete job (with <job_no> from qstat) qstat -a # show all jobs qstat -a <queue> # show all jobs in specified queue qstat -f <job_no> # show full info for specified job qstat -n # show all jobs and the nodes they occupy
References
http://cmsweb.rcac.purdue.edu/cms/batch_info.html
Comments
Post a Comment