lkml.org 
[lkml]   [2000]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Overcommitable memory??
    On Sat, Mar 18, 2000 at 10:32:25PM +0000, Carlos Morgado wrote:
    > You don't understand [cm]alloc(). You confusing malloc(), which allocates
    > space in the process (virtual) space, and calloc() which allocates space and
    > touches it. malloc() is very needed for the same reason sparce files are
    > needed.

    I thought the libc5/glibc implementations of calloc() made use of kernel
    guarantees that pages would be allocated zeroed out, and so didn't touch
    them, so in effect calloc() was virtual as well.

    mrc
    --
    Mike Castle Life is like a clock: You can work constantly
    dalgoda@ix.netcom.com and be right all the time, or not work at all
    www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
    We are all of us living in the shadow of Manhattan. -- Watchmen

    -
    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.019 / U:29.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site