mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10.git
synced 2026-09-09 00:07:04 +08:00
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/2746 JIRA: https://redhat.atlassian.net/browse/RHEL-154157 JIRA: https://redhat.atlassian.net/browse/RHEL-154159 JIRA: https://redhat.atlassian.net/browse/RHEL-184801 MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/2746 Omitted-fix: d9b40d7262a2 ("selftests/x86: Add selftests include path for kselftest.h after centralization") This series backports most of relevant cgroup selftests commits in linux mainline and mm-stable maintainer tree to reduce the failure rate of the cgroup selftests. This commits do not fix all the test failures but still many of them should be gone. By running the cgroup selftests 100 times on an arm64 and x86-64 systems, the table below shows the number of test failures before and after applying the patches. x86-64 ====== Test Before After ---- ------ ----- test_cpucg_nested_weight_overprovisioned 62 66 test_cpucg_stats 50 50 test_cpucg_weight_overprovisioned 62 66 test_memcg_low 100 6 test_memcg_min 29 1 test_memcg_sock 100 0 test_zswap_writeback_disabled 100 0 test_zswap_writeback_enabled 100 0 test_zswapin 100 0 aarch64 ======= Test Before After ---- ------ ----- test_cpucg_max 39 44 test_cpucg_max_nested 25 23 test_cpucg_nested_weight_overprovisioned 57 58 test_cpucg_nested_weight_underprovisioned 2 3 test_cpucg_nice 95 79 test_cpucg_stats 50 50 test_cpucg_weight_overprovisioned 95 91 test_cgfreezer_ptrace 50 53 test_memcg_low 100 0 test_memcg_min 82 85 test_memcg_sock 100 100 test_zswap_usage 100 0 test_zswap_writeback_disabled 100 0 test_zswap_writeback_enabled 100 0 test_zswapin 100 0 The test_zswap failures are all gone and some of the test_memcontrol failures are gone. However this MR has no real impact on test_cpu and test_freezer failures. Signed-off-by: Waiman Long <longman@redhat.com> Approved-by: Herton R. Krzesinski <herton@redhat.com> Approved-by: Phil Auld <pauld@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>