heap limits: mmap(2) vs. break(2) on i386
    Ulrich Spörlein 
    uqs at spoerlein.net
       
    Sun Nov 29 17:06:12 UTC 2009
    
    
  
On Fri, 27.11.2009 at 18:22:38 -0800, Maxim Sobolev wrote:
> Crazy idea, perhaps, but has anyone considered wrapping up sbrk(2) into 
> mmap(2), so that there is only one memory pool to draw from? Switch to 
> 64-bit certainly helps, however there are lot of 32-bit machines hanging 
> around and we will see them for a while in the embedded space. Certainly 
> current situation with two separate sources of heap memory is not normal.
Alternative and very low tech test:
- Remove sbrk() from libc and /usr/include
- Run port test build
- ???
- PROFIT!
It shall be interesting to see which ports blow up thanks to sbrk()
missing.
Regards,
Uli
    
    
More information about the freebsd-hackers
mailing list