Powerd: Adaptive mode causing a hard hang

Scot Hetzel swhetzel at gmail.com
Sat Jun 17 13:43:12 UTC 2006


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 at 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.
-------------- next part --------------
Copyright (c) 1992-2006 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 6.1-STABLE #0: Thu Jun 15 23:41:47 CDT 2006
    root at 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 = "AuthenticAMD"  Id = 0x20f42  Stepping = 2
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow>
  AMD Features2=0x1<LAHF>
real memory  = 1072300032 (1022 MB)
avail memory = 1021259776 (973 MB)
ACPI APIC Table: <PTLTD  	 APIC  >
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 2.1> irqs 0-23 on motherboard
acpi0: <PTLTD   RSDT> 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: <Embedded Controller: GPE 0x1a> port 0x62,0x66 on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
powernow0: <PowerNow! K8> on cpu0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 5.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci2: <ACPI PCI bus> on pcib2
ohci0: <ATI SB400 USB Controller> mem 0xc0000000-0xc0000fff irq 19 at device 19.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <ATI SB400 USB Controller> 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: <ATI SB400 USB Controller> mem 0xc0001000-0xc0001fff irq 19 at device 19.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <ATI SB400 USB Controller> 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: <ATI SB400 USB 2.0 controller> mem 0xc0002000-0xc0002fff irq 19 at device 19.2 on pci0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2: <ATI SB400 USB 2.0 controller> 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: <SMBus controller> port 0x8400-0x840f mem 0xc0003000-0xc00033ff at device 20.0 on pci0
device_attach: ichsmb0 attach returned 6
atapci0: <ATI IXP400 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8410-0x841f irq 16 at device 20.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib3: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci6: <ACPI PCI bus> on pcib3
ndis0: <Broadcom 802.11g Network Adapter> 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: <PCI-CardBus Bridge> mem 0xc0208000-0xc0208fff irq 20 at device 4.0 on pci6
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <1394 Open Host Controller Interface> mem 0xc0209000-0xc02097ff,0xc0200000-0xc0203fff irq 23 at device 4.2 on pci6
fwohci0: OHCI version 1.10 (ROM=0)
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: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> 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: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
fwohci0: phy int
pci6: <mass storage> at device 4.3 (no driver attached)
pci6: <base peripheral> at device 4.4 (no driver attached)
rl0: <RealTek 8139 10/100BaseTX> port 0xa000-0xa0ff mem 0xc020a400-0xc020a4ff irq 22 at device 6.0 on pci6
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:0f:b0:f5:b1:7c
pcm0: <ATI IXP 400> mem 0xc0003400-0xc00034ff irq 17 at device 20.5 on pci0
pci0: <simple comms, generic modem> at device 20.6 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd5fff,0xd7800-0xd7fff,0xd8000-0xd8fff on isa0
ppc0: cannot reserve I/O port range
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
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 <FUJITSU MHV2100AT PL 008300A1> at ata0-master UDMA100
ad1: 95396MB <FUJITSU MHV2100AT PL 008300A1> at ata0-slave UDMA100
acd0: DVDR <TSSTcorpCD/DVDW TS-L532M/HR08> at ata1-master PIO4
pcm0: <Conexant CX20468-21 AC97 Codec>
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <LEXAR JD TRAVELER 1000> Removable Direct Access SCSI-0 device 
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





-------------- next part --------------
include GENERIC

ident		GENERIC-debug

makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
makeoptions	KODIR=/boot/${KERNEL}_debug

# Debugging for use in -current
options 	KDB			# Enable kernel debugger support.
options 	DDB			# Support DDB.
options 	GDB			# Support remote GDB.
options 	INVARIANTS		# Enable calls of extra sanity checking
options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
options 	WITNESS			# Enable checks to detect deadlocks and cycles
options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed





-------------- next part --------------
kernel="kernel_debug"
loader_logo="beastie"
#boot_verbose="YES"
#
cpufreq_load="YES"
#
radeon_load="YES"
#
bcmwl564_sys_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
wlan_wep_load="YES"
#
sound_load="YES"
snd_atiixp_load="YES"
ichsmb_load="YES"
#
#vesa_load="YES"
#splash_bmp_load="YES"
#bitmap_load="YES"
#bitmap_name="/boot/splash/daemon_freebsd-300x200.bmp"
#bitmap_name="/boot/splash/daemon_freebsd-1.bmp"
#bitmap_name="/boot/splash/daemon_freebsd-2.bmp"
#bitmap_name="/boot/splash/emily_black_1024.bmp"
#
#splash_pcx_load="YES"
#vesa_load="YES"
#bitmap_load="YES"
#bitmap_name="/boot/chuck.pcx"





-------------- next part --------------
blanktime="300"
defaultrouter="192.168.0.1"
dumpdev="/dev/ad0s3b"
hostname="hp010.hetzels.org"
inetd_enable="YES"
ifconfig_rl0="inet 192.168.0.10 netmask 255.255.255.0"
#ifconfig_ndis0="WPA DHCP"
#ifconfig_ndis0="DHCP"
#ipv6_enable="YES"
sshd_enable="YES"
#nfs_client_enable="YES"
#nfs_server_enable="YES"
moused_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
mountd_enable="YES"
powerd_enable="YES"
powerd_flags="-a maximum -b minimum"
#rpc_lockd_enable="YES"
#rpc_statd_enable="YES"
#rpcbind_enable="YES"
#saver="green"
sendmail_enable="NO"







More information about the freebsd-stable mailing list