4 ms·
ulimit?
by mac3n 4y ago
ulimit?
- tyree731 4y agoulimit can only control virtual memory caps, not physical memory caps.
- 5e92cb50239222b 4y agoIf you fine with the process being terminated, then maybe. Although I believe ulimit doesn't account for the page cache (this is not important for browsers, but definitely for torrent clients — they can effectively eat up all your memory even if RSS + SHR never go above a few hundred megabytes). Also not sure how it works for shared memory (which is heavily used by modern browsers), which is definitely accounted for by cgroups (and limited by MemoryHigh/MemoryMax).