This article claims that the
-m flag to
ulimit does nothing in modern Linux. I can find nothing else to corroborate this claim. Is it accurate?
You may try to limit the memory usage of a process by setting the maximum resident set size (ulimit -m). This has no effect on Linux. man setrlimit says it used to work only in ancient versions. You should limit the maximum amount of virtual memory (ulimit -v) instead.
If it's true that it worked in older versions of Linux, which version stopped supporting this?