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
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 90/100
Direzione di ricerca
Inizia con get_intel_core_types() in emhttp/plugins/dynamix/include/Helpers.php e analizza come vengono analizzati i tre file del kernel presenti in /sys/devices. Aggiungi test per l'origine Low-Power E-core e verifica che la vista CPU della Dashboard e gli elenchi di pinning dei core delle VM in CPUset.php, VMMachines.page, Custom.form.php, CPUvms.page, DashStats.page e SysDevs.php mostrino la nuova etichetta. Completato significa che ogni core è etichettato e che la stringa LPE-Core è stata aggiunta ai file di lingua.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- PHP
- Stelle
- 266
- Fork
- 116
- Merge medio
- 1g 5h
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di unraid/webgui
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
unraid/webgui#2785 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
rsyslog_config: "Mirror syslog to flash" rule is appended again on every Apply — each line written to the boot device N timesForse già presa @junkerderprovinz l’ha presa 37 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
Notification e-mails are sent without Date and Message-ID headersForse già presa @nofuturekid l’ha presa 56 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
unraid/webgui#2781 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Static asset caching misses the Connect plugin's hashed bundle: ~144 JS chunks (8.5 MB) revalidate on every page loadForse già presa @davidcoulson l’ha presa 54 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di unraid/webgui
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sonata-project/SonataAdminBundle#8426 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
erkamyaman/rust-anything#942 ·
I maintainer di solito rispondono entro 1 giorno
-
area/plugins area/tests type/enhancement when/later
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
1. to develop bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nextcloud/serverinfo#1296 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno