httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: Memory and pools
Date Tue, 30 Jun 2009 13:46:31 GMT
On Tue, Jun 30, 2009 at 9:00 AM, Kevac Marko<marko@kevac.org> wrote:
> Hello
>
> Is memory (RSS) returned to OS after cleaning pool (for example r->pool)?
> After destroying pool?
>
> My module uses a lot of memory (~100 MiB). This memory is taken from
> r->pool. But after request is finished, this memory is not returned to
> OS - RSS is 100 MiB.
>
> Linux 2.6 - httpd-2.2.10

Not by default, see the MaxMemFree directive.  The conventional wisdom
is that some other req on that thread will also soon need the same
high water mark of memory, so better to not go in/out of the heap
library each time.

-- 
Eric Covener
covener@gmail.com

Mime
View raw message