LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Limits on memory usage (https://www.linuxquestions.org/questions/linux-newbie-8/limits-on-memory-usage-898012/)

unifiedquarks 08-18-2011 03:41 AM

Limits on memory usage
 
we have SL5.5 on our computing nodes.

Sometimes, users runs too many computations, and servers become unreachable due to lack of enough memory.

I want to restrict total memory usage of users to a little bit lower value of physical memory, so under all circumstances the servers will have enough memory to run system services.

I tried to limit several parameters in limits.conf file. But they didn't work.

How can I limit total memory usage of users?

lystor 08-18-2011 06:52 AM

Quote:

Originally Posted by unifiedquarks (Post 4446417)
we have SL5.5 on our computing nodes.

Sometimes, users runs too many computations, and servers become unreachable due to lack of enough memory.

I want to restrict total memory usage of users to a little bit lower value of physical memory, so under all circumstances the servers will have enough memory to run system services.

I tried to limit several parameters in limits.conf file. But they didn't work.

How can I limit total memory usage of users?

Hi
PAM module pam_limits with configuration file
/etc/security/limits.conf works for me.

Limits are implemented per-login, not globally.

unifiedquarks 08-18-2011 09:05 AM

I need global settings.

While I searching on google, I found something related with "cgroups". That may be a solution.


All times are GMT -5. The time now is 06:12 PM.