Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.