Date: Thu, 10 Oct 2002 17:55:17 -0400 (EDT) From: Robert Watson <rwatson@freebsd.org> To: Ben Stuyts <ben@stuyts.nl> Cc: current@freebsd.org Subject: Re: Again: panic kmem_malloc() Message-ID: <Pine.NEB.3.96L.1021010175350.39392C-100000@fledge.watson.org> In-Reply-To: <4.3.2.7.2.20021010213050.03645dd0@terminus>
next in thread | previous in thread | raw e-mail | index | archive | help
I've run into this on a couple of boxes, but those boxes were diskless root boxes, and used md backed ffs for /tmp and /var. Apparently if you do that, you're likely to exceed the kernel's auto-tuned kmem map size. That said, they didn't do it as frequently, so perhaps there's been a chance. A glance at the malloc buckets on the machine suggested that this wasn't a memory leak (the normal candidate in this sort of scenario). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories On Thu, 10 Oct 2002, Ben Stuyts wrote: > Hi, > > A couple of days ago I reported a panic, which I just got again: > > panic: kmem_malloc(4096): kmem_map too small: 28246016 total allocated. > > I don't know where to start looking for this, so I'd appreciate some help. > This is on a lightly loaded server. I've pasted the dmesg below. Latest > cvsup is oct 5. > > Thanks, > Ben > > Copyright (c) 1992-2002 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 5.0-CURRENT #5: Sun Oct 6 01:50:54 CEST 2002 > root@terminus.stuyts.nl:/var/obj/usr/src/sys/TERMINUS > Preloaded elf kernel "/boot/kernel/kernel" at 0xc04dc000. > Timecounter "i8254" frequency 1193182 Hz > Timecounter "TSC" frequency 233864867 Hz > CPU: Pentium II/Pentium II Xeon/Celeron (233.86-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x634 Stepping = 4 > Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX> > real memory = 67108864 (65536K bytes) > avail memory = 59920384 (58516K bytes) > Pentium Pro MTRR support enabled > npx0: <math processor> on motherboard > npx0: INT 16 interface > Using $PIR table, 6 entries at 0xc00fdc00 > pcib0: <Intel 82443LX (440 LX) host to PCI bridge> at pcibus 0 on motherboard > pci0: <PCI bus> on pcib0 > pcib1: <PCIBIOS PCI-PCI bridge> at device 1.0 on pci0 > pci1: <PCI bus> on pcib1 > isab0: <PCI-ISA bridge> at device 7.0 on pci0 > isa0: <ISA bus> on isab0 > atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on > pci0 > atapci0: Busmastering DMA not supported > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x6400-0x641f irq 11 > at device 7.2 on pci0 > usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0 > usb0: USB revision 1.0 > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached) > sym0: <875> port 0x6800-0x68ff mem > 0xe8000000-0xe8000fff,0xe8001000-0xe80010ff irq 12 at device 11.0 on pci0 > sym0: Symbios NVRAM, ID 7, Fast-20, SE, parity checking > sym0: open drain IRQ line driver, using on-chip SRAM > sym0: using LOAD/STORE-based firmware. > xl0: <3Com 3c905-TX Fast Etherlink XL> port 0x6c00-0x6c3f irq 9 at device > 13.0 on pci0 > /usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from > /usr/src/sys/pci/if_xl.c:1264 > /usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from > /usr/src/sys/pci/if_xl.c:1264 > lock order reversal > 1st 0xc0ba1bd4 xl0 (network driver) @ /usr/src/sys/pci/if_xl.c:1264 > 2nd 0xc03d2b00 allproc (allproc) @ /usr/src/sys/kern/kern_fork.c:318 > /usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from > /usr/src/sys/pci/if_xl.c:1264 > /usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from > /usr/src/sys/pci/if_xl.c:1264 > /usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from > /usr/src/sys/pci/if_xl.c:1264 > xl0: Ethernet address: 00:60:08:a5:d4:ff > miibus0: <MII bus> on xl0 > nsphy0: <DP83840 10/100 media interface> on miibus0 > nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > /usr/src/sys/vm/uma_core.c:1307: could sleep with "xl0" locked from > /usr/src/sys/pci/if_xl.c:647 > pci0: <display, VGA> at device 15.0 (no driver attached) > orm0: <Option ROMs> at iomem 0xc8000-0xcbfff,0xc0000-0xc7fff on isa0 > atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0 > atkbd0: <AT Keyboard> irq 1 on atkbdc0 > kbd0 at atkbd0 > fdc0: <enhanced floppy controller (i82077, NE72065 or clone)> at port > 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > lpt0: <Printer> on ppbus0 > lpt0: Interrupt-driven port > sc0: <System console> on isa0 > sc0: VGA <16 virtual consoles, flags=0x200> > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > sio1: type 16550A > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > unknown: <PNP0303> can't assign resources (port) > unknown: <PNP0501> can't assign resources (port) > unknown: <PNP0700> can't assign resources (port) > unknown: <PNP0400> can't assign resources (port) > unknown: <PNP0501> can't assign resources (port) > Timecounters tick every 10.000 msec > ipfw2 initialized, divert enabled, rule-based forwarding enabled, default > to deny, logging unlimited > Waiting 5 seconds for SCSI devices to settle > (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. > Mounting root from ufs:/dev/da0s1a > da2 at sym0 bus 0 target 3 lun 0 > da2: <QUANTUM FIREBALL_TM3200S 300N> Fixed Direct Access SCSI-2 device > da2: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled > da2: 3067MB (6281856 512 byte sectors: 255H 63S/T 391C) > da1 at sym0 bus 0 target 2 lun 0 > da1: <QUANTUM FIREBALL ST3.2S 0F0C> Fixed Direct Access SCSI-2 device > da1: 20.000MB/s transfers (20.000MHz, offset 15), Tagged Queueing Enabled > da1: 3090MB (6328861 512 byte sectors: 255H 63S/T 393C) > da0 at sym0 bus 0 target 1 lun 0 > da0: <IBM DCAS-34330W S61A> Fixed Direct Access SCSI-2 device > da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) > da0: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C) > WARNING: / was not properly dismounted > cd0 at sym0 bus 0 target 4 lun 0 > cd0: <PLEXTOR CD-ROM PX-32TS 1.03> Removable CD-ROM SCSI-2 device > cd0: 20.000MB/s transfers (20.000MHz, offset 15) > cd0: Attempt to query device size failed: NOT READY, Medium not present > WARNING: /usr was not properly dismounted > WARNING: /var was not properly dismounted > /var: mount pending error: blocks 2 files 1 > /var: superblock summary recomputed > acquiring duplicate lock of same type: "inp" > 1st inp @ /usr/src/sys/netinet/udp_usrreq.c:288 > 2nd inp @ /usr/src/sys/netinet/udp_usrreq.c:288 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1021010175350.39392C-100000>