httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: another project: memory mgmt
Date Sat, 27 Dec 1997 16:55:14 GMT
Dean Gaudet wrote:
> 
> - We could malloc() in larger chunks so that we can do 4k aligned (or 8k,
> whatever the native page size is) allocations.  We end up having to throw
> away some memory doing this, because we need to round malloc returns up to
> the next page boundary.  But that's why we'd allocate extra memory.  The
> advantage to doing this is that it can improve the behaviour across
> fork(). 
> 

We could check to see if getpagesize() is available and use that
if it use. If not, then we could default to a "safe" value, like 4k.

Want me to work up a patch?

-- 
====================================================================
      Jim Jagielski            |       jaguNET Access Services
     jim@jaguNET.com           |       http://www.jaguNET.com/
            "Look at me! I'm wearing a cardboard belt!"

Mime
View raw message