Skip to content

cgroup/cpuset: Add new cpuset partition type & empty effecitve cpus

Waiman Long cgroups linux-doc linux-kselftest lkml 8 versions – Applied

Status from this message: Applied to cgroup/for-5.17.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest7 patches 19 repliesApplied
  2. v86 patches 32 repliesSuperseded
  3. v76 patches 12 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v66 patches5 repliesSuperseded
v56 patches1 replySuperseded
v46 patches13 repliesApplied
v39 patches17 repliesApplied
v26 patches12 repliesSuperseded

Changes in v9 from the cover letter

- Add a new patch 1 to remove the child cpuset restriction on parent's "cpuset.cpus".
- Relax initial root partition entry limitation to allow cpuset.cpus to overlap that of parent's.
- An "isolated invalid" displayed type is added to cpuset.cpus.partition.
- Resetting partition root to "member" will leave child partition root as invalid.
- Update documentation and test accordingly.

Patches in v9 Applied

#Subject and filesSizeRepliesApplied
1/7cgroup/cpuset: Don't let child cpusets restrict parent in default hierarchykernel/cgroup/cpuset.c+3 -116 replies
2/7cgroup/cpuset: Allow no-task partition to have empty cpuset.cpus.effectivekernel/cgroup/cpuset.c+85 -283 replies
3/7cgroup/cpuset: Refining features and constraints of a partitionkernel/cgroup/cpuset.c+121 -1323 replies
4/7cgroup/cpuset: Add a new isolated cpus.partition typekernel/cgroup/cpuset.c+45 -53 replies
5/7cgroup/cpuset: Show invalid partition reason stringkernel/cgroup/cpuset.c+53 -50 replies
6/7cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rstDocumentation/admin-guide/cgroup-v2.rst+102 -666 replies
7/7kselftest/cgroup: Add cpuset v2 partition root state testtools/testing/selftests/cgroup/Makefile tools/testing/selftests/cgroup/test_cpuset_prs.sh tools/testing/selftests/cgroup/wait_inotify.c+757 -20 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchWaiman Long
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

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

Read the v9 thread

Cover letter [PATCH v9 0/7] cgroup/cpuset: Add new cpuset partition type & empty effecitve cpus

v9:
- Add a new patch 1 to remove the child cpuset restriction on parent's "cpuset.cpus".
- Relax initial root partition entry limitation to allow cpuset.cpus to overlap that of parent's.
- An "isolated invalid" displayed type is added to cpuset.cpus.partition.
- Resetting partition root to "member" will leave child partition root as invalid.
- Update documentation and test accordingly.

v8:
- Reorganize the patch series and rationalize the features and constraints of a partition.
- Update patch descriptions and documentation accordingly.

v7:
- Simplify the documentation patch (patch 5) as suggested by Tejun.
- Fix a typo in patch 2 and improper commit log in patch 3.

This patchset includes one bug fix and four enhancements to the cpuset v2 code.

Patch 1: Allow parent to set "cpuset.cpus" that may not be a superset of children's "cpuset.cpus" for default hierarchy.

Patch 2: Enable partition with no task to have empty cpuset.cpus.effective.

Patch 3: Refining the features and constraints of a cpuset partition clarifying what changes are allowed.

Patch 4: Add a new partition state "isolated" to create a partition root without load balancing. This is for handling intermitten workloads that have a strict low latency requirement.

Patch 5: Enable the "cpuset.cpus.partition" file to show the reason that causes invalid partition like "root invalid (No cpu available due to hotplug)".

Patch 6 updates the cgroup-v2.rst file accordingly. Patch 7 adds a new cpuset test to test the new cpuset partition code.

Waiman Long (7):
cgroup/cpuset: Don't let child cpusets restrict parent in default
hierarchy
cgroup/cpuset: Allow no-task partition to have empty
cpuset.cpus.effective
cgroup/cpuset: Refining features and constraints of a partition cgroup/cpuset: Add a new isolated cpus.partition type cgroup/cpuset: Show invalid partition reason string cgroup/cpuset: Update description of cpuset.cpus.partition in
cgroup-v2.rst
kselftest/cgroup: Add cpuset v2 partition root state test

 Documentation/admin-guide/cgroup-v2.rst       | 168 +++--
 kernel/cgroup/cpuset.c                        | 440 +++++++-----
 tools/testing/selftests/cgroup/Makefile       |   5 +-
 .../selftests/cgroup/test_cpuset_prs.sh       | 667 ++++++++++++++++++
 tools/testing/selftests/cgroup/wait_inotify.c |  87 +++
 5 files changed, 1142 insertions(+), 225 deletions(-)
 create mode 100755 tools/testing/selftests/cgroup/test_cpuset_prs.sh
 create mode 100644 tools/testing/selftests/cgroup/wait_inotify.c
Signature · 1 line
2.27.0