The following command provides incorrect CPU usage information:
show system processes extensive
%Cpu(s): 50.0 us, 0.0 sy, 0.0 ni, 50.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
It shows some incorrect and random info .
It relays on the following command - “top -b -n1“, this tool gives this incorrect info:
root@0a9677a48d62:/# top -b -n1 | grep Cpu %Cpu(s): 50.0 us, 0.0 sy, 0.0 ni, 50.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st root@0a9677a48d62:/# top -b -n1 | grep Cpu %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st root@0a9677a48d62:/# top -b -n1 | grep Cpu %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st root@0a9677a48d62:/# top -b -n1 | grep Cpu %Cpu(s): 50.0 us, 0.0 sy, 0.0 ni, 50.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st root@0a9677a48d62:/# top -b -n1 | grep Cpu %Cpu(s): 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
The correct info looks like that:
%Cpu(s): 2.4 us, 1.2 sy, 0.0 ni, 94.0 id, 2.4 wa, 0.0 hi, 0.0 si, 0.0 st
It is a problem of procps 4.0.2 package. It works correctly in version 4.0.4 (which is not available yet in Bookworm).