Messages in this thread | | | Date | Mon, 13 Mar 2000 11:19:48 +0000 (GMT Standard Time) | From | Paul Jakma <> | Subject | Re: Some questions about linux kernel. |
| |
On Sun, 12 Mar 2000, Horst von Brand wrote:
> How does the VM notice that it needs to reserve space or dole it out, when > there are several root processes that need memory (named, the ftpd inetd is > spawning, ...)?
we trust root processes not to leak memory.. else we wouldn't run them as root would we?
> They'll eat up your root allowance,
rather than an allowance, we should have a watermark. as soon as physical free < watermark, we deny memory requests from processes euid > 0. (we could perhaps just put euid > 0 processes that ask for RAM to sleep, so that we can at least preserve their state till memory is freed)
simple.
> the same as before. Besides, this isn't a solution anyway, you don't want > to sit beside your server just in case it runs out of memory. >
well there is no perfect solution to OOM. But allowing root to telnet in is IMO preferable to near-random killing.
-paul
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |