ソースの表示以前のリビジョンバックリンク全て展開する/折り畳む文書の先頭へ Share via Share via... Twitter LinkedIn Facebook Pinterest Telegram WhatsApp Yammer Reddit Teams最近の変更Send via e-Mail印刷パーマリンク × « 2022年、クソゲ〜製作所は「のふ処」に変わります(ました) 桐材にワトコオイルのナチュラル色は合わない » Linux 5.7でintel_pstateのHWPの挙動が変わっていた 自鯖のProxmox VEを6から7に上げたら、アイドル時の消費電力が上がったような気がする。ハードウェア構成が少し変わってたりもするので何とも言えないところだが、IPMIで見る限り増えているのは確か。 あれこれ試してみたところCPUのスケーリングガバナーの挙動が変わっていた。そして、そもそもCPUドライバとしてintel_pstateではなくintel_cpufreqが使われていた。 # cpupower frequency-info analyzing CPU 0: driver: intel_cpufreq ★これ CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: 20.0 us hardware limits: 1.20 GHz - 3.30 GHz available cpufreq governors: conservative ondemand userspace powersave performance schedutil current policy: frequency should be within 1.20 GHz and 3.30 GHz. The governor "powersave" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 1.20 GHz (asserted by call to kernel) boost state support: Supported: yes Active: yes 同じ環境でPVE 6の時はintel_pstateが使われていたハズなんだけどなぁ。dmesgを見ると、intel_pstateが採用されている雰囲気だが、“HWP not enabled”の一文も気になるところ。 # dmesg | grep intel_pstate [ 2.020574] intel_pstate: HWP not enabled [ 2.020580] intel_pstate: Intel P-state driver initializing 答えはArchiWikiとintel_pstateのドキュメントに書いてあった。HWP (Hardware P-States)が使えないCPUではintel_pstateはPassive Modeとして動作し、ドライバとしてintel_cpufreqが使われるとのこと。お前かー!! Linuxカーネルバージョン5.81)でのintel_pstateの改修により、この挙動に変わったらしい。実際、v5.7とv5.8のソースを見比べると、確かにそのような変更が加えられている。 話はこれで終わらずv5.9において、EPP (Energy Performance Preference)を持たないCPUをHWP制御から除外するコードがわざわざ追加されている。HWPはSkylakeからの実装とされているが、実際はBroadwell-EPで初期実装が行われているらしく、現に前述のv5.7コードではHWPを使うようになっている。 自鯖のCPUはまさにBroadwell-EPなXeonなので、見事に該当しているというワケだった。 強制的にアクティブモードにすることもできそうだが、どっちがいいんだろうねぇ?更にHWPM (Hardware Power Management)を使って、完全にハードウェア任せにするという選択肢もあるし悩ましいところ。 (2022-02-21 追記) うちのマシンの場合アイドル時の消費電力は、やはりアクティブモードの方が気持ち低いようだ。 アクティブモードとパッシブモードの切り替えは/sys/devices/system/cpu/intel_pstate/statusに、それぞれactiveとpassiveを書き込むことで可能。切り替えた場合、スケーリングガバナーの変更もお忘れなく。 # cpupower frequency-info analyzing CPU 0: driver: intel_cpufreq CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: 20.0 us hardware limits: 1.20 GHz - 3.30 GHz available cpufreq governors: conservative ondemand userspace powersave performance schedutil current policy: frequency should be within 1.20 GHz and 3.30 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 1.30 GHz (asserted by call to kernel) boost state support: Supported: yes Active: yes # echo active > /sys/devices/system/cpu/intel_pstate/status # cpupower frequency-info analyzing CPU 0: driver: intel_pstate CPUs which run at the same hardware frequency: 0 CPUs which need to have their frequency coordinated by software: 0 maximum transition latency: Cannot determine or is not supported. hardware limits: 1.20 GHz - 3.30 GHz available cpufreq governors: performance powersave current policy: frequency should be within 1.20 GHz and 3.30 GHz. The governor "performance" may decide which speed to use within this range. current CPU frequency: Unable to call hardware current CPU frequency: 1.20 GHz (asserted by call to kernel) boost state support: Supported: yes Active: yes 参考サイト Intel P-State With Linux 5.9 Adds Passive Mode With Hardware P-States - Phoronix intel_pstate CPU Performance Scaling Driver — The Linux Kernel documentation CPU frequency scaling - ArchWiki Linux kernel 5.8 defaults to passive mode for intel_pstate driver for cpu before skylake : linux [SOLVED] No intel_pstate driver since kernel 5.8.1 / Kernel & Hardware / Arch Linux Forums 【笠原一輝のユビキタス情報局】Skylakeの“SpeedShift”でPステートの消費電力削減を実現 ~Windows 10とSkylakeでさらなる長時間バッテリ駆動が可能に - PC Watch 3.2. CPUfreq Red Hat Enterprise Linux 7 | Red Hat Customer Portal 1) ArchWikiでは5.7とされているがソースコードを見ると5.8での変更っぽい Comments https://giveadamndoc.com https://johnbestreviews.com https://versusdarknet.com/index.php?sitemap_xml=true https://nazkoltuk.com/index.php?sitemap_xml=true https://atlantachurchplantingalliance.com/index.php?sitemap_xml=true https://denizlinehirpide.com https://world-drugs-market.com https://behtarinmoshaver.com/index.php?sitemap_xml=true https://foreverdreamin.com/index.php/2025/09/12/does-mary-chapin-carpenter-have-a-partner-unveiling-the-mystery-behind-her-personal-life/ https://foreverdreamin.com/index.php/2025/09/12/navigating-the-fear-of-intimacy-strategies-for-strengthening-your-relationship/ https://nazkoltuk.com https://rockphonethailand.com/index.php?sitemap_xml=true https://dankvapeofficial.com https://ontrackeducationservices.com https://foreverdreamin.com/index.php/2025/09/12/is-jetblue-now-a-delta-partner-exploring-the-new-airline-alliance-dynamics/ https://behtarinmoshaver.com https://marijuanaonlinemart.com https://acorncraft.com https://muaacclienquan.com https://heinekendarknetmarket.com/index.php?sitemap_xml=true https://kvartiraarenda.com/index.php?sitemap_xml=true https://world-drugs-market.com/index.php?sitemap_xml=true https://ariayadak.com/index.php?sitemap_xml=true https://foreverdreamin.com/index.php/2025/09/12/how-much-can-a-partner-at-kpmg-earn-a-comprehensive-breakdown-of-compensation/ https://acorncraft.com/index.php?sitemap_xml=true https://versusdarknet.com https://kvartiraarenda.com https://tunnermaul.com/index.php?sitemap_xml=true https://pulse-designtech.com/index.php?sitemap_xml=true https://pulse-designtech.com https://johnbestreviews.com/index.php?sitemap_xml=true https://foreverdreamin.com https://muaacclienquan.com/index.php?sitemap_xml=true https://rockphonethailand.com https://foreverdreamin.com/index.php/2025/09/12/effective-strategies-to-uncover-the-truth-how-to-track-your-cheating-partner/ https://atlantachurchplantingalliance.com https://denizlinehirpide.com/index.php?sitemap_xml=true https://tunnermaul.com https://foreverdreamin.com/index.php/2025/09/12/unlocking-success-a-comprehensive-guide-to-becoming-a-microsoft-partner_1/ https://marijuanaonlinemart.com/index.php?sitemap_xml=true https://foreverdreamin.com/index.php/2025/09/12/navigating-the-challenges-strategies-for-coping-with-a-narcissistic-ex-partner/ https://ontrackeducationservices.com/index.php?sitemap_xml=true https://heinekendarknetmarket.com https://ariayadak.com https://dankvapeofficial.com/index.php?sitemap_xml=true https://giveadamndoc.com/index.php?sitemap_xml=true https://foreverdreamin.com/index.php?sitemap_xml=true 1 | bvc | 2025-09-13 12:56 | reply Name E-Mail Website 人間の証明として、ボックス内の全ての文字を入力してください。 この項目は空のままにして下さい:Preview Comment blog/2022/2022-01-13.txt 最終更新: 2022-03-23 11:51by Decomo