[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Out of memory killer misconfigured?



On Tue, Mar 29, 2022 at 07:41:53PM +0100, piorunz wrote:
> And I wanted to highlight that this is not some trivial problem, at the
> moment any rogue non-privileged process running on user account, or
> simple coding error can destroy entire Linux session, be is a important
> server with many services running or just a normal PC, computer is
> totally unusable until manual intervention (hard reset by hand)!

Resource limits are a thing.  man setrlimit (you may have to install
manpages-dev first).

Are they crude as hell?  Absolutely.  But they allow you to set up a
barrier that says "if you use more than x MB of memory, you die".  They
work well enough for some cases.


Reply to: