Excluding specific processes from ulimit

cn flag

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?


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.