Subject: Re: calloc() and free() ps doesn'r report memory being freed, why?
To: None <netbsd-help@NetBSD.ORG>
From: Ron G. Minnich <rminnich@Sarnoff.COM>
List: netbsd-help
Date: 07/29/1996 15:11:37
> The only way to enforce this is to mark the memory as free, but keep it in the
> process's address space.

yep. If you want to allocate storage and then free pieces of your vm 
space when you free storage, you could use a mapped-file-based allocater. 
Then freeing vm space is basically an munmap(). This does seem to work 
under the various BSDs I've tried.

ron