Date: Wed, 07 May 1997 16:10:52 +0000 From: Kachun Lee <kachun@zippo.com> To: freebsd-stable@freebsd.org Subject: Re: kern malloc leak in 2.2X ? Message-ID: <1.5.4.32.19970507161052.007086a4@dopey.pathlink.com>
next in thread | raw e-mail | index | archive | help
At 01:59 PM 5/7/97 -0700, you wrote:
>>After upgrading to 2.2 (2.2beta thru 2.2-releng-970422), some of our systems
>>would panic with 'kmem_map too small' every ~30 hours - clockwork. Per
>>suggestion of Mr. Greenman, I increased VM_KMEM_SIZE from 32M to 48M. The
>>systems still panic, but now about every 2.5days. That leads me to believe
>>there may be a memory leak in 2.2X. Those systems are all heavy NFS clients
>>over SMC 100 netcards.
>>
>>I wouldn't mind spend sometime to identify the problem, if someone could
>>point me to the right direction. The last time I did any UNIX kernel work
>>was back with UNIX sysIII.5. Any suggestion would be greatly appreicated.
>
> After two days, do a "vmstat -m"; this gives a break-down of memory
>allocations in the kernel and should provide a clue to the problem.
I did that. Look like it all tied in Couldfree.
Thanks for the help again.
------------------------------------
Memory statistics by bucket size
Size In Use Free Requests HighWater Couldfree
16 44 724 124563 1280 0
32 1956 732 370957 640 1
64 37040 144 32219429 320 0
128 47344 752 23616751 160 1042
256 31520 352 2695471 80 49
512 54370 6 134739 40 0
1K 103 333 51488921 20 39837787
2K 15 15 5544 10 2668
4K 6 3 827 5 0
8K 1 0 1 5 0
16K 4 0 4 5 0
32K 3 0 3 5 0
64K 1 0 1 5 0
256K 1 0 1 5 0
Memory usage type by bucket size
Size Type(s)
16 devbuf, pcb, routetbl, namei, vnodes, shm, proc, temp, sysctl
32 devbuf, pcb, routetbl, namei, pgrp, session, NFS req, subproc,
MFS node, NFS daemon, ether_multi, temp
64 devbuf, routetbl, ifaddr, NFS req, namecache, shm, VM mapent,
VM pgdata, file, lockf, in_multi
128 devbuf, pcb, routetbl, zombie, ifaddr, cred, vnodes, VM map,
VM object, VM pgdata, file desc, ttys, isa_devlist
256 devbuf, socket, pcb, routetbl, NFS node, vnodes, VM map, VM pgdata,
file desc, subproc, FFS node, MFS node, Export Host, NFS srvsock,
NFS daemon, NFSV3 srvdesc, temp, select
512 devbuf, pcb, ioctlops, mount, NFS mount, UFS mount, VM pgdata,
file desc, proc, NFS daemon, NFSV3 diroff, BIO buffer
1K devbuf, namei, UFS mount, VM pgdata, file desc, NQNFS Lease,
BIO buffer
2K devbuf, UFS mount, VM pgdata, file desc, proc, ttys, BIO buffer
4K devbuf, VM pgdata, temp
8K mbuf
16K devbuf, MSDOSFS mount
32K NFS node, UFS quota, UFS mount
64K namecache
256K VM pgdata
Memory statistics by type Type Kern
Type InUse MemUse HighUse Limit Requests Limit Limit Size(s)
mbuf 1 8K 8K 29492K 1 0 0 8K
devbuf 31 79K 79K 29492K 56 0 0 16,32,64,128,256,
512,1K,2K,4K,16K
socket 633 159K 182K 29492K 311179 0 0 256
pcb 664 123K 158K 29492K 334839 0 0 16,32,128,256,512
routetbl 795 111K 134K 29492K 32714 0 0 16,32,64,128,256
zombie 0 0K 1K 29492K 80152 0 0 128
ifaddr 13 2K 2K 29492K 13 0 0 64,128
namei 0 0K 33K 29492K 51171333 0 0 16,32,1K
ioctlops 0 0K 1K 29492K 3 0 0 512
cred 300 38K 43K 29492K 86157 0 0 128
pgrp 305 10K 11K 29492K 75026 0 0 32
session 303 10K 11K 29492K 74884 0 0 32
mount 22 11K 11K 29492K 75 0 0 512
NFS req 9 1K 9K 29492K 26866954 0 0 32,64
NFS mount 18 9K 9K 29492K 71 0 0 512
NFS node 21474 5401K 5825K 29492K 1345761 0 0 256,32K
vnodes 30037 3755K 3763K 29492K 32056 0 0 16,128,256
namecache 30001 1923K 1923K 29492K 30001 0 0 64,64K
UFS quota 1 32K 32K 29492K 1 0 0 32K
UFS mount 10 43K 43K 29492K 10 0 0 512,1K,2K,32K
shm 283 18K 21K 29492K 71564 0 0 16,64
VM map 325 81K 92K 29492K 80477 0 0 128,256
VM mapent 5495 344K 344K 29492K 5495 0 0 64
VM object 15972 1997K 2070K 29492K 23100416 0 0 128
VM pgdata 537 253K 255K 29492K 1266 0 0 64,128,256,512,1K
,2K,4K,256K
file 1009 64K 72K 29492K 4364888 0 0 64
file desc 323 48K 52K 29492K 80691 0 0 128,256,512,1K,2K
lockf 1 1K 1K 29492K 890640 0 0 64
proc 327 165K 188K 29492K 80480 0 0 16,512,2K
subproc 325 12K 14K 29492K 160629 0 0 32,256
FFS node 7925 1982K 3901K 29492K 329661 0 0 256
MFS node 1 1K 1K 29492K 17 0 0 32,256
NQNFS Lease 1 1K 1K 29492K 1 0 0 1K
Export Host 11 3K 3K 29492K 11 0 0 256
NFS srvsock 2 1K 1K 29492K 2 0 0 256
NFS daemon 69 5K 5K 29492K 69 0 0 32,256,512
in_multi 4 1K 1K 29492K 4 0 0 64
ether_multi 3 1K 1K 29492K 3 0 0 32
NFSV3 srvdesc 0 0K 1K 29492K 352586 0 0 256
NFSV3 diroff 53978 26989K 26989K 29492K 53978 0 0 512
MSDOSFS mount 1 16K 16K 29492K 1 0 0 16K
temp 590 22K 46K 29492K 217877 0 0 16,32,256,4K
ttys 247 35K 45K 29492K 1222 0 0 128,2K
isa_devlist 1 1K 1K 29492K 1 0 0 128
sysctl 0 0K 1K 29492K 1 0 0 16
BIO buffer 64 66K 419K 29492K 350782 0 0 512,1K,2K
select 296 74K 85K 29492K 73168 0 0 256
Memory Totals: In Use Free Requests
43876K 604K 110657216
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1.5.4.32.19970507161052.007086a4>
