On 11/3/06, Sebastian Reitenbach <reitenbach@rapideye.de> wrote:
Hi all,
I want to limit the resources like processor usage, or memory allocation for the users. So after some digging I found the /etc/security/limits.conf file.
what I exactly want is to say user X is not allowed to use more than 50% of the cpu at a time, only in case the cpu would be idle, he is allowed to take more cpu cycles.
I found the cpu parameter in the limits.conf file, which specifies the maximum time in minutes that a process can use the cpu. I have a slight problem to understand that. What when I have a long running process, taking days to compute, and I set the value to 10 minutes? will the process stop working after it used all the ten minutes of cpu time?
also with using nice I cannot specifically say use only 50% of the cpu cycles in general, and only when idle otherwise use more.
any idea how I can limit cpu resources as described above?
kind regards Sebastian
Sounds interesting. But I am not sure it will give you a stable system. I wonder if setting priority for applications in Windows is similar to this. Uh..I don't exactly understand what happened after changing priority of applications in Windows (from the Task Manager), but yeah..i guess it had to do with allocation of CPU resources. But well..I don't know..it was a Windows thing. Once I changed the priority of one application to high (highest was Real-time) and lol...my system got seriously unstable...doing weird things all the way!! Would be interesting for me to find out how Linux handles the situation. --
Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com