Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2005 10:03:48 -0800 (PST)
From:      Michael Haro <mharo@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/75755: kmem_malloc(45056): kmem_map too small: 335540224 total allocated
Message-ID:  <200501031803.j03I3mi8004701@mx2.ceres.ca.gov>
Resent-Message-ID: <200501031810.j03IANKA060847@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         75755
>Category:       kern
>Synopsis:       kmem_malloc(45056): kmem_map too small: 335540224 total allocated
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 03 18:10:23 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Michael Haro
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD mx2 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sat Nov 6 20:20:12 PST 2004 root@mx2:/usr/obj/usr/src/sys/SMP i386

Model: Dell PowerEdge 1750

dmesg:
Copyright (c) 1992-2004 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.3-RELEASE #0: Sat Nov  6 20:20:12 PST 2004
    root@mx2.ceres.ca.gov:/usr/obj/usr/src/sys/SMP
ACPI APIC Table: <DELL   PE1750  >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2788.00-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 4026363904 (3839 MB)
avail memory = 3941834752 (3759 MB)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  6
 cpu3 (AP): APIC ID:  7
ioapic0: Changing APIC ID to 8
ioapic1: Changing APIC ID to 9
ioapic2: Changing APIC ID to 10
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic2 <Version 1.1> irqs 32-47 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL PE1750> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <display, VGA> at device 14.0 (no driver attached)
atapci0: <ServerWorks CSB5 UDMA100 controller> port 0x8b0-0x8bf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
ohci0: <OHCI (generic) USB controller> mem 0xfe100000-0xfe100fff irq 11 at device 15.2 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
isab0: <PCI-ISA bridge> at device 15.3 on pci0
isa0: <ISA bus> on isab0
pcib1: <ACPI Host-PCI bridge> on acpi0
pci4: <ACPI PCI bus> on pcib1
amr0: <LSILogic MegaRAID> mem 0xfcd00000-0xfcd3ffff,0xf0000000-0xf7ffffff irq 18 at device 3.0 on pci4
amr0: [GIANT-LOCKED]
amr0: <LSILogic PERC 4/Di> Firmware 412W, BIOS H406, 128MB RAM
pcib2: <ACPI Host-PCI bridge> on acpi0
pci3: <ACPI PCI bus> on pcib2
pcib3: <ACPI Host-PCI bridge> on acpi0
pci2: <ACPI PCI bus> on pcib3
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002> mem 0xfcf20000-0xfcf2ffff,0xfcf30000-0xfcf3ffff irq 16 at device 0.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge0: Ethernet address: 00:0f:1f:68:2b:a1
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002> mem 0xfcf00000-0xfcf0ffff,0xfcf10000-0xfcf1ffff irq 17 at device 0.1 on pci2
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto
bge1: Ethernet address: 00:0f:1f:68:2b:a2
pcib4: <ACPI Host-PCI bridge> on acpi0
pci1: <ACPI PCI bus> on pcib4
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
orm0: <ISA Option ROMs> at iomem 0xec000-0xeffff,0xcb800-0xccfff,0xc8000-0xc8fff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
acd0: CDROM <TEAC CD-ROM CD-224E/K.9A> at ata1-master UDMA33
amrd0: <LSILogic MegaRAID logical drive> on amr0
amrd0: 34680MB (71024640 sectors) RAID 1 (optimal)
ses0 at amr0 bus 0 target 6 lun 0
ses0: <PE/PV 1x3 SCSI BP 1.1> Fixed Processor SCSI-2 device
ses0: SAF-TE Compliant Device

>Description:


Good dump found on device /dev/amrd0s1b
  Architecture: i386
  Architecture version: 1
  Dump length: 4026363904B (3839 MB)
  Blocksize: 512
  Dumptime: Mon Jan  3 04:15:20 2005
  Hostname: mx2
  Versionstring: FreeBSD 5.3-RELEASE #0: Sat Nov  6 20:20:12 PST 2004
    root@mx2:/usr/obj/usr/src/sys/SMP
  Panicstring: kmem_malloc(45056): kmem_map too small: 335540224 total allocated
  Bounds: 0

[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".
(no debugging symbols found)...0xc06766cc in doadump ()
(kgdb) bt
#0  0xc06766cc in doadump ()
#1  0xc0676d9c in boot ()
#2  0xc0677194 in panic ()
#3  0xc0817a6b in kmem_malloc ()
#4  0xc082b147 in page_alloc ()
#5  0xc082de32 in uma_large_malloc ()
#6  0xc06699de in malloc ()
#7  0xc06534b5 in kqueue_expand ()
#8  0xc06529c7 in kqueue_register ()
#9  0xc065225e in kevent ()
#10 0xc0883560 in syscall ()
#11 0xc086d49f in Xint0x80_syscall ()
#12 0x0000002f in ?? ()
#13 0x0000002f in ?? ()
#14 0x0805002f in ?? ()
#15 0xbfbfdc38 in ?? ()
#16 0x08056000 in ?? ()
#17 0xbfbfdbb8 in ?? ()
#18 0xf41fcd74 in ?? ()
#19 0x2812d6b4 in ?? ()
#20 0x2a1266a8 in ?? ()
#21 0x08056000 in ?? ()
#22 0x0000016b in ?? ()
#23 0x00000016 in ?? ()
#24 0x00000002 in ?? ()
#25 0x28187aef in ?? ()
#26 0x0000001f in ?? ()
#27 0x00000286 in ?? ()
#28 0xbfbfdb7c in ?? ()
#29 0x0000002f in ?? ()
#30 0x00000000 in ?? ()
#31 0x00000000 in ?? ()
#32 0x00000000 in ?? ()
#33 0x00000000 in ?? ()
#34 0xa90ed000 in ?? ()
#35 0xc5ea0388 in ?? ()
#36 0xc5c7caf0 in ?? ()
#37 0xf41fcad0 in ?? ()
#38 0xf41fcab4 in ?? ()
#39 0xc55d0000 in ?? ()
#40 0xc068b6c0 in sched_switch ()
Previous frame inner to this frame (corrupt stack?)


>How-To-Repeat:

Not sure. This is the first occurance.  System was up for over 40 days.

I did see a few other PRs with similar issues, but none of them had a
solution that all the PRs agreed on.

>Fix:

Unknown.  One PR said
options VM_KMEM_SIZE_MAX=419430400
decreased KMEM space.  Another comment said that it increased it and thus
was incorrect.


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501031803.j03I3mi8004701>