Scheduler Commands Cheat Sheet: Difference between revisions

From HPCWIKI
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...)
 
(Fix: remove --- horizontal lines (7 removed))
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Scheduler Command Cheat Sheet
{{Status
|status=Draft
|owner=Knowledge Agent
|last_update=2026-07-16
|review=Pending
}}


{{TOC}}
== Overview ==
Scheduler Commands Cheat Sheet에 대한 기술 문서입니다.
=== Summary ===
* 무엇인가? - Scheduler Commands Cheat Sheet
* 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
* 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시
== Purpose ==
이 문서가 존재하는 이유
* Goal: Scheduler Commands Cheat Sheet에 대한 기술 정보 제공
* Scope: Scheduler Commands Cheat Sheet의 개념, 사용법, 설정
* Non-goals: 다른 주제로의 확장
== Key Concepts ==
{| class="wikitable"
! Concept
! Description
! Related
|-
| Scheduler Commands Cheat Sheet
| HPC/서버 환경에서 중요한 기술 개념
| [[Linux]], [[Server]]
|}
== Detailed Explanation ==
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
|User Commands
!'''PBS/Torque'''
|PBS/Torque
!'''Slurm'''
|Slurm
!LSF
|
!'''SGE'''
|LSF
!LoadLeveler
|SGE
|
|
|Loadleveler
|-
|-
|Job submission
|Job submission
|qsub [script file)
|qsub [script_file]
|sbatch [script file)
|sbatch [script_file]
|
|bsub [script_file]
|bsub [script file)
|qsub [script_file]
| colspan="3" |qsub [script file)
|llsubmit [script_file]
|llsubmit [script file)
|-
|-
|Job deletion
|Job deletion
|qdel uob idl
|qdel [job_id]
|scancel fiob idl
|scancel [job_id]
|
 
|bkill Uob idl
 
| colspan="2" |qdel uob idl
== Best Practices ==
|
 
|llcancel fjob idl
* 최신 버전 사용 권장
|-
* 공식 문서 참고
|Job status (b)'job)
* 테스트 환경에서 먼저 검증
|qstat uob id]
 
|squeue uob id]
 
|
== References ==
|bjobs uob id]
 
| colspan="3" |qstat -u \ * [-j job id]
* [https://wiki.hpcmate.com Scheduler Commands Cheat Sheet]
|llq -u [username]
 
|-
 
|Job status (b}' user}
== Related Pages ==
|qstat -u [user name]
 
|squeue -u [user name]
* [[Linux]]
|
* [[Server]]
|bjobs -u [user name)
* [[Hardware]]
| colspan="3" |qstat [-u user name)
* [[Network]]
|llq -u [user name)
 
|-
 
|Job hold
[[Category:Server]]
|qhold uob id]
== Knowledge Graph ==
|scontrol hold uob id]
 
|
Related
|bstop uob id]
 
| colspan="3" |qhold uob id]
[[Linux]]
|llhold -r uob id]
[[Server]]
|-
[[Hardware]]
|Job release
[[Network]]
|qrls uob id]
 
