]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Modify allocation policy, in order to avoid excessive fragmentation for
authorJason Evans <jasone@FreeBSD.org>
Fri, 17 Mar 2006 09:00:27 +0000 (09:00 +0000)
committerJason Evans <jasone@FreeBSD.org>
Fri, 17 Mar 2006 09:00:27 +0000 (09:00 +0000)
commit2d07e432d46738a79f7d6edd1d87d5dcaba1e8a4
tree3fcccc053909de3b904c6202c828c3421b0c182b
parenta4ca1e0bb024a480c8d47b5ff9ba083867b2f0d9
Modify allocation policy, in order to avoid excessive fragmentation for
allocation patterns that involve a relatively even mixture of many
different size classes.

Reduce the chunk size from 16 MB to 2 MB.  Since chunks are now carved up
using an address-ordered first best fit policy, VM map fragmentation is
much less likely, which makes smaller chunks not as much of a risk.  This
reduces the virtual memory size of most applications.

Remove redzones, since program buffer overruns are no longer as likely to
corrupt malloc data structures.

Remove the C MALLOC_OPTIONS flag, and add H and S.
lib/libc/stdlib/malloc.3
lib/libc/stdlib/malloc.c