HomeFreeBSD

uma: report leaks more accurately

Description

uma: report leaks more accurately

Previously UMA had some false negatives in the leak report at keg
destruction time, where it only reported leaks if there were free items
in the slab layer (rather than allocated items), which notably would not
be true for single-item slabs (large items). Now, report a leak if
there are any allocated pages, and calculate and report the number of
allocated items rather than free items.

Reviewed by: jeff, markj
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D23275

Details

Provenance
rlibbyAuthored on
Reviewer
jeff
Differential Revision
D23275: uma: report leaks more accurately
Parents
rS357017: Consistently use busy and vm_page_valid() rather than touching page bits
Branches
Unknown
Tags
Unknown