I manage a shared CentOS 8.1 server. I don't want users running computationally intensive processes on this server because it is the login node to a computer cluster. So we use ulimit
to kill processes using more than 20minutes of cpu time.
However, I do want processes like sshd
and srun
to not be killed by ulimit
. I see a similar question where an answer mentions cgroups.
Question : How do I selectively exclude specific user processes from ulimit?