> Yes, it's a program that was wrriten and compiled by the user. I put a > priority for this user in file /etc/security/limits.conf. I wonder is there > is a way to put a quota for CPU % a user is allowed. The only thing that I > saw that can be set there is Max CPU Time. Or is that the same thing? Forgive > my ignorance. here part of my /etc/security/limits.conf
Well, max CPU time would be the amount of time the program can use on the CPU. This would limit long-running CPU intensive programs, which may be what you want. Also, as someone else had mentioned, renicing their app to a low priority should help response time. Perhaps you could ask them to do it (they may not mind some much as not running the program). If they don't, you can certainly renice the app as root. There are probably autmated ways to do this as well (possibly in limits.conf?). > # - cpu - max CPU time (MIN) > > username hard priority 100000 > > What else can I add here? 10000 is in minutes? That's an aweful long time... Perhaps you could experiment with shorter periods? 1min of CPU time is quite a bit of time. -- // Andrew MacKenzie | http://www.edespot.com // Thus spake the master programmer: // "When a program is being tested, it is too late to make design changes." // -- Geoffrey James, "The Tao of Programming"
msg93354/pgp00000.pgp
Description: PGP signature