[OpenAFS-devel] AFSD memory footprint

Neulinger, Nathan nneul@umr.edu
Mon, 6 Aug 2001 09:05:06 -0500


I memset the whole block to non-zero. It was just a quick test, so didn't do
much further.

-- Nathan

> -----Original Message-----
> From: Jeffrey Hutzelman [mailto:jhutz@cmu.edu]
> Sent: Monday, August 06, 2001 8:55 AM
> To: Neulinger, Nathan
> Cc: openafs-devel@openafs.org
> Subject: RE: [OpenAFS-devel] AFSD memory footprint
> 
> 
> 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.
> 
>