Re: Some questions about linux kernel.

From: Paul Jakma (paul.jakma@compaq.com)
Date: Mon Mar 13 2000 - 06:19:48 EST


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/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:24 EST