I changed my slurm settings for ulimit using this method, but using systemd internal tools for doing this as below:
- Modify (/etc/systemd/system/snap.slurm.slurmd.service.d/override.conf) with systemctl edit as:
sudo systemctl edit snap.slurm.slurmd.service
- Reload systemctl daemon (not sure its needed, but I did it like this):
sudo systemctl daemon-reload
- Finally, restarting the service itself:
sudo systemctl restart snap.slurm.slurmd.service
Then, using the pid of the running service, I can validate that the ulimits are what I expect:
cat /proc/19973/limits