Interactive job (srun)
An interactive job is launched on a compute node and provides you with a command-line prompt. These jobs are useful for debugging or for interactive use of applications. To start an interactive job, use the srun command. Once the job has started, you can run commands that utilize the resources of the allocated compute node.
srun --pty /bin/bash
s01 ~]$
By default, jobs launched with srun --pty /bin/bash are assigned 1 CPU and 8192MB (8GB) of memory. If you are part of a specific Slurm account, you must include the --account=
If your work requires more resources, you can specify them using additional srun options. For example, the command below requests 5 CPUs, 8GB of memory per CPU, and a wall time of 2 hours:
The following example job requests 16GB of memory, 5 CPUs, and a runtime of 2 hours:
srun --mem-per-cpu=16GB --cpus-per-task=5 --time=02:00:00 --pty /bin/bash
s08 ~]$
Once done type `exit` to leave