Submission with sbatch:
sbatch my_job_file.sh
Stop everything going into the nbi-long partition:
unset SBATCH_PARTITION
Submitting a job which depends upon the successful completion of another job. (Assuming a job is currently either running or in the queue with ID number 123)
sbatch --dependency=afterok:123 my_job_file.sh
Submitting a job with multiple dependencies can be achieved using a colon to seperate job IDs. (The following example assumes two jobs which are running or in the queue with IDs 123 and 456)
sbatch --dependency=afterok:123:456 my_job_file.sh
If you don't care about successful completion of a dependency in order to start the subsequent job, e.g. the dependency can fail with but you still want the next job to run afterwards, you can substitute afterok
with afterany
.
Info in all running jobs:
squeue
Just my jobs:
squeue -u hartleym
Just one job:
squeue -j 631978
With priority information (i.e. whose jobs should schedule next):
squeue -O jobid,name,username,priority,state
When can I expect my jobs to start:
squeue -u hartleym --start
Detailed information about a pending/running job:
scontrol show jobid -dd 524552
Show detailed information using atop about node on which a job is running:
snodetop -j 3455708
For a particular node:
snodetop -n n128n1
Show detailed information about a single job:
sacct -j 524552 --format=JobID,JobName,MaxRSS,Elapsed
all jobs:
sacct --format=JobID,JobName,MaxRSS,Elapsed
Show information about the fair shares for NBI users:
sshare -a -A nbi
Just one person:
sshare -u hartleym
See scheduler weights:
sprio -w
See a job's priority:
sprio -j 714141
Default reporting period is yesterday. Change with:
sreport cluster AccountUtilizationByUser accounts=nbi start=1/1/16 end=3/8/16
Who's the biggest:
sreport user TopUsage accounts=nbi start=1/1/16 end=3/8/16
See more people:
sreport user TopUsage accounts=nbi start=1/1/16 end=3/8/16 TopCount=20
Better format:
sreport user TopUsage accounts=nbi start=1/1/16 end=3/8/16 format=Login,Proper,Used
Show information about the scheduler/priority setup:
scontrol show config | grep SchedulerType
scontrol show config | grep PriorityType