| colspan="2" |scontrol release uob id]
[[Category:Reference]]
|bresume uob id]
| colspan="2" |qrls uob id]
|
|llhold -r uob id]
|-
|Queue list
|qstat -Q
|squeue
|
|bqueues
| colspan="2" |qconf -sql
|
|II class
|-
|Node list
|pbsnodes -I
| colspan="2" |sinfo -N OR scontrol show nodes
|bhosts
|qhost
|
|
|llstatus -L machine
|-
|Clusterstatus
|qstat -a
|sinfo
|
|bqueues
| colspan="2" |qhost -q
|
|llstatus -L cluster
|-
|GUI
|xpbsmon
|sview
|
|xlsf OR xlsbatch
|qmon
|
|
|xload
|-
|Environment
|PBS/Torque
|Slurm
|
|LSF
|SGE
|
|
|Load le veler
|-
|Job ID
|$PBS JOBID
|$SLURM JOBID
|
|$LSB JOBID
|$JOB
|ID
|
|$LOAD STEP
|-
|Submit Directory
|$PBS O WORKDIR
|$SLURM SUBMIT DIR
|
|$LSB SUBCWD
|$SGE
|0
|WORKDIR
|$LOADL STEP
|-
|Submit Host
|$PBS O HOST
| colspan="2" |$SLURM SUBMIT HOST
|$LSB SUB HOST
| colspan="3" |$SGE O HOST
|N/A
|-
|Node List
|$PBS NODEFILE
| colspan="2" |$SLURM JOB NODELIST
|$LSB HOSTS/LSB MCPU HOST
| colspan="3" |$PE HOSTFILE
|$LOADL PROCESSOR LIST
|-
|Job Array Index
|$PBS ARRA YID
|$SLURM ARRAY TASK
|ID
|$LSB JOBINDEX
| colspan="2" |$SGE TASK
|ID
|
|-
|Job Specification
|PBS/Torque
|Slurm
|
|LSF
|SGE
|
|
|Load leveler
|-
|Script directive
|#PBS
|#SBATCH
|
|#BSUB
|#$
|
|
|#@
|-
|Queue
| -q [queue]
| -p [queue)
|
| -q [queue]
| colspan="2" | -q [queue)
|
|class = [queue)
|-
|Node Count
| -I nodes = [count]
| -N [min[-max])
|
| -n [count]
|N/A
|
|
|node=[count]
|-
|CPU count
| -I ppn = [count] OR
| -n [count]
|
| -n [count]
| colspan="3" | -pe [PE) [count]
|N/A
|-
|
| -I mppwidth = [PE count]
|
|
|
|
|
|
|
|-
|Wall Clock Limit
| -I walltime = [hh:mm:ss)
| colspan="2" | -t [min] OR -t [days-hh:mm:ss)
| -W [hh:mm:ss)
| colspan="3" | -I h_rt = [seconds)
|wall clock limit = [hh:mm:ss]
|-
|Standard Output File
| -o [file name)
| -o [file name]
|
| -o [file name]
| colspan="3" | -o [file name)
|output = [file name)
|-
|Standard Error File
| -e [file name]
| -e [file name]
|
| -e [file name]
| colspan="3" | -e [file name)
|error = [file name)
|-
|Combine stdout/err
| -j oe (both to stdout) OR
|(use -o without -e)
|
|(use -o without -e)
| -j yes
|
|
|N/A
|-
|
| -j eo (both to stderr)
|
|
|
|
|
|
|
|-
|Copy Environment
| -V
| colspan="2" | --export = [ALL I NONE !variables)
|N/A
| -V
|
|
|Environment=COPY ALL
|-
|Event Notification
| -m abe
| --mail-type = [events]
|
| -B or -N
| colspan="2" | -m abe
|
|notification = startI errorI complete I never I always
|-
|EmailAddress
| -M [address)
| --mail-user = [address)
|
| -u [address]
| colspan="3" | -M [address]
|Notify_ user=[ address I
|-
|Job Name
| -N [name)
| --job-name = [name)
|
| -J [name)
| colspan="2" | -N [name)
|
|job name = [name)
|-
|Job Restart
| -r [vi n]
| colspan="2" | --requeue OR --no-requeue
| -r
| colspan="2" | -r [yes I no]
|
|Restart = [yes I no]
|-
|
|
| colspan="2" |(NOTE: configurable default)
|
|
|
|
|
|-
|Working Directory
|N/A
| --workdir = [dir _name)
|
|(submission directory)
| colspan="3" | -wd [directory]
|initiald ir=[ directory]
|-
|Resource Sharing
| -I naccesspolicy = singlejob
| --exclusive OR --shared
|
| -x
| colspan="2" | -I exclusive
|
|node_usage=not_shared
|-
|Memory Size
| -I mem = [MB]
| colspan="2" | --mem = [mem)[M I GIT] OR
| -M [MB)
| colspan="3" | -I mem_free = [memory][K IMIG)
|requirements = (Memory> = [MB])
|-
|
|
| colspan="2" | --mem-per-cpu = [mem] [MIG IT]
|
|
|
|
|
|-
|Accou ntto charge
| -W group_list = [account]
| --account = [account]
|
| -P [account]
| colspan="2" | -A [account]
|
|n/a
|-
|Tasks Per Node
| -I mppnppn [PEs_per node]
| colspan="2" | --tasks-per-node = [count]
|N/A
| colspan="3" |(Fixed allocation_rule in PE)
|tasks per node = [count]
|-
|CPUs Per Task
|n/a
| colspan="2" | --cp us-per-task = [count)
|n/a
|n/a
|
|
|n/a
|-
|Job Dependency
| -d [job id]
| colspan="2" | --depend = [state:job id]
| -w [donelexitlfinish)
| colspan="3" | -holdjid [job id I job name]
|n/a
|-
|Job Project
|n/a
| --wckey = [name]
|
| -P [name)
| colspan="2" | - P [name]
|
|n/a
|-
|Job host preference
|n/a
| colspan="2" | --nodelist = [nodes)AND/OR -exclude = [nodes)
| -m [nodes)
| colspan="3" | -q[queue)@[node) OR -q [queue)@@[hostgroup]
|n/a
|-
|Quality of Service
| -I qos = [name)
| --qos = [name]
|
|n/a
|n/a
|
|
|n/a
|-
|Job Arrays
| -t [array_spec)
| colspan="2" | --array = [array _spec) (Siu rm version 2.6+)
|J "name[array_ spec]"
| colspan="3" | -t [array_ spec)
|n/a
|-
|Generic Resources
| -I other = [resource_spec)
| --gres = [resource_ spec I
|
|n/a
| colspan="3" | -I [resource] = [value)
|n/a
|-
|Licenses
|n/a
| colspan="2" | --licenses = [license_spec)
| -R "rusage[license_spec)"
| colspan="3" | -I [license] = [count]
|n/a
|-
|Begin Time
| -A "YYYY-MM-DD HH:MM:SS"
| colspan="2" | --begin = vvvY-MM-DD[THH:MM[:SS))
| -b[[year:] [month:] day:]hour:minute
| colspan="3" | -a [YYMMDDhhmm)
|n/a
|}

Latest revision as of 11:30, 17 July 2026

Template:Status

Template:TOC

Overview

Scheduler Commands Cheat Sheet에 대한 기술 문서입니다.

Summary

  • 무엇인가? - Scheduler Commands Cheat Sheet
  • 왜 필요한가? - HPC 및 서버 환경에서 필수 개념
  • 언제 사용하는가? - 서버 구성, 성능 튜닝, 문제 해결 시


Purpose

이 문서가 존재하는 이유

  • Goal: Scheduler Commands Cheat Sheet에 대한 기술 정보 제공
  • Scope: Scheduler Commands Cheat Sheet의 개념, 사용법, 설정
  • Non-goals: 다른 주제로의 확장


Key Concepts

Concept Description Related
Scheduler Commands Cheat Sheet HPC/서버 환경에서 중요한 기술 개념 Linux, Server


Detailed Explanation

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]


Best Practices

  • 최신 버전 사용 권장
  • 공식 문서 참고
  • 테스트 환경에서 먼저 검증


References


Related Pages

Knowledge Graph

Related

LinuxServerHardwareNetwork