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

Đang mở
#2,802 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@chodeus đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #2803 của @chodeus — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, php
Lĩnh vực
devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
266
Fork
116
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của unraid/webgui

Tất cả issue của unraid/webgui

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.