draios / sysdig

Linux system exploration and troubleshooting tool with first class support for containers
http://www.sysdig.com/
Other
7.69k stars 728 forks source link

CPU usage reported as 0.00 when using `--modern-bpf` #2043

Closed vaskozl closed 7 months ago

vaskozl commented 8 months ago

This seems like something that should already be known but I couldn't find an issue referencing it.

While CPU usage is reported fine in both kernel and bpf driver mode, using --modern-bpf results in csysdig reporting CPU usage as zero for all processes.

I've tested this on clusters running both Talos Linux and Amazon Linux with a few different version of Kubernetes/kernels, they do not report CPU with the latest 0.34.1 image.

top in the same container has no trouble reporting the CPU usage.

therealbobo commented 7 months ago

Hey @vaskozl! Did you experienced this issue on previous versions of sysdig? 🤔

therealbobo commented 7 months ago

This PR https://github.com/draios/sysdig/pull/2055 should fix the issue :)