Messages in this thread | | | Date | Wed, 11 Oct 2000 15:51:34 +0100 (IST) | From | Paul Jakma <> | Subject | Re: [PATCH] OOM killer API (was: [PATCH] VM fix for 2.4.0-test9 & OOM handler) |
| |
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/
| |