Docker tab CPU % reads low on hybrid Intel CPUs (Hyper-Threaded P-cores plus E-cores)

Abierto
#2,802 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@chodeus ya está trabajando en esto.

Desde el 28/10/2026.

  • #2803 de @chodeus — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
docker, php
Área
devtools

Línea de trabajo

The issue points to DockerContainers.page:218; start by reading how that line derives the CPU divisor and compare it with the reported thread_siblings_list groups and docker info NCPU value. Reproduce the Docker tab reading on a hybrid Intel CPU if available. Done when a container using one logical CPU is shown with the expected CPU percentage; pull request #2803 is already open against this issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

The Docker tab's CPU column divides each container's docker stats CPU % by count($cpus)*count(preg_split('/[,-]/',$cpus[0])) (DockerContainers.page:218): the number of cores times the threads of the first core. On Intel 12th–14th gen CPUs with E-cores, the first core is a Hyper-Threaded P-core (0-1) while each E-core has one thread, so the divisor is larger than the number of logical CPUs.

On an i5-14600K (6 Hyper-Threaded P-cores + 8 E-cores, 20 logical CPUs), Unraid 7.3.4:

  • thread_siblings_list has 14 groups, the first 0-1, so the page divides by 28
  • docker stats counts one logical CPU as 100% (the daemon scales by the online CPUs in /proc/stat); docker info reports NCPU 20
  • a container busy on exactly one thread (--cpus=1, about 100% in docker stats) shows 3.6% on the Docker tab; one thread of 20 is 5%, and /proc/stat shows the whole machine 4.7 points busier while it runs

Every container reads 29% low on this CPU, and 33% low on an i9-13900K (divides by 48 instead of 32). CPUs whose cores all have the same thread count (no E-cores, no Hyper-Threading, AMD, Xeon, Core Ultra) are not affected. Present on master and 7.3.

Lenguaje dominante
PHP
Estrellas
266
Forks
116
Merge medio
1 d 5 h
PR fusionados (30 d)
4

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de unraid/webgui

Todos los issues de unraid/webgui

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.