Scheduler help

Scheduler Command Comparison

User commands for the scheduler

Submit a job script to the queue

LSF: bsub < jobscript

Moab/Torque: qsub jobscript

View a running job

LSF: bpeek jobid

Moab/Torque: checkjob jobid

Delete Job from the queue

LSF: bkill jobid

Moab/Torque: qdel jobid

Check a running or pending job

LSF:  bjobs jobid

 

Moab/Torque: checkjob jobid

Show the queue status

LSF: qstat -a or bjobs -r -u all

Moab: showq

Maui/Torque: showq

Modify a pending job

LSF: bmodify

Moab/Torque: qalter

Change a pending job’s queue

LSF: bmodify -q queue jobid

Moab/Torque: qmove queue jobid

 

Job script parameters

Number of Nodes

LSF: #BSUB -n <number>

Moab/Torque: #PBS -l nodes=<number>

Wallclock Time

LSF: #BSUB -w <hours:minutes>

Moab/Torque: #PBS -l walltime=<hours:minutes:seconds>

 

Wait on another job to exit before submitting

LSF: #BSUB -w “exit(jobid)”

Moab/Torque: #PBS -W depend=afterany:$jobid

Same as above but will only run if the job exits without error

LSF: #BSUB -w “done(jobid)”

Moab/Torque: #PBS -W depend=afterok:$jobid

Queue selection

LSF: #BSUB -q <queue>

Moab/Torque: #PBS -q <queue>

Job Name

LSF: #BSUB -J <name>

Moab/Torque: #PBS -N <name>

Output File

LSF: #BSUB -o <file>

Moab/Torque: #PBS -o <file>

Environment Variables

Hosts Job dispatched to

LSF: LSB_HOSTS

Maui/Torque: PBS_NODEFILE

Job ID

LSF: LSB_JOBID

Maui/Torque: PBS_JOBID

Job Name

LSF: LSB_JOBNAME

Maui/Torque: PBS_JOBNAME

Queue sbmitted to

LSF: LSB_QUEUE

Maui/Torque: PBS_O_QUEUE

Wheteher Interactive

LSF: LSB_INTERACTIVE

Maui/Torque: PBS_ENVIRONMENT