Tom Jensen
2005-Jun-11 23:11 UTC
panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated
Got the following panic on a 5.4 box(i386): panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated Uname: 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Sun May 8 01:57:26 CEST 2005 Had two ntfs partitions mounted and was doing a find . -name *.pst on one of them. Following info collected, but kernel dump aviable if more information is needed. ------------------- panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated KDB: enter: panic db> show lockedvnods Locked vnodes 0xc20cb000: tag ntfs, type VDIR, usecount 2, writecount 0, refcount 0, flags (VV_OBJBUF), lock type ntfs: EXCL (count 1) by thread 0xc1d1ad80 (pid 82982) db> trace Tracing pid 82982 tid 100199 td 0xc1d1ad80 kdb_enter(c083a269) at kdb_enter+0x2b panic(c084b127,1000,3bf7000,1fa,0) at panic+0xbb kmem_malloc(c103b0c0,1000,2,cee5a844,c0765bf5) at kmem_malloc+0x7d page_alloc(c10456c0,1000,cee5a837,2,0) at page_alloc+0x1a slab_zalloc(c10456c0,2,c10456f8,c10456c0,c2653c48) at slab_zalloc+0xdd uma_zone_slab(c10456c0,102,102,80,1200) at uma_zone_slab+0xe8 uma_zalloc_bucket(c10456c0,102) at uma_zalloc_bucket+0x14c uma_zalloc_arg(c10456c0,0,102) at uma_zalloc_arg+0x274 malloc(14c,c28a65e0,102,0,c4f75d08) at malloc+0x46 ntfs_attrtontvattr(c33d4300,cee5a914,c4f75d08,c20cb000,ffffffff) at ntfs_attrtontvattr+0x30 ntfs_loadntnode(c33d4300,c4ed6d00,100500,2,c4ed6d00) at ntfs_loadntnode+0x1b5 ntfs_findvattr(c33d4300,c4ed6d00,cee5a984,cee5a9e8,90) at ntfs_findvattr+0x21 ntfs_ntvattrget(c33d4300,c4ed6d00,90,c28a4f0e,0) at ntfs_ntvattrget+0x5d ntfs_ntreaddir(c33d4300,c4f41d80,0,cee5aa2c,0) at ntfs_ntreaddir+0x66 ntfs_readdir(cee5aca0,0,c20cb000,c1ea9960,8058210) at ntfs_readdir+0x163 getdirentries(c1d1ad80,cee5ad14,4,10c,246) at getdirentries+0x113 syscall(805002f,805002f,bfbf002f,8053100,8053100) at syscall+0x2ab Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (196, FreeBSD ELF32, getdirentries), eip = 0x280c893b, esp 0xbfbfeb4c, ebp = 0xbfbfeb68 --- - Tom
Kris Kennaway
2005-Jun-12 01:40 UTC
panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated
On Sun, Jun 12, 2005 at 01:11:13AM +0200, Tom Jensen wrote:> Got the following panic on a 5.4 box(i386): > > panic: kmem_malloc(4096): kmem_map too small: 62877696 total allocated > > Uname: 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Sun May 8 01:57:26 CEST 2005 > > Had two ntfs partitions mounted and was doing a find . -name *.pst on one of > them. > > Following info collected, but kernel dump aviable if more information is > needed.How much RAM in your system, and what is your kernel config? This can be caused by two things: * A memory leak in FreeBSD * Incorrect tuning of your kernel memory parameters and causing the kernel to run out of memory. Kris -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050611/ee38b361/attachment.bin
Tom Jensen
2005-Jun-12 08:59 UTC
panic: kmem_malloc(4096): kmem_map too small: 62877696 totalallocated
> -----Original Message----- > From: owner-freebsd-stable@freebsd.org > [mailto:owner-freebsd-stable@freebsd.org] On Behalf Of Kris Kennaway > Sent: 12. juni 2005 03:40 > To: Tom Jensen > Cc: freebsd-stable@freebsd.org > Subject: Re: panic: kmem_malloc(4096): kmem_map too small: > 62877696 totalallocated > > On Sun, Jun 12, 2005 at 01:11:13AM +0200, Tom Jensen wrote: > > Got the following panic on a 5.4 box(i386): > > > > panic: kmem_malloc(4096): kmem_map too small: 62877696 > total allocated > > > > Uname: 5.4-RELEASE FreeBSD 5.4-RELEASE #4: Sun May 8 01:57:26 CEST > > 2005 > > > > Had two ntfs partitions mounted and was doing a find . > -name *.pst on > > one of them. > > > > Following info collected, but kernel dump aviable if more > information > > is needed. > > How much RAM in your system, and what is your kernel config? > This can be caused by two things: > > * A memory leak in FreeBSD > > * Incorrect tuning of your kernel memory parameters and > causing the kernel to run out of memory. > > Kris >RAM: real memory = 201326592 (192 MB) avail memory = 187273216 (178 MB) Havent done any kernel tuning and running with a mostly generic kernel (changes to GENERIC below): options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=400 options IPDIVERT device ath device ath_hal makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options KDB options DDB # Enable the kernel debugger options BREAK_TO_DEBUGGER options DEBUG_LOCKS - Tom