Subject: kernel mem leak?
To: None <current-users@netbsd.org>
From: Ron Roskens <roskens@elfin.net>
List: current-users
Date: 02/05/2004 14:30:12
I've got a newly upgraded box, and I'm finding that its getting
progressively slower. Not to mention that the kernel has started to
allocate an increasingly larger portion of memory as seen in top and
in "vmstat -m".
NetBSD hysteria.tx.elfin.net 1.6ZI NetBSD 1.6ZI (GENERIC) #23: Tue Feb 3 21:28:20 CST 2004 root@speedy.tx.elfin.net:/obj/i386/sys/arch/i386/compile/GENERIC i386
# uptime
2:20PM up 1 day, 13:46, 0 users, load averages: 0.82, 0.87, 0.51
# pmap 0 |wc -l
33213
# /root/pmap.0.pl
anon 33032K = 1
anon 4K = 723
exec_map 4096K = 1
kmem_map 131072K = 1
mb_map 2048K = 1
pager_map 16384K = 1
phys_map 1200K = 1
ubc_pager 8192K = 1
uvm_aobj 128K = 1
uvm_aobj 16K = 80
uvm_aobj 24K = 1
uvm_aobj 256K = 1
uvm_aobj 4096K = 1
uvm_aobj 40K = 1
uvm_aobj 4K = 20736
uvm_aobj 5040K = 1
uvm_aobj 5644K = 1
uvm_aobj 64K = 11656
uvm_aobj 8K = 3
total 1044376K
# vmstat -m
vmstat: Kmem statistics are not being gathered by the kernel.
Memory resource pool statistics
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
phpool 40 24056 0 14614 109 0 109 109 0 inf 0
pcgpool 140 13 0 0 1 0 1 1 0 inf 0
pmappl 76 701894 0 701856 3 1 2 2 0 inf 1
pdppl 4096 315 0 258 60 0 60 60 0 inf 3
vmsppl 224 701894 0 701856 4 0 4 4 0 inf 1
vmmpepl 88 17701616 0 17700626 56 0 56 56 0 inf 32
aobjpl 52 2 0 1 1 0 1 1 0 inf 0
amappl 40 6228227 0 6227742 7 0 7 7 0 inf 1
bufpl 120 1296792 0 1152823 4840 0 4840 4840 0 inf 0
buf1k 1024 109 0 99 1 0 1 1 1 inf 0
buf2k 2048 130626 683 55685 4104 1647 2457 2513 1 inf 0
buf4k 4096 103664 0 99444 6161 5885 276 4066 1 inf 0
buf8k 8192 119368 19838 61067 13033 5744 7289 7290 1 inf 0
buf16k 16384 26110 939 19613 4610 2985 1625 3168 1 inf 0
mbpl 256 246 0 0 17 0 17 17 1 inf 1
mclpl 2048 154 0 0 81 0 81 81 4 512 4
kqueuepl 260 1 0 0 1 0 1 1 0 inf 0
knotepl 72 24 0 10 1 0 1 1 0 inf 0
sockpl 204 19450 0 19315 8 0 8 8 0 inf 0
ttypl 264 70 0 0 5 0 5 5 0 inf 0
rndsample 528 25554 0 25547 2 0 2 2 0 inf 0
procpl 408 701922 0 701862 9 0 9 9 0 inf 2
lwppl 132 701924 0 701864 3 0 3 3 0 inf 0
pgrppl 16 581 0 552 1 0 1 1 0 inf 0
pcredpl 24 701922 0 701862 1 0 1 1 0 inf 0
plimitpl 156 407967 0 407954 1 0 1 1 0 inf 0
pstatspl 224 701922 0 701862 5 0 5 5 0 inf 1
rusgepl 72 701862 0 701862 1 0 1 1 0 inf 1
raspl 20 160 0 159 1 0 1 1 0 inf 0
sadatapl 72 2 0 2 1 0 1 1 0 inf 1
saupcpl 1608 2 0 2 1 0 1 1 0 inf 1
sastackpl 24 32 0 32 1 0 1 1 0 inf 1
ptimerpl 124 88 0 79 1 0 1 1 0 inf 0
filepl 56 6380994 0 6380796 3 0 3 3 0 inf 0
cwdipl 12 701900 0 701862 1 0 1 1 0 inf 0
fdescpl 280 701900 0 701862 5 0 5 5 0 inf 1
pnbufpl 1024 7 0 0 2 0 2 2 0 inf 0
vnodepl 164 190920 4 62111 6173 0 6173 6173 0 inf 138
ncachepl 84 4613108 0 4484312 3087 0 3087 3087 0 inf 28
ffsinopl 176 5108249 0 4979543 6439 0 6439 6439 0 inf 156
dino1pl 128 5108249 0 4979543 4777 0 4777 4777 0 inf 103
nfsnodepl 344 602 0 594 4 0 4 4 0 inf 2
nfsvapl 108 602 0 594 2 0 2 2 0 inf 1
smbfsnopl 144 347 0 346 1 0 1 1 0 inf 0
wdcspl 52 1635137 0 1635137 1 0 1 1 0 inf 1
extent 20 275 0 248 1 0 1 1 0 inf 0
scxspl 148 19 0 19 1 0 1 1 0 inf 1
shmmp 12 1 0 1 1 0 1 1 0 inf 1
smbrqpl 140 996 0 996 1 0 1 1 0 inf 1
smbt2pl 116 979 0 979 1 0 1 1 0 inf 1
rtentpl 132 29 0 2 1 0 1 1 0 inf 0
inpcbpl 108 16198 0 16163 2 0 2 2 0 inf 1
in6pcbpl 156 58 0 44 1 0 1 1 0 inf 0
inmltpl 32 2 0 0 1 0 1 1 0 inf 0
ipqepl 44 342 0 342 1 0 1 1 0 inf 1
tcpcbpl 316 157 0 136 3 0 3 3 0 inf 1
synpl 184 16 0 16 1 0 1 1 0 inf 1
sigapl 2052 701900 0 701862 60 0 60 60 0 inf 22
pipepl 140 744278 0 744264 2 0 2 2 0 inf 1
cryptop 60 55954 0 55954 1 0 1 1 0 inf 1
cryptodesc 56 55955 0 55955 1 0 1 1 0 inf 1
In use 824717K, total allocated 848652K; utilization 97.2%