On Thu, Jul 20, 2023 at 12:57 PM Tejun Heo <tj@xxxxxxxxxx> wrote: > > On Thu, Jul 20, 2023 at 11:35:15AM -0400, Johannes Weiner wrote: > > It could also be argued that if you don't want to lose control over a > > set of resources, then maybe don't delete their control domain while > > they are still alive and in use. For example, when restarting a > > workload, and the new instance is expected to have largely the same > > workingset, consider reusing the cgroup instead of making a new one. > > Or just create a nesting layer so that there's a cgroup which represents the > persistent resources and a nested cgroup instance inside representing the > current instance. In practice it is not easy to know exactly which resources are shared and used by which cgroups, especially in a large dynamic environment. > > Thanks. > > -- > tejun