Possible to limit per-process memory usage?

Started by Coldblackice, November 10, 2021, 09:51:25 AM

Previous topic - Next topic

Coldblackice

Is there a way to limit a particular program's memory usage, preventing a program from getting a "blank check" to expand its memory usage until system RAM is nearly maxed? This is particularly a common occurrence with web browsers, when using lots of tabs.

I looked around in the settings but couldn't find this, just auto-trimming/purging.

Jeremy Collake

You'd have to use a Watchdog rule to restart the offending process. Forcibly denying memory allocation would simply cause the application to crash, so there can be no externally imposed limit on virtual memory consumption, and the best that can be done to limit RAM usage is via the Working Set Trim.
Software Engineer. Bitsum LLC.