]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Modify allocation policy, in order to avoid excessive fragmentation for
authorjasone <jasone@FreeBSD.org>
Fri, 17 Mar 2006 09:00:27 +0000 (09:00 +0000)
committerjasone <jasone@FreeBSD.org>
Fri, 17 Mar 2006 09:00:27 +0000 (09:00 +0000)
commit1759b378e2034fdc2ae34298d0c42e123800820c
tree3fcccc053909de3b904c6202c828c3421b0c182b
parent5976ce32c3b79914d2565edcd5448148fbc2f6ec
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