[OpenAFS-devel] AFSD memory footprint

Jeffrey Hutzelman jhutz@cmu.edu
Mon, 6 Aug 2001 14:55:01 +0100 (BST)


On Thu, 2 Aug 2001, Neulinger, Nathan wrote:

> I did some limited testing allocating, writing, and freeing a couple large
> chunks of memory. On linux, it definately returns the memory to the O/S when
> you free() it with redhat-6.2 or 7.1.  (I think glibc 2.1 and 2.2
> respectively.)
> 
> I couldn't get hp or solaris to give me any meaningful results. (It didn't
> look like malloc'd data was showing up in ps SZ column, but I may have been
> doing something stupid.)

Did you actually write into the memory, or just malloc it?  On many
platforms, pages aren't allocated to your process until you actually
touch them.