HomeFreeBSD

MFC r348117: Allocate buffers smaller then ABD chunk size as linear.

Description

MFC r348117: Allocate buffers smaller then ABD chunk size as linear.

This allows to reduce memory waste by letting UMA to put multiple small
buffers into one memory page slab. The page sharing means that UMA
may not be able to free memory page when some of buffers are freed, but
alternatively memory used by that buffer would just be wasted from the
beginning.

This change follows alike change in ZoL, but unlike Linux (according to
my understanding of it from comments) FreeBSD never shares slabs bigger
then one memory page, so this should be even less invasive then there.

Details

Provenance
mavAuthored on
Parents
rS348675: ufs_module.c can't currently be compiled with -Wcast-align, but the
Branches
Unknown
Tags
Unknown