I'm using Gentoo for LXC host and containers. After upgrading the procps-ng...

I'm using Gentoo for LXC host and containers. After upgrading the procps-ng package from 3.3.12 to 3.3.15, in the top application the value of summed CPU usage inside a container is always 0 (zero).

* This issue shows up in the containers only, but not on the host
* If I switch the display to show the value for individual CPUs, it "works"
* This was not the case with the former used 3.3.12

A quick look at the source code of top show that it seems to use /proc/stat. Watching a 'head -1 /proc/stat' show changing values for the cpu line - no surprise since the v3.12 of top will work.

Then I compare the sources of 3.3.12 and 3.3.15, I may found a regression: The statement in the patch disappeared and if I add it again, the CPU sum display seems to work, again.

Therefore: Might this be a regression? Or was this deletion intended and something other is broken?


with greetings

Guido

Signed-of-by: Guido Jäkel <G.Jaekel@DNB.DE>
1 job for patch-1 in 1 minute and 50 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Test
passed #143909080
MakeCheck

00:01:50