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

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