Skip to content
Snippets Groups Projects
Commit de40c8db authored by Roman Sliva's avatar Roman Sliva
Browse files

Update slurm-job-submission-and-execution.md

parent 46e6f638
No related branches found
No related tags found
No related merge requests found
Pipeline #33229 passed with warnings
......@@ -2,7 +2,9 @@
## Introduction
[Slurm][1] workload manager is used to allocate and access Barbora cluster and Complementary systems resources.
[Slurm][1] workload manager is used to allocate and access Barbora cluster and Complementary systems resources. Karolina cluster coming soon...
A `man` page exists for all Slurm commands, as well as `--help` command option, which provides a brief summary of options. Slurm [documentation][c] and [man pages][d] are also available online.
## Getting Partitions Information
......@@ -27,12 +29,20 @@ qdgx up 2-00:00:00 0/1/0/1 cn202
qviz up 8:00:00 0/2/0/2 vizserv[1-2]
```
`NODES(A/I/O/T)` column sumarizes node count per state, where the `A/I/O/T` stands for `allocated/idle/other/total`.
On Barbora cluster all queues/partitions provide full node allocation, whole nodes are allocated to job.
On Complementary systems only some queues/partitions provide full node allocation, see [Complementary systems documentation][2] for details.
## Getting Job Information
Show all jobs on system:
```console
$ squeue
```
Show my jobs:
```console
......@@ -59,12 +69,6 @@ Show my jobs using long output format (includes time limit):
$ squeue --me -l
```
Show all jobs on system:
```console
$ squeue
```
Show my jobs in running state:
```console
......@@ -103,6 +107,8 @@ Run interactive job, with X11 forwarding:
$ salloc -A PROJECT-ID -p qcpu_exp --x11
```
To finish the interactive job, you can either use the `exit` keyword, or Ctrl+D (`^D`) control sequence.
!!! warning
Do not use `srun` for initiating interactive jobs, subsequent `srun`, `mpirun` invocations would block forever.
......@@ -237,3 +243,13 @@ $ scancel --me -t pending -A PROJECT-ID
[1]: https://slurm.schedmd.com/
[2]: /cs/job-scheduling/#partitions
[3]: https://slurm.schedmd.com/srun.html#SECTION_OUTPUT-ENVIRONMENT-VARIABLES
[a]: https://slurm.schedmd.com/
[b]: http://slurmlearning.deic.dk/
[c]: https://slurm.schedmd.com/documentation.html
[d]: https://slurm.schedmd.com/man_index.html
[e]: https://slurm.schedmd.com/sinfo.html
[f]: https://slurm.schedmd.com/squeue.html
[g]: https://slurm.schedmd.com/scancel.html
[h]: https://slurm.schedmd.com/scontrol.html
[i]: https://slurm.schedmd.com/job_array.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment