bcicen / ctop

Top-like interface for container metrics
https://ctop.sh
MIT License
15.61k stars 528 forks source link

Cpu usage allways at 0 #322

Open haoujey opened 1 year ago

haoujey commented 1 year ago

Hello,

I saw the closed issue related to cpu usage allways at 0, and it was closed because version 0.7.7 fixes this issue. In my case the problem remains. I'm on an Azure Debian 11 with the latest version of docker(cli 20.10.22 Api 1.41 go1.18.9) and the latest of ctop (0.7.7). The cpu usage of all my containers are still at 0%. Can you help me fix this problem please?

Regards,

azlux commented 1 year ago

Hi, Is that an issue with cgroupv2 ? Since there are a better cpu/memory isolation with cgroupsv2, ctop cannot see all of them. Can some check that, because when debian 11 have been released, I've roolback on cgroupsv1.

justin13888 commented 1 year ago

Same issue here with version 0.7.7. I'm running Ubuntu 22.04.3 with official Docker version.

Running grep -c cgroup2 /proc/filesystems, I see cgroup2 is on my system.

Using docker info | grep 'Cgroup Version', I see Docker is indeed using cgroup2.

Giraffaman commented 10 months ago

for me this is now resolved with v0.7.7, build 11a1cb1 go1.18 - working on both my Debian 11 nodes with cgroups2 in use.