[slurm-users] X11 forwarding and VNC?

Marcus Wagner wagner at itc.rwth-aachen.de
Fri Mar 29 12:05:30 UTC 2019

Hi Loris,

On 3/25/19 1:42 PM, Loris Bennett wrote:
>> 3. salloc works fine too without --x11, subsequent srun with a x11 app works great
> Doing 'salloc' followed by 'ssh -X'  works for us too, which is surprising to me.
> This last option currently seems to me to be the best option for users,
> being slightly less confusing than logging into the login node again
> from the login node, which is our current workaround.
> Still, it's all a bit odd.

I assume, you use pam_slurm_adopt?
Then it is clear, that this is working and has nothing to do with the 
x11 forwarding feature of slurm. This is plain ssh X11-forwarding in 
this case.
Please keep in mind, that processes started with an adopted ssh session 
are in the jobs cgroup (good), but are accounted in the 'extern' step of 
the job.

* sbatch --wrap "sleep 10m"
* ssh to compute-node
* do some work in the compute node
after job is done
* sacct -j <jobid> -o JobID,JobName,MaxRSS,CPUTime,TotalCPU
        JobID    JobName     MaxRSS    CPUTime   TotalCPU
------------ ---------- ---------- ---------- ----------
1053837            wrap              00:01:42  02:00.159
1053837.bat+      batch       412K   00:01:43  00:00.158
1053837.ext+     extern    543880K   00:01:42  02:00.001

> Cheers,
> Loris

Marcus Wagner, Dipl.-Inf.

IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
wagner at itc.rwth-aachen.de

More information about the slurm-users mailing list