Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 2002 22:24:01 -0700 (PDT)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_malloc.c
Message-ID:  <200204150524.g3F5O1a99963@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2002/04/14 22:24:01 PDT

  Modified files:
    sys/kern             kern_malloc.c 
  Log:
  Finish adding support code for sysctl kern.mprof.  This dumps some malloc
  information related to bucket size effeciency.  Three things are printed on
  each row:
  
  Size is the size the user actually asked for rounded to 16 bytes.
  Requests is the number of times this size was asked for.
  Real Size is the size we actually handed out.
  
  At the end the total memory used and total waste is displayed.  Currently my
  system displays about 33% wasted memory.
  
  The intent of this code is to gather statistics for tuning the malloc bucket
  sizes.  It is not intended to be run with INVARIANTS and it is not entirely
  mp safe.  It can be enabled via 'options MALLOC_PROFILE' which was commited
  earlier.
  
  Revision  Changes    Path
  1.99      +68 -11    src/sys/kern/kern_malloc.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204150524.g3F5O1a99963>