Page MenuHomeFreeBSD

uma: report leaks more accurately
ClosedPublic

Authored by rlibby on Jan 20 2020, 3:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 6 2024, 2:09 AM
Unknown Object (File)
Jan 11 2024, 10:58 PM
Unknown Object (File)
Dec 20 2023, 5:46 AM
Unknown Object (File)
Sep 20 2023, 4:22 PM
Unknown Object (File)
Aug 5 2023, 11:31 PM
Unknown Object (File)
Jun 28 2023, 7:10 PM
Unknown Object (File)
Jun 28 2023, 7:07 PM
Unknown Object (File)
Jun 28 2023, 7:07 PM
Subscribers

Details

Summary

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.

Test Plan

Repro in bug 237656 now reports leak of "1 items" instead of "18 items".

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable