CPU core labels missing for Low-Power E-cores on hybrid Intel CPUs (Arrow Lake-H) — get_intel_core_types() ignores /sys/devices/cpu_lowpower

オープン 初心者向け
#2,861 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@dgongut がすでに取り組んでいます。

2026年11月28日 から。

  • #2862 @dgongut による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
frontend

調査の方向性

emhttp/plugins/dynamix/include/Helpers.php の get_intel_core_types() から始め、/sys/devices 配下にある3つのカーネルファイルをどのように解析しているかを確認します。Low-Power E-core のソースに対するテストを追加し、Dashboard の CPU ビューと、CPUset.php、VMMachines.page、Custom.form.php、CPUvms.page、DashStats.page、SysDevs.php にある VM のコア固定リストに新しいラベルが表示されることを確認します。完了とは、すべてのコアにラベルが付けられ、LPE-Core 文字列が言語ファイルに追加されていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

Bug Description

On hybrid Intel CPUs that have a third core class — Low-Power E-cores (LPE) — the CPU view on the Dashboard (and the core-pinning dropdowns in the VM manager) leave those cores without a P-Core / E-Core label.

get_intel_core_types() in emhttp/plugins/dynamix/include/Helpers.php only parses two kernel files:

  • /sys/devices/cpu_core/cpus → P-Core
  • /sys/devices/cpu_atom/cpus → E-Core

The kernel exposes LPE cores in a third file, /sys/devices/cpu_lowpower/cpus, which the function never reads, so those CPUs fall through unlabeled.

Steps to Reproduce

  1. Boot Unraid on a system with an Intel CPU that has LPE cores (here: Core Ultra 5 225H, Arrow Lake-H — 4 P + 8 E + 2 LPE).
  2. Open Dashboard → CPU view (also reproducible in the VM core pinning dropdown).
  3. Cores 0–3 show P-Core, cores 4–11 show E-Core, cores 12–13 show no label at all.

Expected Behavior

Every core gets a type label, including the third class (e.g. LPE-Core).

Actual Behavior

The 2 LPE cores are rendered without any label, which makes the CPU view ambiguous — they look like detection failed even though the kernel classifies them correctly.

Environment

  • Unraid version: 7.4.1 (/etc/unraid-version → version="7.4.1")
  • Kernel: 6.18.64-Unraid
  • CPU: Intel Core Ultra 5 225H (Arrow Lake-H), 14 logical CPUs
    • cpu0-3: 4 P-Core, max 4900 MHz, cpu_capacity 1024
    • cpu4-11: 8 E-Core, max 4400 MHz, cpu_capacity 790
    • cpu12-13: 2 LPE-Core, max 2500 MHz, cpu_capacity 324
  • Browser: any (not browser-dependent)

Error Output

# cat /sys/devices/cpu_core/cpus
0-3
# cat /sys/devices/cpu_atom/cpus
4-11
# cat /sys/devices/cpu_lowpower/cpus
12-13

# per-core capacity and max frequency
cpu0   capacity=1024  max=4900MHz     cpu4   capacity=790  max=4400MHz
cpu1   capacity=1024  max=4900MHz     cpu5   capacity=790  max=4400MHz
cpu2   capacity=1024  max=4900MHz     ...    capacity=790  max=4400MHz
cpu3   capacity=1024  max=4900MHz     cpu11  capacity=790  max=4400MHz
                                      cpu12  capacity=324  max=2500MHz
                                      cpu13  capacity=324  max=2500MHz

# dmesg (boot)
[    0.007201] core: cpu_lowpower PMU driver:
[    0.140904] Performance Events: XSAVE Architectural LBR, PEBS fmt5+-baseline, ArrowLake-H Hybrid events, AnyThread deprecated, 32-deep LBR, full-width counters, Intel PMU driver.
[    0.921652] Hybrid CPU capacity scaling enabled

# PMU types exposed by the kernel
/sys/devices/cpu_core/type      -> 4
/sys/devices/cpu_atom/type      -> 10
/sys/devices/cpu_lowpower/type  -> 11

Additional Context

Current upstream code (emhttp/plugins/dynamix/include/Helpers.php, get_intel_core_types()):

function get_intel_core_types() {
  $core_types = array();
  $cpu_core_file = "/sys/devices/cpu_core/cpus";
  $cpu_atom_file = "/sys/devices/cpu_atom/cpus";
  $p_cores = parse_cpu_ranges($cpu_core_file);
  $e_cores = parse_cpu_ranges($cpu_atom_file);
  if ($p_cores) {
    foreach ($p_cores as $core) {
      $core_types[$core] = _("P-Core");
    }
  }
  if ($e_cores) {
    foreach ($e_cores as $core) {
      $core_types[$core] = _("E-Core");
    }
  }
  return $core_types;
}

Proposed fix — four added lines, no behaviour change on hardware without LPE cores, because parse_cpu_ranges() already does if (!is_file($file)) return null;:

 function get_intel_core_types() {
   $core_types = array();
   $cpu_core_file = "/sys/devices/cpu_core/cpus";
   $cpu_atom_file = "/sys/devices/cpu_atom/cpus";
+  $cpu_lowpower_file = "/sys/devices/cpu_lowpower/cpus";
   $p_cores = parse_cpu_ranges($cpu_core_file);
   $e_cores = parse_cpu_ranges($cpu_atom_file);
+  $lpe_cores = parse_cpu_ranges($cpu_lowpower_file);
   if ($p_cores) {
     foreach ($p_cores as $core) {
       $core_types[$core] = _("P-Core");
     }
   }
   if ($e_cores) {
     foreach ($e_cores as $core) {
       $core_types[$core] = _("E-Core");
     }
   }
+  if ($lpe_cores) {
+    foreach ($lpe_cores as $core) {
+      $core_types[$core] = _("LPE-Core");
+    }
+  }
   return $core_types;
 }

Note that the same function feeds the VM core-pinning lists (CPUset.php, VMMachines.page, Custom.form.php, CPUvms.page, DashStats.page, SysDevs.php), so the fix also improves the VM editor.

Related: #2802 ("Docker tab CPU % reads low on hybrid Intel CPUs (Hyper-Threaded P-cores plus E-cores)") — same underlying assumption that Intel exposes only two core classes.

Happy to send this as a PR if a patch is welcome; the label string would need a translation entry ("LPE-Core") in the language files.

主要言語
PHP
スター
266
フォーク
116
平均マージ
1日 5時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

unraid/webgui のほかの issue

unraid/webgui の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。