From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman) Subject: Re: [Devel] Re: containers and cgroups mini-summit @ Linux Plumbers Date: Thu, 26 Jul 2012 03:42:50 -0700 Message-ID: <874nou6bx1.fsf@xmission.com> References: <4FFDF321.4030103@openvz.org> <500FD022.6000608@parallels.com> <877gtr6uo5.fsf@xmission.com> <50110AE6.2080701@parallels.com> <50110D53.2090407@parallels.com> Mime-Version: 1.0 Return-path: In-Reply-To: <50110D53.2090407-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> (Glauber Costa's message of "Thu, 26 Jul 2012 13:26:43 +0400") Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Glauber Costa Cc: Frederic Weisbecker , Balbir Singh , Pavel Emelyanov , Suleiman-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, Daniel Lezcano , Tim Hockin , Greg Thelen , Paul Turner , devel-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, Serge Hallyn , Souhlal , Tejun Heo , Dave Kleikamp , Dhaval Giani , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, KAMEZAWA Hiroyuki , Maxim-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org, Johannes Weiner , Rohit Seth , Patlasov Glauber Costa writes: >>> >>> Another old issue is that unless I have missed something control groups >>> are still broken for generic use in containers. Does anyone care? >>> Are there any plans on fixing this issue? >>> > > What is "generic use in containers" ? I am using them alright, but not > sure if this counts as generic or specific =) The general container use case would be. - Create a new mount namespace. - Create fresh mounts of all of the control groups like I would do at boot, with no consideration to any other control group state. - Start forking processes. The expected semantics would be something like chroot for control groups, where all of the control groups that are created by fresh mounts are relative to whatever state the process of being in a control group that the process that mounted them was in. Last I looked the closest you could come to that was bind mounts, and even with bind mounts you get into weird things where control groups are bound into hierarchies and you may be running a distribution that wants it's control groups bound into different hierarchies. Last I looked this was just about a total disaster, and the only thing that allowed systemd to run in containers was the fact that systemd did not user controllers. Eric