[slurm-users] pam_slurm_adopt and multiple jobs on the same worker node

40 views
Skip to first unread message

Massimo Sgaravatto via slurm-users

unread,
Apr 14, 2025, 4:32:41 AM4/14/25
to slurm...@lists.schedmd.com
Dear all

With the pam_slurm_adopt module as far as I understand you can ssh to a worker node if there is at least a job running on the node by that user. 

If there are multiple jobs, if I am not wrong you will be "mapped" to the last job started on the node. And, if you are using cgroups, you will be "confined" to the resources assigned to this "last" job.

Is it possible in some way to specify the job to be mapped, in case there are multiple jobs for that user on the same node ?

Thanks, Massimo

Paul Raines via slurm-users

unread,
Apr 14, 2025, 8:21:57 AM4/14/25
to Massimo Sgaravatto, slurm...@lists.schedmd.com

Instead of using pam_slurm_adopt your users can get a shell on the node
of a specific job in that job's "mapped" space by running

srun --pty --overlap --jobid JOBIDNUM bash



-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Mon, 14 Apr 2025 4:30am, Massimo Sgaravatto via slurm-users wrote:

> External Email - Use Caution
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately. Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.


--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com

Massimo Sgaravatto via slurm-users

unread,
Apr 14, 2025, 8:56:28 AM4/14/25
to Paul Raines, slurm...@lists.schedmd.com
Thanks a lot !
Really appreciated !

Cheers, Massimo
Reply all
Reply to author
Forward
0 new messages