]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r258693:
authormav <mav@FreeBSD.org>
Sat, 4 Jan 2014 23:42:24 +0000 (23:42 +0000)
committermav <mav@FreeBSD.org>
Sat, 4 Jan 2014 23:42:24 +0000 (23:42 +0000)
commit00fb1dac34b7ee3eb3cb779e348afd1794b9ae55
treef3b49ae07014b500e7b5bb73b4d82e9a69d37de4
parent91cfd3a7cc7cf9c59406b5a004d657fa9212d2c6
MFC r258693:
Make UMA to not blindly force offpage slab header allocation for large
(> PAGE_SIZE) zones.  If zone is not multiple to PAGE_SIZE, there may
be enough space for the header at the last page, so we may avoid extra
header memory allocation and hash table update/lookup.

ZFS creates bunch of odd-sized UMA zones (5120, 6144, 7168, 10240, 14336).
This change gives good use to at least some of otherwise lost memory there.
sys/vm/uma_core.c