Scheduler Commands Cheat Sheet: Difference between revisions
Jump to navigation
Jump to search
(새 문서: Scheduler Command Cheat Sheet {| class="wikitable" |+ |User Commands |PBS/Torque |Slurm | |LSF |SGE | | |Loadleveler |- |Job submission |qsub [script file) |sbatch [script file) | |bsub [script file) | colspan="3" |qsub [script file) |llsubmit [script file) |- |Job deletion |qdel uob idl |scancel fiob idl | |bkill Uob idl | colspan="2" |qdel uob idl | |llcancel fjob idl |- |Job status (b)'job) |qstat uob id] |squeue uob id] | |bjobs uob id] | colspan="3" |qstat -u \ * [-j job i...) |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Scheduler Command Cheat Sheet | === Scheduler Command Cheat Sheet<ref>https://wiki.anunna.wur.nl/index.php/SLURM_Compare</ref> === | ||
PBS/Torque, Slurm, LSF, SGE and LoadLeveler Rosetta Stone | |||
This table lists the most common command, environment variables, and job specification options used by the major workload management systems: PBS/Torque, Slurm, LSF, SGE and LoadLeveler. Each of these workload managers has unique features, but the most commonly used functionality is available in all of these environments as listed in the table. This should be considered a work in progress and contributions to improve the document are welcome. | |||
{| class="wikitable" | {| class="wikitable" | ||
!User Commands | |||
!'''PBS/Torque''' | |||
!'''Slurm''' | |||
!LSF | |||
!'''SGE''' | |||
!LoadLeveler | |||
|- | |- | ||
|Job submission | |Job submission | ||
|qsub [ | |qsub [script_file] | ||
|sbatch [ | |sbatch [script_file] | ||
|bsub [script_file] | |||
|bsub [ | |qsub [script_file] | ||
|llsubmit [script_file] | |||
|llsubmit [ | |||
|- | |- | ||
|Job deletion | |Job deletion | ||
|qdel | |qdel [job_id] | ||
|scancel | |scancel [job_id] | ||
|bkill [job_id] | |||
|bkill | |qdel [job_id] | ||
|llcancel [job_id] | |||
|llcancel | |||
|- | |- | ||
|Job status ( | |Job status (by job) | ||
|qstat | |qstat [job_id] | ||
|squeue | |squeue --job [job_id] | ||
|bjobs [job_id] | |||
|bjobs | |qstat -u \* [-j job_id] | ||
|llq -u [username] | |llq -u [username] | ||
|- | |- | ||
|Job status ( | |Job status (by user) | ||
|qstat -u [ | |qstat -u [user_name] | ||
|squeue -u [ | |squeue -u [user_name] | ||
|bjobs -u [user_name] | |||
|bjobs -u [ | |qstat [-u user_name] | ||
|llq -u [user_name] | |||
|llq -u [ | |||
|- | |- | ||
|Job hold | |Job hold | ||
|qhold | |qhold [job_id] | ||
|scontrol hold | |scontrol hold [job_id] | ||
|bstop [job_id] | |||
|bstop | |qhold [job_id] | ||
|llhold -r [job_id] | |||
|llhold -r | |||
|- | |- | ||
|Job release | |Job release | ||
|qrls | |qrls [job_id] | ||
|scontrol release [job_id] | |||
|bresume | |bresume [job_id] | ||
|qrls [job_id] | |||
|llhold -r [job_id] | |||
|llhold -r | |||
|- | |- | ||
|Queue list | |Queue list | ||
|qstat -Q | |qstat -Q | ||
|squeue | |squeue | ||
|bqueues | |bqueues | ||
|qconf -sql | |||
| | |llclass | ||
|- | |- | ||
|Node list | |Node list | ||
|pbsnodes - | |pbsnodes -l | ||
|sinfo -N OR scontrol show nodes | |||
|bhosts | |bhosts | ||
|qhost | |qhost | ||
|llstatus -L machine | |llstatus -L machine | ||
|- | |- | ||
| | |Cluster status | ||
|qstat -a | |qstat -a | ||
|sinfo | |sinfo | ||
|bqueues | |bqueues | ||
|qhost -q | |||
|llstatus -L cluster | |llstatus -L cluster | ||
|- | |- | ||
Line 92: | Line 77: | ||
|xpbsmon | |xpbsmon | ||
|sview | |sview | ||
|xlsf OR xlsbatch | |xlsf OR xlsbatch | ||
|qmon | |qmon | ||
|xload | |xload | ||
|- | |- | ||
|Environment | |'''Environment''' | ||
|PBS/Torque | |'''PBS/Torque''' | ||
|Slurm | |'''Slurm''' | ||
| | |'''LSF''' | ||
|'''SGE''' | |||
|SGE | |'''LoadLeveler''' | ||
| | |||
|- | |- | ||
|Job ID | |Job ID | ||
|$ | |$PBS_JOBID | ||
|$ | |$SLURM_JOBID | ||
|$LSB_JOBID | |||
|$ | |$JOB_ID | ||
|$ | |$LOAD_STEP_ID | ||
|$ | |||
|- | |- | ||
|Submit Directory | |Submit Directory | ||
|$ | |$PBS_O_WORKDIR | ||
|$ | |$SLURM_SUBMIT_DIR | ||
|$LSB_SUBCWD | |||
|$ | |$SGE_O_WORKDIR | ||
|$ | |$LOADL_STEP_INITDIR | ||
|$ | |||
|- | |- | ||
|Submit Host | |Submit Host | ||
|$ | |$PBS_O_HOST | ||
|$SLURM_SUBMIT_HOST | |||
|$ | |$LSB_SUB_HOST | ||
|$SGE_O_HOST | |||
| | | | ||
|- | |- | ||
|Node List | |Node List | ||
|$ | |$PBS_NODEFILE | ||
|$SLURM_JOB_NODELIST | |||
|$ | |$LSB_HOSTS/LSB_MCPU_HOST | ||
|$PE_HOSTFILE | |||
|$ | |$LOADL_PROCESSOR_LIST | ||
|- | |- | ||
|Job Array Index | |Job Array Index | ||
|$ | |$PBS_ARRAYID | ||
|$ | |$SLURM_ARRAY_TASK_ID | ||
|$LSB_JOBINDEX | |||
|$SGE_TASK_ID | |||
| | |||
| | | | ||
|} | |} |
Latest revision as of 09:24, 21 March 2023
Scheduler Command Cheat Sheet[1]
PBS/Torque, Slurm, LSF, SGE and LoadLeveler Rosetta Stone
This table lists the most common command, environment variables, and job specification options used by the major workload management systems: PBS/Torque, Slurm, LSF, SGE and LoadLeveler. Each of these workload managers has unique features, but the most commonly used functionality is available in all of these environments as listed in the table. This should be considered a work in progress and contributions to improve the document are welcome.
User Commands | PBS/Torque | Slurm | LSF | SGE | LoadLeveler |
---|---|---|---|---|---|
Job submission | qsub [script_file] | sbatch [script_file] | bsub [script_file] | qsub [script_file] | llsubmit [script_file] |
Job deletion | qdel [job_id] | scancel [job_id] | bkill [job_id] | qdel [job_id] | llcancel [job_id] |
Job status (by job) | qstat [job_id] | squeue --job [job_id] | bjobs [job_id] | qstat -u \* [-j job_id] | llq -u [username] |
Job status (by user) | qstat -u [user_name] | squeue -u [user_name] | bjobs -u [user_name] | qstat [-u user_name] | llq -u [user_name] |
Job hold | qhold [job_id] | scontrol hold [job_id] | bstop [job_id] | qhold [job_id] | llhold -r [job_id] |
Job release | qrls [job_id] | scontrol release [job_id] | bresume [job_id] | qrls [job_id] | llhold -r [job_id] |
Queue list | qstat -Q | squeue | bqueues | qconf -sql | llclass |
Node list | pbsnodes -l | sinfo -N OR scontrol show nodes | bhosts | qhost | llstatus -L machine |
Cluster status | qstat -a | sinfo | bqueues | qhost -q | llstatus -L cluster |
GUI | xpbsmon | sview | xlsf OR xlsbatch | qmon | xload |
Environment | PBS/Torque | Slurm | LSF | SGE | LoadLeveler |
Job ID | $PBS_JOBID | $SLURM_JOBID | $LSB_JOBID | $JOB_ID | $LOAD_STEP_ID |
Submit Directory | $PBS_O_WORKDIR | $SLURM_SUBMIT_DIR | $LSB_SUBCWD | $SGE_O_WORKDIR | $LOADL_STEP_INITDIR |
Submit Host | $PBS_O_HOST | $SLURM_SUBMIT_HOST | $LSB_SUB_HOST | $SGE_O_HOST | |
Node List | $PBS_NODEFILE | $SLURM_JOB_NODELIST | $LSB_HOSTS/LSB_MCPU_HOST | $PE_HOSTFILE | $LOADL_PROCESSOR_LIST |
Job Array Index | $PBS_ARRAYID | $SLURM_ARRAY_TASK_ID | $LSB_JOBINDEX | $SGE_TASK_ID |