Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1649847
| From | Waiman Long <longman@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 |
| Date | 2017-05-24 20:20 +0200 |
| Message-ID | <tKJ33-5LE-1@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <tIXaa-7Bx-21@gated-at.bofh.it> <tIXDb-823-11@gated-at.bofh.it> <tKIqm-5iH-13@gated-at.bofh.it> <tKIA3-5m6-47@gated-at.bofh.it> <tKIJI-5pb-17@gated-at.bofh.it> |
| Organization | Red Hat |
On 05/24/2017 01:56 PM, Tejun Heo wrote: > Hello, > > On Wed, May 24, 2017 at 01:49:46PM -0400, Waiman Long wrote: >> What I am saying is as follows: >> / A >> P - B >> \ C >> >> # echo +memory > P/cgroups.subtree_control >> # echo -memory > P/A/cgroup.controllers >> # echo "#memory" > P/B/cgroup.controllers >> >> The parent grants the memory controller to its children - A, B and C. >> Child A has the memory controller explicitly disabled. Child B has the >> memory controller in pass-through mode, while child C has the memory >> controller enabled by default. "echo +memory > cgroup.controllers" is >> not allowed. There are 2 possible choices with regard to the '-' or '#' >> prefixes. We can allow them before the grant from the parent or only >> after that. In the former case, the state remains dormant until after >> the grant from the parent. > Ah, I see, you want cgroup.controllers to be able to mask available > controllers by the parent. Can you expand your example with further > nesting and how #memory on cgroup.controllers would affect the nested > descendant? > > Thanks. > I would allow enabling the controller in subtree_control if granted from the parent and not explicitly disabled. IOW, both B and C can "echo +memory" to their subtree_control to grant memory controller to their children, but not A. A has to re-enable memory controller or set it to pass-through mode before it can enable it in subtree_control. I need to clarify that "echo +memory > cgroup.controllers" is allowed to re-enable it, but not without the granting from its parent. Cheers, Longman
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Waiman Long <longman@redhat.com> - 2017-05-15 15:40 +0200
Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Tejun Heo <tj@kernel.org> - 2017-05-19 23:00 +0200
Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Waiman Long <longman@redhat.com> - 2017-05-19 23:30 +0200
Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Tejun Heo <tj@kernel.org> - 2017-05-24 19:40 +0200
Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Waiman Long <longman@redhat.com> - 2017-05-24 19:50 +0200
Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Tejun Heo <tj@kernel.org> - 2017-05-24 20:00 +0200
Re: [RFC PATCH v2 13/17] cgroup: Allow fine-grained controllers control in cgroup v2 Waiman Long <longman@redhat.com> - 2017-05-24 20:20 +0200
csiph-web