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
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
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
- 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).
- Open Dashboard → CPU view (also reproducible in the VM core pinning dropdown).
- Cores 0–3 show
P-Core, cores 4–11 showE-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_capacity1024cpu4-11: 8 E-Core, max 4400 MHz,cpu_capacity790cpu12-13: 2 LPE-Core, max 2500 MHz,cpu_capacity324
- 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
unraid/webgui のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
unraid/webgui#2785 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
rsyslog_config: "Mirror syslog to flash" rule is appended again on every Apply — each line written to the boot device N times対応中かも @junkerderprovinz が 38 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
Notification e-mails are sent without Date and Message-ID headers対応中かも @nofuturekid が 56 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
unraid/webgui#2781 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Static asset caching misses the Connect plugin's hashed bundle: ~144 JS chunks (8.5 MB) revalidate on every page load対応中かも @davidcoulson が 54 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sonata-project/SonataAdminBundle#8426 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
erkamyaman/rust-anything#942 ·
メンテナーはふだん 1 日以内に返信
-
area/plugins area/tests type/enhancement when/later
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
0. Needs triage 35-feedback bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信