From owner-freebsd-users-jp@FreeBSD.ORG Mon Jun 30 23:14:26 2014 Return-Path: Delivered-To: freebsd-users-jp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4473571 for ; Mon, 30 Jun 2014 23:14:26 +0000 (UTC) Received: from flu.if0.org (x239189.ppp.asahi-net.or.jp [122.249.239.189]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CABE20BD for ; Mon, 30 Jun 2014 23:14:25 +0000 (UTC) Received: from localhost (localhost.if0.org [127.0.0.1]) by flu.if0.org (8.14.9/8.14.5) with ESMTP id s5UN6WN4067495 for ; Tue, 1 Jul 2014 08:06:32 +0900 (JST) (envelope-from ka@flu.if0.org) X-Authentication-Warning: flu.if0.org: Host localhost.if0.org [127.0.0.1] claimed to be localhost Date: Tue, 01 Jul 2014 08:06:32 +0900 (JST) Message-Id: <20140701.080632.55501188.ka@flu.if0.org> To: freebsd-users-jp@freebsd.org From: Kazumaro Aoki X-Mailer: Mew version 6.6 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Jul__1_08_06_32_2014_013)--" Content-Transfer-Encoding: 7bit Subject: [FreeBSD-users-jp 95222] powerd with high frequency when idling X-BeenThere: freebsd-users-jp@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion relevant to FreeBSD communities in Japan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 23:14:26 -0000 ----Next_Part(Tue_Jul__1_08_06_32_2014_013)-- Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit 識者の皆様 青木と申します 以下の件について、解決のため、なにか調べるヒントとかあれば教えてもらえ ると幸いです。 こちら、FreeBSD-8.4R/amd64を運用しており、powerdで消費電力というか、発 熱量を調節しています。 ここ1〜2カ月、何がきっかけになったのかわかりませんが、loadが0でも動作周 波数がほぼ最高値になることがおきています。 #もしかしたら、8.3R→8.4Rのタイミングだったかもしれませんが不明です psで見ても特にCPUを食うようなprocessが動いているわけではなさそうです。 実際に計算がはじまりloadがあがると今度はちゃんと動作周波数が下がってい き、適切な発熱になります。 loadが0のidle時に、ちゃんと動作周波数が最低値に落ちるようにしたいので すが、どこから手をつければよいのでしょうか? #以前はそうなっていました。 こちら、powerdはoptionなしでの起動で、あんまりCPUや周辺が熱くなり過ぎな いよう/etc/sysctl.confで hw.acpi.thermal.user_override=1 hw.acpi.thermal.tz0._PSV=65C hw.acpi.thermal.tz0._TC1=0 hw.acpi.thermal.tz0._TC2=1 hw.acpi.thermal.tz0._TSP=60 hw.acpi.thermal.tz0.passive_cooling=1 としています。 あとsysctl -aでdev.cpu.0を引用すると以下の通りです。 dev.cpu.0.freq: 1400 dev.cpu.0.freq_levels: 1600/4940 1400/4322 1280/3347 1120/2928 960/2510 800/1435 700/1255 600/1076 500/896 400/717 300/538 200/358 100/179 dev.cpu.0.cx_supported: C1/1/0 C2/2/100 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% 0.00% last 497us 解析に使えるかどうかわかりませんが、dmesgの出力もつけておきます。 青木和麻呂@国分寺市在住 ----Next_Part(Tue_Jul__1_08_06_32_2014_013)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.out" Copyright (c) 1992-2013 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 8.4-RELEASE-p13 #0 r267109: Fri Jun 26 00:27:01 JST 2014 hoge@localhost:/usr/obj/usr/src/sys/GENERIC amd64 gcc version 4.2.1 20070831 patched [FreeBSD] Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD E-350 Processor (1600.01-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x500f10 Family = 14 Model = 1 Stepping = 0 Features=0x178bfbff Features2=0x802209 AMD Features=0x2e500800 AMD Features2=0x35ff TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 1643024384 (1566 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ACPI Warning: Optional field Pm2ControlBlock has zero address or length: 0x0000000000000000/0x1 (20101013/tbfadt-655) ioapic0: Changing APIC ID to 0 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power 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 0x808-0x80b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0xf000-0xf0ff mem 0xc0000000-0xcfffffff,0xfeb00000-0xfeb3ffff irq 18 at device 1.0 on pci0 pci0: at device 1.1 (no driver attached) pcib1: irq 16 at device 4.0 on pci0 pci1: on pcib1 atapci0: port 0xf140-0xf147,0xf130-0xf133,0xf120-0xf127,0xf110-0xf113,0xf100-0xf10f mem 0xfeb4f000-0xfeb4f3ff irq 19 at device 17.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI v1.20 controller with 4 3Gbps ports, PM supported ata2: at channel 0 on atapci0 ata2: [ITHREAD] ata3: at channel 1 on atapci0 ata3: [ITHREAD] ata4: at channel 2 on atapci0 ata4: [ITHREAD] ata5: at channel 3 on atapci0 ata5: [ITHREAD] ohci0: mem 0xfeb4e000-0xfeb4efff irq 18 at device 18.0 on pci0 ohci0: [ITHREAD] usbus0 on ohci0 ehci0: mem 0xfeb4d000-0xfeb4d0ff irq 17 at device 18.2 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1 on ehci0 ohci1: mem 0xfeb4c000-0xfeb4cfff irq 18 at device 19.0 on pci0 ohci1: [ITHREAD] usbus2 on ohci1 ehci1: mem 0xfeb4b000-0xfeb4b0ff irq 17 at device 19.2 on pci0 ehci1: [ITHREAD] usbus3: EHCI version 1.0 usbus3 on ehci1 pci0: at device 20.0 (no driver attached) pci0: at device 20.2 (no driver attached) isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci2: on pcib2 ohci2: mem 0xfeb4a000-0xfeb4afff irq 18 at device 20.5 on pci0 ohci2: [ITHREAD] usbus4 on ohci2 pcib3: at device 21.0 on pci0 pci3: on pcib3 re0: port 0xe000-0xe0ff mem 0xd0004000-0xd0004fff,0xd0000000-0xd0003fff irq 16 at device 0.0 on pci3 re0: Using 1 MSI-X message re0: Chip rev. 0x2c000000 re0: MAC rev. 0x00000000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 00:30:18:a5:6f:a3 re0: [ITHREAD] ohci3: mem 0xfeb49000-0xfeb49fff irq 18 at device 22.0 on pci0 ohci3: [ITHREAD] usbus5 on ohci3 ehci2: mem 0xfeb48000-0xfeb480ff irq 17 at device 22.2 on pci0 ehci2: [ITHREAD] usbus6: EHCI version 1.0 usbus6 on ehci2 acpi_button0: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] atrtc0: port 0x70-0x71 irq 8 on acpi0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range acpi_throttle0: on cpu0 hwpstate0: on cpu0 acpi_throttle1: on cpu1 acpi_throttle1: failed to attach P_CNT device_attach: acpi_throttle1 attach returned 6 Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.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: 480Mbps High Speed USB v2.0 ad4: 122104MB at ata2-master UDMA100 SATA 3Gb/s SMP: AP CPU #1 Launched! ugen0.1: at usbus0ugen1.1: at usbus1 uhub0: on usbus0 uhub1: on usbus1 ugen2.1: at usbus2ugen3.1: at usbus3 uhub2: on usbus2 uhub3: on usbus3 ugen4.1: at usbus4ugen5.1: at usbus5 uhub4: on usbus4 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 Root mount waiting for: usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0 uhub4: 2 ports with 2 removable, self powered uhub5: 4 ports with 4 removable, self powered uhub0: 5 ports with 5 removable, self powered uhub2: 5 ports with 5 removable, self powered Root mount waiting for: usbus6 usbus3 usbus1 uhub6: 4 ports with 4 removable, self powered uhub1: 5 ports with 5 removable, self powered uhub3: 5 ports with 5 removable, self powered Trying to mount root from ufs:/dev/ad4s1a re0: link state changed to UP ----Next_Part(Tue_Jul__1_08_06_32_2014_013)----