Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Normally this can be accomplished by "ulimit -m" but on Linux (at least on Centos5) "man bash" says "-m The maximum resident set size (has no effect on Linux)".

So since "ulimit -m" has no effect on Linux is there another way to limit the resident set size per user?

Thanks in advance for any help.

share|improve this question

Limiting the total vmem size (-v) is probably what you want.

share|improve this answer
Thanks but we actually want to limit the resident set size, not the virtual memory size. – Remi Oct 1 '09 at 21:31
Well .. you can't, according to the documentation; the kernel ignores it. Why do you want to do this, and what behaviour do you expect when processes go over their RSS limit? – pjc50 Oct 2 '09 at 14:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.