public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC/POC]: Make cpuset.cpus.effective independent of cpuset.cpus
@ 2024-03-21 21:33 Petr Malat
  2024-03-21 21:39 ` [PATCH] cgroup/cpuset: " Petr Malat
  2024-03-22  1:41 ` [RFC/POC]: " Waiman Long
  0 siblings, 2 replies; 10+ messages in thread
From: Petr Malat @ 2024-03-21 21:33 UTC (permalink / raw)
  To: cgroups; +Cc: longman, tj

Hi!
I have tried to use the new remote cgroup feature and I find the
interface unfriendly - requiring cpuset.cpus.exclusive to be a subset
of cpuset.cpus requires the program, which wants to isolate a CPU for
some RT activity, to know what CPUs all ancestor cgroups want to use.

For example consider cgroup hierarchy c1/c2/c3 where my program is
running and wants to isolate CPU N, so
 - It creates new c1/c2/c3/rt cgroup
 - It adds N to cpuset.cpus.exclusive of rt, c3 and c2 cgroup
   (cpuset.cpus.exclusive |= N)
 - Now it should do the same with cpuset.cpus, but that's not possible
   if ancestors cpuset.cpus is empty, which is common configuration and
   there is no good way how to set it in that case.

My proposal is to
 - Not require cpuset.cpus.exclusive to be a subset of cpuset.cpus
 - Create remote cgroup if cpuset.cpus is empty and local cgroup if it's
   set, to give the user explicit control on what cgroup is created.

I have prepared change to test my idea (the next mail). I haven't tested it
thoroughly yet, but I wanted to open the discussion on this topic to know
if such a change could be accepted and I should burn more time on it.

BR,
  Petr

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

end of thread, other threads:[~2024-04-04  8:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 21:33 [RFC/POC]: Make cpuset.cpus.effective independent of cpuset.cpus Petr Malat
2024-03-21 21:39 ` [PATCH] cgroup/cpuset: " Petr Malat
2024-03-25 20:12   ` Tejun Heo
2024-03-26 15:14     ` Waiman Long
2024-03-26 16:17       ` Tejun Heo
2024-04-02 17:04   ` Michal Koutný
2024-04-04  4:36     ` Petr Malat
2024-04-04  8:09       ` Michal Koutný
2024-03-22  1:41 ` [RFC/POC]: " Waiman Long
2024-03-22  5:54   ` Petr Malat

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