HomeFreeBSD

Increase usefulness of "show malloc" by moving from displaying the basic
rS163698Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Increase usefulness of "show malloc" by moving from displaying the basic
counters of allocs/frees/use for each malloc type to calculating InUse,
MemUse, and Requests as displayed by the userspace vmstat -m. This is
more useful when debugging malloc(9)-related memory leaks, where the
count of allocs/frees may not usefully reflect that current memory
allocation (i.e., when highly variable size allocations occur with the
same malloc type, such as with contigmalloc).

MFC after: 3 days
Limitations observed by: scottl

Details

Provenance
rwatsonAuthored on
Parents
rS163697: Optimize umtx_lock_pi() a bit by moving some heavy code out of the loop,
Branches
Unknown
Tags
Unknown

Event Timeline