Web Content Display

Although Slurm has a command designed to run interactive jobs (salloc), we strongly recommend to use a tool named ‘interactive’ that is available in Marvin. Exist several ways to run interactive jobs (normaly are different combinatios between the salloc and the srun command) but the use for the ‘interactive’ tool help to the final user to do it in the correct way:

 

[msanchez@mr-login ~]# interactive -h
Usage: interactive [-A] [-p] [-a] [-N] [-c] [-T|-n] [-c] [-m] [-e] [-r] [-w] [-J] [-x]

Optional arguments:
     -A: account (non-default account)
     -p: partition (default: normal)
     -a: architecture (default: , values hsw=Haswell skl=SkyLake wsw=Warsaw)
     -N: number of nodes
     -T: number of tasks per node
     -n: number of tasks (default: 1)
     -c: number of CPU cores (default: 1)
     -m: amount of memory (GB) per core (default: 1 [GB])
     -e: email address to which the begin session notification is to be sent
     -r: specify a reservation name
     -w: target node
     -J: job name
     -x: binary that you want to run interactively
example : interactive -A snow -a hsw -c 4 -J MyFirstInteractiveJob
example : interactive -A snow -a hsw -c 4 -J MyFirstInteractiveJob -x "MyBinary MyOptions"

Written by: Alan Orth <[email protected]>
Modified by: Jordi Blasco <[email protected]>
[msanchez@mr-login ~]#

 

Examples:

 

1.- Run an interactive job with a resource reservation of 4 nodes with 8 cores and 4Gb of RAM for each core.

 

[msanchez@mr-login ~]$ interactive -N 4 -T 8 -m 4 -e [email protected] -J test-interactive-job

 

2.- Run an interactive jobs with 32 cores (we don’t mind the number of cores and how many cores we have in each node). We also ask for 8 GB in each core:


[msanchez@mr-login ~]$ interactive -N 4 -n 32 -m 8 -e [email protected] -J test-interactive-job