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)
Tue, Jun 10, 8:34 PM
Unknown Object (File)
Sun, Jun 8, 12:11 AM
Unknown Object (File)
Tue, Jun 3, 5:57 AM
Unknown Object (File)
Wed, May 28, 5:01 AM
Unknown Object (File)
May 15 2025, 11:08 AM
Unknown Object (File)
May 12 2025, 11:23 AM
Unknown Object (File)
May 12 2025, 4:45 AM
Unknown Object (File)
May 11 2025, 4:44 AM
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