Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2006 08:43:07 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        FreeBSD-Stable@FreeBSD.org
Subject:   Powerd: Adaptive mode causing a hard hang
Message-ID:  <790a9fff0606170643i318e7348l23e702dd18cd3fed@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
------=_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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=3D0x1<SSE3>
  AMD Features=3D0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow+,3DNow>
  AMD Features2=3D0x1<LAHF>
real memory  =3D 1072300032 (1022 MB)
avail memory =3D 1021259776 (973 MB)
ACPI APIC Table: <PTLTD  =09 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 devic=
e 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 devic=
e 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 d=
evice 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 o=
n pci6
cardbus0: <CardBus bus> 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: <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=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: <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-0xc020a4=
ff 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-0x=
d7fff,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=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: <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=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--



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