[lkml]   [2000]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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.

Mike Castle Life is like a clock: You can work constantly and be right all the time, or not work at all 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
Please read the FAQ at

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