Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754426Ab3F1Dqq (ORCPT ); Thu, 27 Jun 2013 23:46:46 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:58806 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754101Ab3F1Dqo (ORCPT ); Thu, 27 Jun 2013 23:46:44 -0400 Message-ID: <1372391198.5989.110.camel@marge.simpson.net> Subject: Re: cgroup: status-quo and userland efforts From: Mike Galbraith To: Tejun Heo Cc: Tim Hockin , Li Zefan , Containers , Cgroups , bsingharora , "dhaval.giani" , Kay Sievers , jpoimboe , "Daniel P. Berrange" , lpoetter , workman-devel , "linux-kernel@vger.kernel.org" Date: Fri, 28 Jun 2013 05:46:38 +0200 In-Reply-To: <20130627180143.GD5599@mtj.dyndns.org> References: <20130406012159.GA17159@mtj.dyndns.org> <20130422214159.GG12543@htj.dyndns.org> <20130625000118.GT1918@mtj.dyndns.org> <20130626212047.GB4536@htj.dyndns.org> <1372311907.5871.78.camel@marge.simpson.net> <20130627180143.GD5599@mtj.dyndns.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Provags-ID: V02:K0:aYym3stX7kz8DKKUZJfU0LYAhmlLKRK1TjBnIiBbQsl d14Y20/5PjoVQuqx0YLX9wsX1iQrBhdamZM009jSdIkN0flwo/ QqR/FV35DSD4J6Y1mRX1oyvYe7dsEpgU5q1qpSiGguB/U26MXw fBXDJcEPm8kN6MN6nPRMiTcWwOygxUvKQYtNQfx86retPdB8Ae MYfZfKeIAzzvdjNu08TuAC1DYIIjRlpmr76pRSEhczVP9+LQzr ixPfGmm+slwhp4zsUCrbJz7TMz0Xx7bOO3D4vqYD4PTTEtK2dI h+rN0jVlbjGQ4YOwxqx/BSWgD1E95v995jK1hA31lkz2YixUi7 Kzz5C0l8N78f38enisBeE28QXFLN0o0UZefziS9O0JwDG9f6M4 JlLPQ2q4kYnkg== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3873 Lines: 79 On Thu, 2013-06-27 at 11:01 -0700, Tejun Heo wrote: > Hello, Mike. > > On Thu, Jun 27, 2013 at 07:45:07AM +0200, Mike Galbraith wrote: > > I can understand some alarm. When I saw the below I started frothing at > > the face and howling at the moon, and I don't even use the things much. > > Can I ask why? The reasons are not apparent to me. Sure, because in private property and I mandatory agent, I see "gimme yer wallet bitch", an incredibly arrogant and brutal mugging. That's not the way it's meant, I know that, but that's how it comes across. You asked, so you get the straight up answer. Offering to manage cgroups is one thing, very generous, forcefully placing itself between user and kernel quite another. Perhaps I misread, but my interpretation was that the intent is to make systemd a mandatory agent, even saw reference to it taking up residence in the kernel tree (that bit made me chuckle, pull request would have to be very cleverly worded methinks). I'm sure it will be quite capable, its authors are. However, when I want to talk to my kernel, I expect to be able to tell anyone else using the phone to hang up.. now. > > http://lists.freedesktop.org/archives/systemd-devel/2013-June/011521.html > > > > Hierarchy layout aside, that "private property" bit says that the folks > > who currently own and use the cgroups interface will lose direct access > > to it. I can imagine folks who have become dependent upon an on the fly > > management agents of their own design becoming a tad alarmed. > > They're gonna be able to do what they've been doing for the > foreseeable future if they choose not to use systemd's unified Those are the comforting words I wanted to hear, that the user chooses, that the user will not find that this that or any other userspace agent gains the right to insert itself between user and kernel. > AFAICS, having a userland agent which has overall knowledge of the > hierarchy and enforcesf structure and limiations is a requirement to > make cgroup generally useable and useful. It's useful now, usable to the point that enterprise users exist who have integrated cgroups into their business model. But then you know that. Sure, there are problems, things could and no doubt will get a lot better. However, wrt userspace agent, no agent is going to be the right answer for all, so that agent needs to have a step aside button so another agent can be tasked with the managerial duties, whether that be little ole /me or Aunt Tilly piddling with this and that because we damn well feel like it, or BigFoot company X going massively wild and crazy doing their business thing. > For systemd based systems, > systemd serving that role isn't too crazy. It's sure gonna have > teeting issues at the beginning but it has all the necessary > information to manage workloads on the system. No, it's not at all crazy, _offering_ the user a managerial service is great, generous, way to go guys, pass out the white hats. Use force, and those pretty white hats turn black as night, hero to villain. > A valid issue is interoperability between systemd and non-systemd > systems. I don't have an immediately good answer for that. I wrote > in another reply but making cgroup generally available is a pretty new > effort and we're still in the process of figuring out what the right > constructs and abstractions are. Hopefully, we'll be able to reach a > common set of abstractions to base things on top in itme. systemd and no systemd is also a valid issue. I'm sure it'll all get worked out, but that link, and others like it make me see bright red. -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/