cvs commit: src/sys/kern kern_malloc.c

Robert Watson rwatson at FreeBSD.org
Thu Oct 26 10:17:14 UTC 2006


rwatson     2006-10-26 10:17:13 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_malloc.c 
  Log:
  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
  
  Revision  Changes    Path
  1.156     +11 -5     src/sys/kern/kern_malloc.c


More information about the cvs-src mailing list