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

オープン
#2,802 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@chodeus がすでに取り組んでいます。

2026年10月28日 から。

  • #2803 @chodeus による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
docker, php
領域
devtools

調査の方向性

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_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.

主要言語
PHP
スター
266
フォーク
116
平均マージ
1日 5時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

unraid/webgui のほかの issue

unraid/webgui の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。