With the new cgroup code in Linux 6.6, the per-CPU CPU usage stats are now being tracked.
As noted in last week's cgroup merge to Linux 6.6 Git, the per-CPU CPU usage stats are being tracked now and can be exposed such as via eBPF but not currently exposed via the cgroupfs interface.
In a future kernel release the per-CPU usage stats will hopefully be exposed via cgroupfs once an adequate interface has been agreed upon.
This will cause the cumulative value to be non-monotonic, thus affecting the accuracy of cgroup per-cpu usage.
After adding this variable, we can obtain the per-cpu time of cgroup and its descendants in user mode through eBPF, etc."
This cgroup contribution to the upstream kernel was carried out by Bytedance engineers.
The original article contains 277 words, the summary contains 127 words. Saved 54%. I'm a bot and I'm open source!