]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Increase usefulness of "show malloc" by moving from displaying the basic
authorrwatson <rwatson@FreeBSD.org>
Thu, 26 Oct 2006 10:17:13 +0000 (10:17 +0000)
committerrwatson <rwatson@FreeBSD.org>
Thu, 26 Oct 2006 10:17:13 +0000 (10:17 +0000)
commit55067e6cf7b8af77887d5fd1620da9fcc596ad9d
tree0c4d59ceae3b8c7ad9480556ef9b9bd1ae874589
parent329f9b6294caa30cd8f5f17101f06309aeaa726b
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
sys/kern/kern_malloc.c