mbox series

[PATCH-cgroup,v2,0/5] cgroup/cpuset: Fix miscellaneous issues

Message ID 20240617143945.454888-1-longman@redhat.com
Headers show
Series cgroup/cpuset: Fix miscellaneous issues | expand

Message

Waiman Long June 17, 2024, 2:39 p.m. UTC
v2:
  - Fix test_cpuset_prs.sh problems reported by test robot
  - Relax restriction imposed between cpuset.cpus.exclusive and
    cpuset.cpus of sibling cpusets.
  - Make cpuset.cpus.exclusive independent of cpuset.cpus. 
  - Update test_cpuset_prs.sh accordingly.
  
 [v1] https://lore.kernel.org/lkml/20240605171858.1323464-1-longman@redhat.com/

This patchset attempts to address the following cpuset issues.
 1) While reviewing the generate_sched_domains() function, I found a bug
    in generating sched domains for remote non-isolating partitions.
 2) Test robot had reported a test_cpuset_prs.sh test failure.
 3) The current exclusivity test between cpuset.cpus.exclusive and
    cpuset.cpus and the restriction that the set effective exclusive
    CPUs has to be a subset of cpuset.cpus make it harder to preconfigure
    the cgroup hierarchy to enable remote partition.

The test_cpuset_prs.sh script is updated to match changes made in this
patchset and was run to verify that the new code did not cause any
regression.

Waiman Long (5):
  cgroup/cpuset: Fix remote root partition creation problem
  selftest/cgroup: Fix test_cpuset_prs.sh problems reported by test
    robot
  cgroup/cpuset: Delay setting of CS_CPU_EXCLUSIVE until valid partition
  cgroup/cpuset: Make cpuset.cpus.exclusive independent of cpuset.cpus
  selftest/cgroup: Update test_cpuset_prs.sh to match changes

 Documentation/admin-guide/cgroup-v2.rst       |  12 +-
 kernel/cgroup/cpuset.c                        | 158 +++++++++++++-----
 .../selftests/cgroup/test_cpuset_prs.sh       |  75 ++++++---
 3 files changed, 180 insertions(+), 65 deletions(-)

Comments

Tejun Heo June 19, 2024, 5:38 p.m. UTC | #1
On Mon, Jun 17, 2024 at 10:39:40AM -0400, Waiman Long wrote:
>  v2:
>   - Fix test_cpuset_prs.sh problems reported by test robot
>   - Relax restriction imposed between cpuset.cpus.exclusive and
>     cpuset.cpus of sibling cpusets.
>   - Make cpuset.cpus.exclusive independent of cpuset.cpus. 
>   - Update test_cpuset_prs.sh accordingly.
>   
>  [v1] https://lore.kernel.org/lkml/20240605171858.1323464-1-longman@redhat.com/
> 
> This patchset attempts to address the following cpuset issues.
>  1) While reviewing the generate_sched_domains() function, I found a bug
>     in generating sched domains for remote non-isolating partitions.
>  2) Test robot had reported a test_cpuset_prs.sh test failure.
>  3) The current exclusivity test between cpuset.cpus.exclusive and
>     cpuset.cpus and the restriction that the set effective exclusive
>     CPUs has to be a subset of cpuset.cpus make it harder to preconfigure
>     the cgroup hierarchy to enable remote partition.
> 
> The test_cpuset_prs.sh script is updated to match changes made in this
> patchset and was run to verify that the new code did not cause any
> regression.

Applied to cgroup/for-6.11.

Thanks.