Re: [PATCH] OOM killer API (was: [PATCH] VM fix for 2.4.0-test9 & OOM handler)

From: Paul Jakma (paulj@itg.ie)
Date: Wed Oct 11 2000 - 09:51:34 EST


On Wed, 11 Oct 2000, Bruce A. Locke wrote:

>
> Your making the deadly assumption that all applications behave themselves
> exactly the same all the time. Oops... netscape decided to freak out and
> take up all your memory... guess its the admins fault. Oops... some
> mod_perl script decided to freak out and an apache process decides to suck
> all of your CPU and MEM.
>

that's why you have per process limits set. Eg, PAM makes this
exceedingly easy with pam_limit.so -> edit /etc/security/limit.conf.

this prevents at least 90% of OOM situations (ie individual leaky
processes). eg netscape will then pop-up "can not allocate memory"
messages and stop rendering pages instead of crashing your system.

--paulj

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:18 EST