Re: Some questions about linux kernel.

From: Ragnar Kjørstad (kernel@ragnark.vestdata.no)
Date: Mon Mar 13 2000 - 14:51:08 EST


On Mon, Mar 13, 2000 at 11:19:48AM +0000, Paul Jakma wrote:
> 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?

Most people don't check the source of every program they run - not even
as root. An algorithm that will never kill processes running as root
will be a big problem in the (rare) cases when root processes go crazy.
It's better to kill the processes that actually tries to allocate
memory. (and the page-fault approach sounds even better)

> well there is no perfect solution to OOM. But allowing root to telnet in
> is IMO preferable to near-random killing.

telnetd runs as root no matter who is telneting in. With this approach,
anyone can kill every process running as non-root by making a lot of
telnet-connections. Not good.

--
Ragnar Kjørstad

- 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:28 EST