Limiting CPU usage per user
Posted on 2004-08-04
setup: RedHat 9.0
What exactly am I doing: Running multiple counterstrike servers for private people.
What I am fearing: I know that the dedicated server apps use almost no cpu power (usually 0.1% when idle and 6% when 32people are on.), but i give full ssh access to the accounts, and I can't have an infinite look disturbing all the other users.
So basically I need to limit usage on a per account basis, something like 75% for each user (Only 8 servers).
nano -w /etc/security/limits.conf
Nothing in there that helps me (I think) just maxlogins and that kind of thing.
I would like that it would limit the CPU usage of the user, but If that is not possible then killing the program would be in the worst case.
Here is what I do not want to do: Patch my kernel, I rent the dedicated server and I ssh to it, I do not have physical access to it, so I cannot do anything once it's down.