[PATCH 1/2] cgroup2: cpuset: Disable subset validation on set

2021-04-13 Thread Odin Ugedal
ective=1-2) Setting cpus to 1 for A would result in an -EBUSY error, but with this patch it will work as expected: /sys/fs/cgroup/A (cpus=1, cpus.effective=1) /sys/fs/cgroup/A/B (cpus=3-4,cpus.effective=1) This also applies in a similar manner on cpuset.mems. Signed-off-by: O

[PATCH 2/2] cgroup2: cpuset: Always allow setting empty cpuset

2021-04-13 Thread Odin Ugedal
. It also makes it possible to disable cpuset for a populated cgroup (or one of its ancestors), without having to manually write the effective value into cpuset.cpus. This also applies in a similar manner on cpuset.mems. Signed-off-by: Odin Ugedal --- kernel/cgroup/cpuset.c | 7 --- 1 file

[PATCH 0/2] Relax cpuset validation for cgroup v2

2021-04-13 Thread Odin Ugedal
they are helpful. Odin Ugedal (2): cgroup2: cpuset: Disable subset validation on set cgroup2: cpuset: Always allow setting empty cpuset kernel/cgroup/cpuset.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) -- 2.31.0

Re: [PATCH v3 0/4] sched/fair: Burstable CFS bandwidth controller

2021-03-10 Thread Odin Ugedal
Hi, > If there are cases where the "start bandwidth" matters, I think there is need > to expose the > "start bandwidth" explicitly too. However, I doubt the existence of such > cases from my view > and the two examples above. Yeah, I don't think there will be any cases where users will be

Re: [PATCH v3 0/4] sched/fair: Burstable CFS bandwidth controller

2021-02-09 Thread Odin Ugedal
Hi! This looks quite useful, but I have a few quick thoughts. :) I know of a lot of people who would love this (especially some Kubernetes users)! I really like how this allow users to use cfs in a more dynamic and flexible way, without interfering with those who like the enforce strict quotas.

[PATCH v2 2/2] cgroup: update PSI file description in docs

2021-01-16 Thread Odin Ugedal
Update PSI file description in cgroup-v2 docs to reflect the current implementation. Signed-off-by: Odin Ugedal --- Documentation/admin-guide/cgroup-v2.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin

[PATCH v2 1/2] cgroup: fix psi monitor for root cgroup

2021-01-16 Thread Odin Ugedal
implementation tries to lock a NULL ptr, resulting in a crash. Can be triggered by running this as root: $ tee /sys/fs/cgroup/cpu.pressure <<< "some 1 100" Signed-off-by: Odin Ugedal Reviewed-by: Suren Baghdasaryan --- kernel/cgroup/cgroup.c | 4 +++- 1 file changed,

[PATCH v2 0/2] cgroup: fix psi monitor for root cgroup

2021-01-16 Thread Odin Ugedal
Reviewed-by tag on the original patch (Suren) - Updated patch title - Added a separate patch to update doc Odin Ugedal (2): cgroup: fix psi monitor for root cgroup cgroup: update PSI file description in docs Documentation/admin-guide/cgroup-v2.rst | 6 +++--- kernel/cgroup/cgroup.c

[PATCH] psi: fix monitor for root cgroup

2020-12-08 Thread Odin Ugedal
implementation tries to lock a NULL ptr, resulting in a crash. Can be triggered by running this as root: $ tee /sys/fs/cgroup/cpu.pressure <<< "some 1 100" Signed-off-by: Odin Ugedal --- kernel/cgroup/cgroup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH] mm,hugetlb_cgroup: Fix typo failcntfile in comment

2019-09-04 Thread Odin Ugedal
Change "failcntfile" to "failcnt file" Signed-off-by: Odin Ugedal --- mm/hugetlb_cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb_cgroup.c b/mm/hugetlb_cgroup.c index 68c2f2f3c05b..3b004028c490 100644 --- a/mm/hugetlb_cgroup.c +++ b

[PATCH] arm64: Fix comment after #endif

2019-06-06 Thread Odin Ugedal
The config value used in the if was changed in b433dce056d3814dc4b33e5a8a533d6401ffcfb0, but the comment on the corresponding end was not changed. Signed-off-by: Odin Ugedal --- arch/arm64/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/mm/mmu.c b/arch