Docker tab CPU % reads low on hybrid Intel CPUs (Hyper-Threaded P-cores plus E-cores)
维护者通常 1 天内回复
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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_listhas 14 groups, the first0-1, so the page divides by 28docker statscounts one logical CPU as 100% (the daemon scales by the online CPUs in/proc/stat);docker inforeports NCPU 20- a container busy on exactly one thread (
--cpus=1, about 100% indocker stats) shows 3.6% on the Docker tab; one thread of 20 is 5%, and/proc/statshows 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.
- 主要语言
- PHP
- 星标
- 266
- 派生
- 116
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
unraid/webgui 的其他 Issue
-
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可能已有人在做 @dgongut 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
unraid/webgui#2785 · 1 个 reaction ·
维护者通常 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
维护者通常 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 天内回复
相似的 Issue
-
area: tests area: user refactoring
难度 2/5 1-3 小时 新手友好度 85/100
nplhse/collaborative-ivena-statistics#1845 ·
维护者通常 1 天内回复
-
[Sync EN] filesystem: document the ValueError of fgets(), file_get_contents(), and touch() (#6167)未关闭sync-en
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
Documentation Feature: Events / Calendar
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复