lkml.org 
[lkml]   [2000]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Some questions about linux kernel.
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.082 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site