From owner-freebsd-i386@FreeBSD.ORG Tue Nov 2 19:40:12 2010 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E63E106566C for ; Tue, 2 Nov 2010 19:40:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A3F18FC1B for ; Tue, 2 Nov 2010 19:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oA2JeCUr076824 for ; Tue, 2 Nov 2010 19:40:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oA2JeCVW076823; Tue, 2 Nov 2010 19:40:12 GMT (envelope-from gnats) Resent-Date: Tue, 2 Nov 2010 19:40:12 GMT Resent-Message-Id: <201011021940.oA2JeCVW076823@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Karl-Heinz Wild Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4697C106566B for ; Tue, 2 Nov 2010 19:31:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 344BA8FC16 for ; Tue, 2 Nov 2010 19:31:51 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id oA2JVoN8001861 for ; Tue, 2 Nov 2010 19:31:50 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id oA2JVoIG001860; Tue, 2 Nov 2010 19:31:50 GMT (envelope-from nobody) Message-Id: <201011021931.oA2JVoIG001860@www.freebsd.org> Date: Tue, 2 Nov 2010 19:31:50 GMT From: Karl-Heinz Wild To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: i386/151896: increasing kmem_size in loader.conf panic X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2010 19:40:12 -0000 >Number: 151896 >Category: i386 >Synopsis: increasing kmem_size in loader.conf panic >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 02 19:40:11 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Karl-Heinz Wild >Release: 8.1, -current >Organization: barga.com >Environment: FreeBSD pool.barga.com 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Sun Oct 31 16:21:25 CET 2010 root@pool.barga.com:/usr/obj/usr/src/sys/PAE i386 >Description: We are running a Intel Xeon E5520 @ 2.27 machine with an 3ware controller do serve 5.7 TG storage ofer zfs. When running the server with the given 16 GB Ram we are unable do increase inside the loader.conf the settings vm.kmem_size and vm.kmem_size_max over 320MB. After trying lots of values change the memory banks because of a possible ram error without success. Then we removed 8GB and afterwards it was possible to extend the kmem_size to 512MB. >How-To-Repeat: Running -Current from 29.Oct 2010 with PAE on a system with 16GB Memory, an 3ware Raid controller and PAE config: KVM_PAGES 512 loader.conf: vm.kmem_size="512M" >Fix: Patch attached with submission follows: Copyright (c) 1992-2010 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 9.0-CURRENT #2: Sun Oct 31 16:21:25 CET 2010 root@pool.barga.com:/usr/obj/usr/src/sys/PAE i386 WARNING: WITNESS option enabled, expect reduced performance. CPU: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz (2266.79-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x106a5 Family = 6 Model = 1a Stepping = 5 Features=0xbfebfbff Features2=0x9ce3bd AMD Features=0x28100000 AMD Features2=0x1 TSC: P-state invariant real memory = 8594128896 (8196 MB) avail memory = 8379068416 (7990 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <100709 APIC2139> FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs FreeBSD/SMP: 2 package(s) x 4 core(s) x 2 SMT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 cpu8 (AP): APIC ID: 16 cpu9 (AP): APIC ID: 17 cpu10 (AP): APIC ID: 18 cpu11 (AP): APIC ID: 19 cpu12 (AP): APIC ID: 20 cpu13 (AP): APIC ID: 21 cpu14 (AP): APIC ID: 22 cpu15 (AP): APIC ID: 23 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-47 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 ACPI Warning: Incorrect checksum in table [OEMB] - 0xDF, should be 0xDC (20101013/tbutils-354) cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 cpu4: on acpi0 cpu5: on acpi0 cpu6: on acpi0 cpu7: on acpi0 cpu8: on acpi0 cpu9: on acpi0 cpu10: on acpi0 cpu11: on acpi0 cpu12: on acpi0 cpu13: on acpi0 cpu14: on acpi0 cpu15: on acpi0 pcib0: port 0xcf8-0xcff iomem 0xfed40000-0xfed44fff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib2: at device 3.0 on pci0 pci2: on pcib2 pcib3: at device 7.0 on pci0 pci3: on pcib3 aac0: mem 0xfba00000-0xfbbfffff irq 30 at device 0.0 on pci3 aac0: Enabling 64-bit address support aac0: Enable Raw I/O aac0: Enable 64-bit array aac0: New comm. interface enabled aac0: Adaptec 5805, aac driver 2.1.9-1 aacp0: on aac0 aacp1: on aac0 aacp2: on aac0 pcib4: at device 9.0 on pci0 pci4: on pcib4 pci0: at device 20.0 (no driver attached) pci0: at device 20.1 (no driver attached) pci0: at device 20.2 (no driver attached) pci0: at device 20.3 (no driver attached) pci0: at device 22.0 (no driver attached) pci0: at device 22.1 (no driver attached) pci0: at device 22.2 (no driver attached) pci0: at device 22.3 (no driver attached) pci0: at device 22.4 (no driver attached) pci0: at device 22.5 (no driver attached) pci0: at device 22.6 (no driver attached) pci0: at device 22.7 (no driver attached) uhci0: port 0xbc00-0xbc1f irq 16 at device 26.0 on pci0 uhci0: LegSup = 0x2f00 usbus0: on uhci0 uhci1: port 0xb880-0xb89f irq 21 at device 26.1 on pci0 uhci1: LegSup = 0x2f00 usbus1: on uhci1 uhci2: port 0xb800-0xb81f irq 19 at device 26.2 on pci0 uhci2: LegSup = 0x2f00 usbus2: on uhci2 ehci0: mem 0xfbeda000-0xfbeda3ff irq 18 at device 26.7 on pci0 usbus3: EHCI version 1.0 usbus3: on ehci0 pci0: at device 27.0 (no driver attached) pcib5: irq 17 at device 28.0 on pci0 pci5: on pcib5 pcib6: irq 17 at device 28.4 on pci0 pci6: on pcib6 em0: port 0xcc00-0xcc1f mem 0xfbce0000-0xfbcfffff,0xfbcdc000-0xfbcdffff irq 16 at device 0.0 on pci6 em0: Using MSIX interrupts with 3 vectors em0: Ethernet address: 00:30:48:9e:d7:70 pcib7: irq 16 at device 28.5 on pci0 pci7: on pcib7 em1: port 0xdc00-0xdc1f mem 0xfbde0000-0xfbdfffff,0xfbddc000-0xfbddffff irq 17 at device 0.0 on pci7 em1: Using MSIX interrupts with 3 vectors em1: Ethernet address: 00:30:48:9e:d7:71 uhci3: port 0xb480-0xb49f irq 23 at device 29.0 on pci0 uhci3: LegSup = 0x2f00 usbus4: on uhci3 uhci4: port 0xb400-0xb41f irq 19 at device 29.1 on pci0 uhci4: LegSup = 0x2f00 usbus5: on uhci4 uhci5: port 0xb080-0xb09f irq 18 at device 29.2 on pci0 uhci5: LegSup = 0x2f00 usbus6: on uhci5 ehci1: mem 0xfbed8000-0xfbed83ff irq 23 at device 29.7 on pci0 usbus7: EHCI version 1.0 usbus7: on ehci1 pcib8: at device 30.0 on pci0 pci8: on pcib8 vgapci0: mem 0xf8000000-0xf8ffffff,0xfaffc000-0xfaffffff,0xfb000000-0xfb7fffff irq 18 at device 1.0 on pci8 twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0xec00-0xec0f mem 0xf9fee000-0xf9fee00f,0xfa000000-0xfa7fffff irq 17 at device 4.0 on pci8 twe0: [GIANT-LOCKED] twe0: 2 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048 isab0: at device 31.0 on pci0 isa0: on isab0 pci0: at device 31.3 (no driver attached) acpi_button0: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 Event timer "HPET" frequency 14318180 Hz quality 450 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 Event timer "HPET3" frequency 14318180 Hz quality 440 qpi0: on motherboard pcib9: pcibus 255 on qpi0 pci255: on pcib9 pcib10: pcibus 254 on qpi0 pci254: on pcib10 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9800-0xcffff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata1 at port 0x170-0x177,0x376 irq 15 on isa0 ppc0: parallel port not found. est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 est2: on cpu2 p4tcc2: on cpu2 est3: on cpu3 p4tcc3: on cpu3 est4: on cpu4 p4tcc4: on cpu4 est5: on cpu5 p4tcc5: on cpu5 est6: on cpu6 p4tcc6: on cpu6 est7: on cpu7 p4tcc7: on cpu7 est8: on cpu8 p4tcc8: on cpu8 est9: on cpu9 p4tcc9: on cpu9 est10: on cpu10 p4tcc10: on cpu10 est11: on cpu11 p4tcc11: on cpu11 est12: on cpu12 p4tcc12: on cpu12 est13: on cpu13 p4tcc13: on cpu13 est14: on cpu14 p4tcc14: on cpu14 est15: on cpu15 p4tcc15: on cpu15 Timecounters tick every 1.000 msec aacd0: on aac0 aacd0: 5720064MB (11714691072 sectors) twed0: on twe0 twed0: 38165MB (78163312 sectors) usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 ugen7.1: at usbus7 uhub7: on usbus7 GEOM: aacd0: partition 1 does not end on a track boundary. uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub6: 2 ports with 2 removable, self powered uhub3: 6 ports with 6 removable, self powered uhub7: 6 ports with 6 removable, self powered ses0 at aacp2 bus 0 scbus2 target 0 lun 0 ses0: Fixed Enclosure Services SCSI-5 device ses0: 3.300MB/s transfers ses0: SCSI-3 SES Device ses1 at aacp2 bus 0 scbus2 target 1 lun 0 ses1: Fixed Enclosure Services SCSI-5 device ses1: 3.300MB/s transfers ses1: SCSI-3 SES Device pass0 at aacp0 bus 0 scbus0 target 0 lun 0 pass0: Fixed Uninstalled SCSI-5 device pass0: 3.300MB/s transfers pass1 at aacp0 bus 0 scbus0 target 1 lun 0 pass1: Fixed Uninstalled SCSI-5 device pass1: 3.300MB/s transfers pass2 at aacp0 bus 0 scbus0 target 2 lun 0 pass2: Fixed Uninstalled SCSI-5 device pass2: 3.300MB/s transfers pass3 at aacp0 bus 0 scbus0 target 3 lun 0 pass3: Fixed Uninstalled SCSI-5 device pass3: 3.300MB/s transfers pass4 at aacp0 bus 0 scbus0 target 4 lun 0 pass4: Fixed Uninstalled SCSI-5 device pass4: 3.300MB/s transfers pass5 at aacp0 bus 0 scbus0 target 5 lun 0 pass5: Fixed Uninstalled SCSI-5 device pass5: 3.300MB/s transfers pass6 at aacp0 bus 0 scbus0 target 6 lun 0 pass6: Fixed Uninstalled SCSI-5 device pass6: 3.300MB/s transfers pass7 at aacp0 bus 0 scbus0 target 7 lun 0 pass7: Fixed Uninstalled SCSI-5 device pass7: 3.300MB/s transfers SMP: AP CPU #6 Launched! SMP: AP CPU #12 Launched! SMP: AP CPU #7 Launched! SMP: AP CPU #8 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #14 Launched! SMP: AP CPU #4 Launched! SMP: AP CPU #11 Launched! SMP: AP CPU #5 Launched! SMP: AP CPU #9 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #15 Launched! SMP: AP CPU #2 Launched! SMP: AP CPU #10 Launched! SMP: AP CPU #13 Launched! WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/twed0s1a [rw]... ZFS filesystem version 4 ZFS storage pool version 15 ugen1.2: at usbus1 ums0: on usbus1 ums0: 3 buttons and [XYZ] coordinates ID=0 ukbd0: on usbus1 kbd2 at ukbd0 lock order reversal: 1st 0xee747914 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2659 2nd 0xd1007400 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:284 em0: link state changed to UP >Release-Note: >Audit-Trail: >Unformatted: