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

Aperta Adatta ai principianti
#2,861 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@dgongut ci sta già lavorando.

Dal 28/11/2026.

  • #2862 di @dgongut — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
90/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php
Ambito
frontend

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

  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.

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di unraid/webgui

Tutte le issue di unraid/webgui

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.