From owner-freebsd-stable@FreeBSD.ORG Sat Jun 17 13:43:12 2006 Return-Path: X-Original-To: FreeBSD-Stable@FreeBSD.org Delivered-To: FreeBSD-Stable@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C84A716A474 for ; Sat, 17 Jun 2006 13:43:12 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB21843D45 for ; Sat, 17 Jun 2006 13:43:11 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by wx-out-0102.google.com with SMTP id t4so570345wxc for ; Sat, 17 Jun 2006 06:43:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=F3FormLseiNkdWi+9p+p2QaXQVs/7nclCiG/kdnE8fB5V+1OaK4ccxTptObYFgf3Jil7McS5tmbmJv9VSi7J3xlM5zpKkDIJdhW5Oydq+43Y1cxftSbtySLHYkTtQJ2mPdm3SLBlo7weY3aCVhye36Izs3iKKTN17xgb9T0qHEg= Received: by 10.70.73.4 with SMTP id v4mr5613543wxa; Sat, 17 Jun 2006 06:43:08 -0700 (PDT) Received: by 10.70.54.4 with HTTP; Sat, 17 Jun 2006 06:43:07 -0700 (PDT) Message-ID: <790a9fff0606170643i318e7348l23e702dd18cd3fed@mail.gmail.com> Date: Sat, 17 Jun 2006 08:43:07 -0500 From: "Scot Hetzel" To: FreeBSD-Stable@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_70478_5567718.1150551787743" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Powerd: Adaptive mode causing a hard hang X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jun 2006 13:43:12 -0000 ------=_Part_70478_5567718.1150551787743 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I noticed a problem where my system would hard hang when powerd was enabled with no changes to the powerd flags in rc.conf. Yesterday, I tracked the problem down to powerd's Adaptive mode causing the hard hang. I first noticed the problem, when I was trying to transfer /usr/ports, /usr/src and /home/ncvs via nfs to my HP Pavilion dv8xxx laptop. Later I found that I could cause the system to hang when extracting cvs-cur CTMs. mkdir /home/ncvs cd /home/ncvs ctm /mnt/CTM/*.gz Note: the CTM directory contaings: cvs-cur.12200xEmpty.gz cvs-cur.12201.gz thru cvs-cur.12433.gz If I disabled powerd, or changed the powerd_flags to "-a maximum -b minimum", then this system wouldn't hang when extracting the CTM archives. Attached are the dmesg output, kernel configuration, loader.conf, rc.conf, and the output of powerd -v when the system would hang. I built a debug kernel, but I couldn't break into the debugger with ctl-alt-esc. Note: GENERIC.debug includes the default GENERIC configuration (hasn't been modified). The system is running FreeBSD 6.1-Stable/amd64 FreeBSD 6.1-STABLE #0: Thu Jun 15 23:41:47 CDT 2006 root@hp010.hetzels.org:/usr/obj/usr/src/6x/sys/GENERIC.debug WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 Mobile Technology ML-37 (797.69-MHz K8-class CPU) Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised. ------=_Part_70478_5567718.1150551787743 Content-Type: text/plain; name=dmesg.txt; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Attachment-Id: f_eok052o7 Content-Disposition: attachment; filename="dmesg.txt" Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 =09The Regents of the University of California. All rights reserved. FreeBSD 6.1-STABLE #0: Thu Jun 15 23:41:47 CDT 2006 root@hp010.hetzels.org:/usr/obj/usr/src/6x/sys/GENERIC.debug WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Turion(tm) 64 Mobile Technology ML-37 (797.69-MHz K8-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x20f42 Stepping =3D 2 Features=3D0x78bfbff Features2=3D0x1 AMD Features=3D0xe2500800 AMD Features2=3D0x1 real memory =3D 1072300032 (1022 MB) avail memory =3D 1021259776 (973 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) unknown: I/O range not supported Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 powernow0: on cpu0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) pcib2: at device 4.0 on pci0 pci2: on pcib2 ohci0: mem 0xc0000000-0xc0000fff irq 19 at devic= e 19.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xc0001000-0xc0001fff irq 19 at devic= e 19.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 4 ports with 4 removable, self powered ehci0: mem 0xc0002000-0xc0002fff irq 19 at d= evice 19.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 8 ports with 8 removable, self powered umass0: LEXAR MEDIA JUMPDRIVE TRAVELER, rev 2.00/20.00, addr 2 ichsmb0: port 0x8400-0x840f mem 0xc0003000-0xc00033ff at= device 20.0 on pci0 device_attach: ichsmb0 attach returned 6 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177= ,0x376,0x8410-0x841f irq 16 at device 20.1 on pci0 ata0: on atapci0 ata1: on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib3: at device 20.4 on pci0 pci6: on pcib3 ndis0: mem 0xc0204000-0xc0205fff irq 21 = at device 2.0 on pci6 ndis0: NDIS API version: 5.1 fpudna in kernel mode! ndis0: Ethernet address: 00:14:a5:72:68:64 cbb0: mem 0xc0208000-0xc0208fff irq 20 at device 4.0 o= n pci6 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 fwohci0: <1394 Open Host Controller Interface> mem 0xc0209000-0xc02097ff,0x= c0200000-0xc0203fff irq 23 at device 4.2 on pci6 fwohci0: OHCI version 1.10 (ROM=3D0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 62:3f:02:00:01:52:40:7a fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 62:3f:02:52:40:7a fwe0: Ethernet address: 62:3f:02:52:40:7a fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=3D0xc800ffc0, gen=3D2, CYCLEMASTER mode firewire0: 1 nodes, maxhop <=3D 0, cable IRM =3D 0 (me) firewire0: bus manager 0 (me) fwohci0: phy int pci6: at device 4.3 (no driver attached) pci6: at device 4.4 (no driver attached) rl0: port 0xa000-0xa0ff mem 0xc020a400-0xc020a4= ff irq 22 at device 6.0 on pci6 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:0f:b0:f5:b1:7c pcm0: mem 0xc0003400-0xc00034ff irq 17 at device 20.5 on pci0 pci0: at device 20.6 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse, device ID 3 battery0: on acpi0 acpi_acad0: on acpi0 orm0: at iomem 0xc0000-0xcffff,0xd0000-0xd5fff,0xd7800-0x= d7fff,0xd8000-0xd8fff on isa0 ppc0: cannot reserve I/O port range sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x300> 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 797685606 Hz quality 800 Timecounters tick every 1.000 msec module_register_init: MOD_LOAD (amr_linux, 0xffffffff80614db0, 0) error 6 ad0: 95396MB at ata0-master UDMA100 ad1: 95396MB at ata0-slave UDMA100 acd0: DVDR at ata1-master PIO4 pcm0: da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device=20 da0: 40.000MB/s transfers da0: 989MB (2026592 512 byte sectors: 64H 32S/T 989C) Trying to mount root from ufs:/dev/ad0s3a mountmsdosfs(): bad FAT32 filesystem ------=_Part_70478_5567718.1150551787743 Content-Type: text/plain; name=GENERIC.debug; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Attachment-Id: f_eok05h8y Content-Disposition: attachment; filename="GENERIC.debug" include GENERIC ident=09=09GENERIC-debug makeoptions=09DEBUG=3D-g=09=09# Build kernel with gdb(1) debug symbols makeoptions=09KODIR=3D/boot/${KERNEL}_debug # Debugging for use in -current options =09KDB=09=09=09# Enable kernel debugger support. options =09DDB=09=09=09# Support DDB. options =09GDB=09=09=09# Support remote GDB. options =09INVARIANTS=09=09# Enable calls of extra sanity checking options =09INVARIANT_SUPPORT=09# Extra sanity checks of internal structures= , required by INVARIANTS options =09WITNESS=09=09=09# Enable checks to detect deadlocks and cycles options =09WITNESS_SKIPSPIN=09# Don't run witness on spinlocks for speed ------=_Part_70478_5567718.1150551787743 Content-Type: text/plain; name=loader.conf; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Attachment-Id: f_eok05k9g Content-Disposition: attachment; filename="loader.conf" kernel=3D"kernel_debug" loader_logo=3D"beastie" #boot_verbose=3D"YES" # cpufreq_load=3D"YES" # radeon_load=3D"YES" # bcmwl564_sys_load=3D"YES" wlan_ccmp_load=3D"YES" wlan_tkip_load=3D"YES" wlan_wep_load=3D"YES" # sound_load=3D"YES" snd_atiixp_load=3D"YES" ichsmb_load=3D"YES" # #vesa_load=3D"YES" #splash_bmp_load=3D"YES" #bitmap_load=3D"YES" #bitmap_name=3D"/boot/splash/daemon_freebsd-300x200.bmp" #bitmap_name=3D"/boot/splash/daemon_freebsd-1.bmp" #bitmap_name=3D"/boot/splash/daemon_freebsd-2.bmp" #bitmap_name=3D"/boot/splash/emily_black_1024.bmp" # #splash_pcx_load=3D"YES" #vesa_load=3D"YES" #bitmap_load=3D"YES" #bitmap_name=3D"/boot/chuck.pcx" ------=_Part_70478_5567718.1150551787743 Content-Type: text/plain; name=rc.conf; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Attachment-Id: f_eok05n9j Content-Disposition: attachment; filename="rc.conf" blanktime=3D"300" defaultrouter=3D"192.168.0.1" dumpdev=3D"/dev/ad0s3b" hostname=3D"hp010.hetzels.org" inetd_enable=3D"YES" ifconfig_rl0=3D"inet 192.168.0.10 netmask 255.255.255.0" #ifconfig_ndis0=3D"WPA DHCP" #ifconfig_ndis0=3D"DHCP" #ipv6_enable=3D"YES" sshd_enable=3D"YES" #nfs_client_enable=3D"YES" #nfs_server_enable=3D"YES" moused_enable=3D"YES" moused_port=3D"/dev/psm0" moused_type=3D"auto" mountd_enable=3D"YES" powerd_enable=3D"YES" powerd_flags=3D"-a maximum -b minimum" #rpc_lockd_enable=3D"YES" #rpc_statd_enable=3D"YES" #rpcbind_enable=3D"YES" #saver=3D"green" sendmail_enable=3D"NO" ------=_Part_70478_5567718.1150551787743--