In both cases cgroupsv2 is activated and working fine.
Let's relax a bit the check and parse the whole file for "0::" pattern instead of just relying on the first line (which is wrong at some cases).
With patched version running ./atop -X:
PID CPUWGT CPUMAX CPUMAXR MEMMAX MMMAXR SWPMAX SWMAXR CPU CMD CGROUP (horizontal scroll: <- and ->) 1/11
481069 100 max 400% - max - max 7% php-fpm8.2 /u00000000d
481042 100 max 400% - max - max 6% php-fpm8.2 /u00000000f
481159 100 max 400% - max - max 6% php-fpm8.2 /u00000000c
If you have a system mounted with both cgroupsv1, and cgroupsv2, you have something like:
With some systems you might have like this:
In both cases cgroupsv2 is activated and working fine.
Let's relax a bit the check and parse the whole file for "0::" pattern instead of just relying on the first line (which is wrong at some cases).
With patched version running
./atop -X
: