Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

1 Answer

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
2  
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
add comment

Your Answer

 
discard

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