httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Tikhonov <>
Subject Re: MaxMemFree: kilobytes or megabytes?
Date Wed, 02 Apr 2003 04:22:46 GMT
On Tue, Apr 01, 2003 at 04:38:54PM -0500, Jeff Trawick wrote:
> Dmitri Tikhonov wrote:
> >I'm seeing some weird things happening with MaxMemFree directive
> >(  The
> >docs say that this directive specifies the number of kilobytes after
> >which the memory is returned back to the system, but I found
> >evidence to the contrary:
> The docs talk about returning the storage to the heap (i.e., calling 
> free()).  Whether passing storage to free() will cause the C library 
> heap code to return it to the OS is OS-dependent (and probably even 
> context-dependent, since there may be storage still allocated to the app 
> on pages with free space tracked by the heap.
You're right -- I just proved it to myself by running various tests with
different amounts of memory available.  When there's a lot of memory
available, freed memory is not returned to the OS.


  - Dmitri.

View raw message