Question
top and htop show 0% CPU usage while doing some heavy computation on a video stream inside a docker container. I know for sure that the CPU usage cannot be 0%, as I get correct output of my processed video stream and my own logs (not shown here) show that computations are being performed. Furthermore, running htop (outside Docker) shows that the individual cores of my machine are used, see also the screenshots below.
- How is this possible?
- And how can I fix this?
Screenshots
As this involves work for a company I've removed the names of the processes and non-root users.
Partial screenshot of top from within the Docker container.
Partial screenshot of top from outside the Docker container.
Partial screenshot of htop from outside the Docker container. Notice that the individual cores are used.