Skip to content

cgroup/cpuset: Fix various housekeeping check problems

Waiman Long cgroups linux-doc linux-kselftest lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest9 patches 3 repliesIn review
  2. v39 patches 11 repliesSuperseded
  3. v26 patches 14 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Adjust a number of patches to fix issues reported by Sashiko and Guopeng Zhang.
- Add more test cases to test_cpuset_prs.sh to improve test coverage.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9cgroup/cpuset: Fix a missing isolated_cpus update in update_cpumasks_hier()kernel/cgroup/cpuset.c tools/testing/selftests/cgroup/test_cpuset_prs.sh+55 -80 replies
2/9cgroup/cpuset: Consolidate isolated_cpus_can_update() into prstate_housekeeping_conflict()kernel/cgroup/cpuset.c+77 -710 replies
3/9cgroup/cpuset: Consider all the exclusive CPUs when doing housekeeping checkkernel/cgroup/cpuset.c+27 -190 replies
4/9cgroup/cpuset: Do housekeeping check before converting invalid partition to validkernel/cgroup/cpuset.c+8 -20 replies
5/9cgroup/cpuset: Properly disabling partition when partition state switching failskernel/cgroup/cpuset.c+12 -50 replies
6/9cgroup/cpuset: Don't allow a child root partition under an isolated parentDocumentation/admin-guide/cgroup-v2.rst kernel/cgroup/cpuset-internal.h kernel/cgroup/cpuset.c +1 more+46 -140 replies
7/9selftests/cgroup: Add tests for isolcpus housekeeping checktools/testing/selftests/cgroup/test_cpuset_prs.sh+98 -220 replies
8/9selftests/cgroup: Add tests for nohz_full housekeeping checktools/testing/selftests/cgroup/test_cpuset_prs.sh+37 -00 replies
9/9selftests/cgroup: Skip test_cpuset_prs.sh test if some required CPUs are offlinetools/testing/selftests/cgroup/test_cpuset_prs.sh+43 -210 replies

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchGuopeng Zhang
1/9
2/9R-b
3/9
4/9R-b
5/9R-b
6/9
7/9R-b
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH-next v4 0/9] cgroup/cpuset: Fix various housekeeping check problems

v4:
- Adjust a number of patches to fix issues reported by Sashiko and Guopeng Zhang.
- Add more test cases to test_cpuset_prs.sh to improve test coverage.

v3:
- https://lore.kernel.org/lkml/[email protected]
- Further revise the code based on feedback from sashiko and reviewers.
- Add a new fix patch which fixes a bug found during the testing process.
- Add a patch to impose a new restriction that creating a child root partition under an isolated parent partition is not allowed.

v2:
- Update patches 2 and 3 to address bugs reported by sashiko.
- Add a new test_cpuset_prs.sh patch to skip the test if some of the required CPUs are offline.

Commit 4a74e418881f ("cgroup/cpuset: Check partition conflict with housekeeping setup") and commit 103b08709e8a ("cgroup/cpuset: Fail if isolated and nohz_full don't leave any housekeeping") add housekeeping checks to fail partition changes that will violate the housekeeping rules. However there are several issues that make the check incomplete and missing in some cases. This series fixes the various known housekeeing check issues as well as imposing a new restriction that a local root partition cannot be created underneath an isolated partition. This new restriction will eliminate a number of hard to tackle corner cases which are unlikely to be used by the end users at all.

The first patch fixes a bug found in the testing process which is not directly related to the goal of tackling the housekeeping check problem. This series also updates test_cpuset_prs.sh by adding new test cases to test the new code.

Waiman Long (9):
cgroup/cpuset: Fix a missing isolated_cpus update in
update_cpumasks_hier()
cgroup/cpuset: Consolidate isolated_cpus_can_update() into
prstate_housekeeping_conflict()
cgroup/cpuset: Consider all the exclusive CPUs when doing housekeeping
check
cgroup/cpuset: Do housekeeping check before converting invalid
partition to valid
cgroup/cpuset: Properly disabling partition when partition state
switching fails
cgroup/cpuset: Don't allow a child root partition under an isolated
parent
selftests/cgroup: Add tests for isolcpus housekeeping check selftests/cgroup: Add tests for nohz_full housekeeping check selftests/cgroup: Skip test_cpuset_prs.sh test if some required CPUs
are offline

 Documentation/admin-guide/cgroup-v2.rst       |   4 +-
 kernel/cgroup/cpuset-internal.h               |   1 +
 kernel/cgroup/cpuset.c                        | 268 ++++++++++++------
 .../selftests/cgroup/test_cpuset_prs.sh       | 248 ++++++++++++----
 4 files changed, 381 insertions(+), 140 deletions(-)
Signature · 1 line
2.55.0