On v5.11 kernels the failure looks a little bit different and I think it might be different issue. Since v5.9, the kernel per-group memory is charged towards given group. This failed several tests, e.g. trying to create subgroups.
AWS v5.11, 36-core c4.8xlarge instance:
memcg_stat_test 4 TINFO: Process is still here after warm up: 3210
memcg_stat_test 4 TPASS: unevictable is 135168 as expected
memcg_stat_test 5 TINFO: Test hierarchical_memory_limit with enabling hierarchical accounting
/home/ubuntu/ltp-install/testcases/bin/memcg_stat_test.sh: 47: echo: echo: I/O error
memcg_stat_test 5 TFAIL: hierarchical_memory_limit is 270336, 135168 expected
memcg_stat_test 6 TINFO: Test hierarchical_memory_limit with disabling hierarchical accounting
memcg_stat_test 6 TCONF: Test requires root cgroup memory.use_hierarchy=0
memcg_stat_test 6 TINFO: AppArmor enabled, this may affect test results
memcg_stat_test 6 TINFO: it can be disabled with TST_DISABLE_APPARMOR=1 (requires super/root)
memcg_stat_test 6 TINFO: loaded AppArmor profiles: none
On v5.11 kernels the failure looks a little bit different and I think it might be different issue. Since v5.9, the kernel per-group memory is charged towards given group. This failed several tests, e.g. trying to create subgroups.
AWS v5.11, 36-core c4.8xlarge instance:
memcg_stat_test 4 TINFO: Process is still here after warm up: 3210 memory_ limit with enabling hierarchical accounting ltp-install/ testcases/ bin/memcg_ stat_test. sh: 47: echo: echo: I/O error memory_ limit is 270336, 135168 expected memory_ limit with disabling hierarchical accounting use_hierarchy= 0 APPARMOR= 1 (requires super/root)
memcg_stat_test 4 TPASS: unevictable is 135168 as expected
memcg_stat_test 5 TINFO: Test hierarchical_
/home/ubuntu/
memcg_stat_test 5 TFAIL: hierarchical_
memcg_stat_test 6 TINFO: Test hierarchical_
memcg_stat_test 6 TCONF: Test requires root cgroup memory.
memcg_stat_test 6 TINFO: AppArmor enabled, this may affect test results
memcg_stat_test 6 TINFO: it can be disabled with TST_DISABLE_
memcg_stat_test 6 TINFO: loaded AppArmor profiles: none
For this (v5.11) issue, sent patches to upstream: /lists. linux.it/ pipermail/ ltp/2021- July/023804. html
https:/