Stylesheet style.css not found, please contact the developer of "arctic" template.

Commands


Common Commands

  1. slurm (introduction)
  2. launching jobs: salloc (resource reservation for jobs) && srun (jobs and job steps running tasks)
  3. batch jobs: sbatch (batch jobs to queue)
  4. scancel (signal/stop running jobs)
  5. sstat (infos wrt. running jobs)
  6. squeue (show queues)
  7. sinfo (show node infos)

STUBL Tools

  1. snodes (list node features; wrapper for sinfo)
  2. sqstat (list job queues and cluster status information)


Manpages

  • man 1 sbatch
  • man 1 srun
  • man 1 salloc
  • man 1 scancel
  • man 1 squeue
  • man 1 sinfo


Important switches for sbatch/srun/salloc

  1. -a <index_range> <html> </html>job array with index range, e.g. -a 0,1,4-6 or -a 0-8:2 (environment variables available: SLURM_ARRAY_TASK_ID, SLURM_ARRAY_JOB_ID, SLURM_ARRAY_TASK_COUNT etc.)
  2. -d <dependency_list> <html> </html>define dependencies on other jobs (dependency_list: after:job_id[:job_id] or afterok:job_id[:job_id] and so on)
  3. <html>–</html>begin=<time_string> <html> </html>(absolute/relative) start time of job (see man 1 sbatch)
  4. <html>–</html>deadline=<time_string> <html> </html>job only scheduled as long as it finishes before deadline
  5. <html>–</html>mem=<amount[T|G|M|K]> <html> </html>amount of virtual memory per node to allocate, e.g. 1G (1 Gibibyte)
  6. -t <time> set job's wall clock time
  7. -e <file> <html> </html>where to redirect error output
  8. -o <file> <html> </html>where to redirect stdout
  9. -i <file> <html> </html>read stdin for job script from file
  10. -J <job_name>
  11. -n <ntasks> <html> </html>the overall amount of task (all nodes); does NOT accept range of task number :-(
  12. -N <min_nodes[-max_nodes]> <html> </html>overall number of nodes; accepts range of node number :-D
  13. <html>–</html>tasks-per-node=<ntasks> <html> </html>number of tasks launched on each node
  14. -w <node_list> <html> </html>where <node_list> e. g.: node001; node[001-005,009]; node001,node008
  15. <html>–</html>mail-type=<types> <html> </html>NONE, BEGIN, END, FAIL, REQUEUE, ALL, ARRAY_TASKS etc., for further explanations see man 1 sbatch
  16. -v <html> </html>run in verbose mode


Useful combination of arguments for srun/sbatch/salloc

  1. -N with -n
  2. -N with -n and <html>–</html>tasks-per-node=


date of revision: 10-30-2018 © kraus

hpc/hpc_tubit/slurm_usage/general_commands.txt · Zuletzt geändert: 2018/10/30 18:15 von kraus
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0