[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: free cmd is lying to me



Hi Michael!

First of all, thanks for your hint!

On 2 Dec 2001, Michael Heldebrant wrote:

> IIRC from the Understanding the Linux Kernel book by O'Reilly, linux
> doesn't actually worry about memory until you actually use it.  I'm not
> sure if a malloc counts as using it for storing data since I'm no C
> programmer but unless you actually write to the memory linux doesn't
> bother setting up the actual pages since it's a waste for the system to
> make and tear down pages that are never accessed.

You mean I actually have to write data to the malloc()ed memory region?

Greetings,

	Holger




Reply to: