FreeBSD 5.2.1-RC2 panic: kmem_malloc(4096): kmem_map too small

From: Leroy van Logchem <freebsd-current.20.lvl_at_spamgourmet.com>
Date: Tue, 24 Feb 2004 13:44:54 +0100
Dear mailinglist,

Short:

I'am having panics while transfering alot of files using NFS (as client).

Long:

After succesfull synchronization of two complete filesystems using NFS 
v3 (udp) I restarted the ssync after couple of hours idle time and got:

panic: kmem_malloc(4096): kmem_map too small

Debugger at Debugger+0x55
panic at panic+0x156
kmem_malloc at kmem_malloc+0x100
page_alloc at page_alloc+0x27
slab_zalloc at slab_zalloc+0xb3
uma_zone_slab
uma_zalloc_bucket
uma_zalloc_arg
cache_enter
ufs_lookup
ufs_vnoperate
vfs_cache_lookup
ufs_vnoperate
lookup
namei
lstat
syscall(2f,2f,2f,bfbf8ae0,0) at syscall+02a0
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (190, FreeBSD ELF32, lstat),
eip = 0x280dc3cf,
esp = 0xbfbf88ec,
ebp = 0xbfbf8ec8 ---
db> c
boot() called on cpu#1
Dumping 4000MB...

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xea991735
stack pointer           = 0x10:0xea99173c
frame pointer           = 0x10:0xea991750
code segment            = base 0x0, limit 0xfffff, type 0x1b
                       = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 29590 (ssync)
kernel: type 12 trap, code=0
Stopped at      0xea991765:     addb    %al,0(%ecx)

- Machine specifications:
CPU: AMD Opteron(tm) Processor 244 (1791.75-MHz 686-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
6GB memory on-board, using only 4 GB.
twe0: <3ware 7000 series Storage Controller. Driver version 1.50.00.000>
twe0: 12 ports, Firmware FE7S 1.05.00.063, BIOS BE7X 1.08.00.048
twe1: <3ware 7000 series Storage Controller. Driver version 1.50.00.000>
twe1: 12 ports, Firmware FE7S 1.05.00.063, BIOS BE7X 1.08.00.048
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2003>

Sysctl changes:

< net.inet.tcp.sendspace: 65536
< net.inet.tcp.recvspace: 65536
 > net.inet.tcp.sendspace: 262144
 > net.inet.tcp.recvspace: 262144

- Full dmesg output:

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.2.1-RC2 #1: Fri Feb 20 12:41:46 CET 2004
   root_at_kingfish.wldelft.nl:/usr/obj/usr/src/sys/5.2-RELEASE.GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc09f3000.
MPTable: <TEMPLATE ETEMPLATE   >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Opteron(tm) Processor 244 (1791.75-MHz 686-class CPU)
 Origin = "AuthenticAMD"  Id = 0xf51  Stepping = 1
 
Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2> 

 AMD Features=0xe0500000<NX,AMIE,LM,DSP,3DNow!>

It keeps running for now ( 1 day ) with adjusted /boot/loader.conf
hw.physmem=1GB

real memory  = 1073741824 (1024 MB)
avail memory = 1033584640 (985 MB)

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID:  0
cpu1 (AP): APIC ID:  1
ioapic0: Assuming intbase of 0
ioapic1: Assuming intbase of 24
ioapic2: Assuming intbase of 28
ioapic0 <Version 1.1> irqs 0-23 on motherboard
ioapic1 <Version 1.1> irqs 24-27 on motherboard
ioapic2 <Version 1.1> irqs 28-31 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 15 entries at 0xc00f2720
pcib0: <MPTable Host-PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pcib0: slot 7 INTD routed to irq 19
pcib1: <MPTable PCI-PCI bridge> at device 6.0 on pci0
pci3: <PCI bus> on pcib1
pcib1: slot 6 INTA routed to irq 18
pci3: <display, VGA> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <AMD 8111 UDMA133 controller> port 0xffa0-0xffaf at device 7.1 
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0: <serial bus, SMBus> at device 7.2 (no driver attached)
pci0: <bridge, PCI-unknown> at device 7.3 (no driver attached)
pcib2: <MPTable PCI-PCI bridge> at device 10.0 on pci0
pci2: <PCI bus> on pcib2
pcib2: slot 2 INTA routed to irq 26
pcib2: slot 3 INTA routed to irq 27
pcib2: slot 9 INTA routed to irq 24
pcib2: slot 9 INTB routed to irq 25
twe0: <3ware 7000 series Storage Controller. Driver version 1.50.00.000> 
port 0x9c00-0x9c0f mem 0xfc000000-0xfc7fffff,0xfc8ff800-0xfc8ff80f irq 
26 at device 2.0 on pci2
twe0: 12 ports, Firmware FE7S 1.05.00.063, BIOS BE7X 1.08.00.048
twe1: <3ware 7000 series Storage Controller. Driver version 1.50.00.000> 
port 0x9880-0x988f mem 0xfb800000-0xfbffffff,0xfc8ffc00-0xfc8ffc0f irq 
27 at device 3.0 on pci2
twe1: 12 ports, Firmware FE7S 1.05.00.063, BIOS BE7X 1.08.00.048
bge0: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2003> mem 
0xfc890000-0xfc89ffff,0xfc8a0000-0xfc8affff irq 24 at device 9.0 on pci2
bge0: Ethernet address: 00:e0:81:27:de:79
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX-FDX, auto
bge1: <Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2003> mem 
0xfc8c0000-0xfc8cffff,0xfc8d0000-0xfc8dffff irq 25 at device 9.1 on pci2
bge1: Ethernet address: 00:e0:81:27:de:7a
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 
1000baseTX-FDX, auto
pci0: <base peripheral, interrupt controller> at device 10.1 (no driver 
attached)
pcib3: <PCIBIOS PCI-PCI bridge> at device 11.0 on pci0
pci1: <PCI bus> on pcib3
pci0: <base peripheral, interrupt controller> at device 11.1 (no driver 
attached)
orm0: <Option ROMs> at iomem 
0xc9800-0xca7ff,0xc8000-0xc8fff,0xc0000-0xc7fff on isa0
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 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 not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
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
unknown: <PNP0c01> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
Timecounters tick every 10.000 msec
GEOM: create disk ad0 dp=0xc6afb160
ad0: 38166MB <WDC WD400JB-00ENA0> [77545/16/63] at ata0-master UDMA100
GEOM: create disk ad1 dp=0xc6992e60
ad1: 38166MB <WDC WD400JB-00ENA0> [77545/16/63] at ata0-slave UDMA100
acd0: DVDROM <DV-28E-B> at ata1-slave PIO4
twed0: <Unit 0, RAID5, Normal> on twe0
twed0: 953896MB (1953580032 sectors)
GEOM: create disk twed0 dp=0xc6b41e8c
twed1: <Unit 6, RAID5, Normal> on twe0
twed1: 1192370MB (2441975040 sectors)
GEOM: create disk twed1 dp=0xc6b41d0c
twed2: <Unit 0, RAID5, Normal> on twe1
twed2: 953896MB (1953580032 sectors)
GEOM: create disk twed2 dp=0xc6b42a0c
twed3: <Unit 5, RAID5, Normal> on twe1
twed3: 1192370MB (2441975040 sectors)
GEOM: create disk twed3 dp=0xc6b4230c
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/twed0s1a


Best regards,
Leroy
Received on Tue Feb 24 2004 - 03:43:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:44 UTC