NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/42661 CVS commit: src



The following reply was made to PR kern/42661; it has been noted by GNATS.

From: Havard Eidnes <he%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/42661 CVS commit: src
Date: Mon, 5 Apr 2010 07:16:13 +0000

 Module Name:   src
 Committed By:  he
 Date:          Mon Apr  5 07:16:13 UTC 2010
 
 Modified Files:
        src/sys/kern: kern_malloc.c
        src/sys/sys: mallocvar.h param.h
        src/usr.bin/vmstat: vmstat.c
 
 Log Message:
 Extend struct malloc_type to count the number of active allocations
 per size, and make vmstat report this information under the "Memory
 statistics by type" display, which is only printed when the kernel
 has been compiled with KMEMSTATS defined, like this:
 
 Memory statistics by type                                Type  Kern
            Type InUse  MemUse HighUse   Limit   Requests Limit Limit Size(s)
           wapbl    15   4192K   4192K  78644K     376426     0     0 
32:0,256:3,512:6,131072:1,262144:2,524288:3
 
 Since struct malloc_type is user-visible and is changed, bump kernel
 revision to 5.99.26.
 
 While it is true that malloc(9) is in general on the path of slowly
 being replaced by kmem(9) (kmem_alloc/kmem_free), there remains a
 lot of points of usage of malloc/free, and this could aid in finding
 any leaks.  (It helped finding the leak fixed in PR#42661.)
 
 This was discussed with and somewhat hestitantly OKed by rmind@
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.128 -r1.129 src/sys/kern/kern_malloc.c
 cvs rdiff -u -r1.7 -r1.8 src/sys/sys/mallocvar.h
 cvs rdiff -u -r1.360 -r1.361 src/sys/sys/param.h
 cvs rdiff -u -r1.166 -r1.167 src/usr.bin/vmstat/vmstat.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index