public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] sched/cpuset: Fix DL BW accounting in case can_attach() fails
@ 2023-03-22 13:59 Dietmar Eggemann
       [not found] ` <20230322135959.1998790-1-dietmar.eggemann-5wv7dgnIgG8@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Dietmar Eggemann @ 2023-03-22 13:59 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra, Juri Lelli, Waiman Long, Tejun Heo,
	Zefan Li, Johannes Weiner, Hao Luo
  Cc: Steven Rostedt, Vincent Guittot, Daniel Bristot de Oliveira,
	Luca Abeni, Tommaso Cucinotta, Qais Yousef, Wei Wang,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	cgroups-u79uwXL29TY76Z2rM5mHXA

I followed Longman's idea to add a `deadline task transfer count` into
cpuset and only update the `dl task count` in cpuset_attach().

Moreover, I switched from per-task DL BW request to a per-cpuset one.
This way we don't have to free per-task in case xxx_can_attach() fails.

The DL BW freeing is handled in cpuset_cancel_attach() for the case
`multiple controllers and one of the non-cpuset can_attach() fails`.

Only lightly tested on cgroup v1 with exclusive cpusets so far.

Dietmar Eggemann (2):
  sched/deadline: Create DL BW alloc, free & check overflow interface
  cgroup/cpuset: Free DL BW in case can_attach() fails

 include/linux/sched.h   |  4 ++-
 kernel/cgroup/cpuset.c  | 55 +++++++++++++++++++++++++++++++++++++----
 kernel/sched/core.c     | 19 +++-----------
 kernel/sched/deadline.c | 53 +++++++++++++++++++++++++++++----------
 kernel/sched/sched.h    |  2 +-
 5 files changed, 97 insertions(+), 36 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-03-24 14:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22 13:59 [RFC PATCH 0/2] sched/cpuset: Fix DL BW accounting in case can_attach() fails Dietmar Eggemann
     [not found] ` <20230322135959.1998790-1-dietmar.eggemann-5wv7dgnIgG8@public.gmane.org>
2023-03-22 13:59   ` [RFC PATCH 1/2] sched/deadline: Create DL BW alloc, free & check overflow interface Dietmar Eggemann
2023-03-22 13:59   ` [RFC PATCH 2/2] cgroup/cpuset: Free DL BW in case can_attach() fails Dietmar Eggemann
     [not found]     ` <20230322135959.1998790-3-dietmar.eggemann-5wv7dgnIgG8@public.gmane.org>
2023-03-22 14:48       ` Waiman Long
2023-03-23  9:33   ` [RFC PATCH 0/2] sched/cpuset: Fix DL BW accounting " Juri Lelli
     [not found]     ` <ZBwc4l0ZyyRQPiSP-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2023-03-24 14:56       ` Dietmar Eggemann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox