From: Tejun Heo Subject: Re: [Documentation] State of CPU controller in cgroup v2 Date: Mon, 29 Aug 2016 18:35:26 -0400 Message-ID: <20160829223526.GI28713@mtj.duckdns.org> References: <20160805170752.GK2542@mtj.duckdns.org> <1471757654.2354.97.camel@HansenPartnership.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ACav7b5nP8doyIOYLRUe1MHk9IdzmG6toIOw59BtYMI=; b=QY3x3pQXNeLcXo4oGjXMgHlugv4Tarxfs0hh691IQXTmaA1w0beOAoknYtKtHZGpi7 A7CN5yFGfUqAHofpxPPBncIkdyxEIwo2Efc+DWek6DGc3hgUwDngGiDDFQdi/4FV706z TQrs1OKn/98dMr7I3gpONLVC3hViGU4r7OzlfzTV+sJL/ljqU0KDtLDxH9KQZ3LCnba1 V8mPCpgiNW+pHes9RA8h+7s8tOF5wa77dOSmiiomlK1vmesnSuQIz3IH+Kjew89LuRwh wq3I448ffsDsG1tihZlsintJQkOK8Q1xPLwdRW2ARD9ZCv4I32HhP0jgPeGU2CXggL4m zfeg== Content-Disposition: inline In-Reply-To: <1471757654.2354.97.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: James Bottomley Cc: Andy Lutomirski , Ingo Molnar , Mike Galbraith , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , kernel-team-b10kYP2dOMg@public.gmane.org, "open list:CONTROL GROUP (CGROUP)" , Andrew Morton , Paul Turner , Li Zefan , Linux API , Peter Zijlstra , Johannes Weiner , Linus Torvalds Hello, James. On Sat, Aug 20, 2016 at 10:34:14PM -0700, James Bottomley wrote: > I can see that process based is conceptually easier in v2 because you > begin with a process tree, but it would really be a pity to lose the > thread based controls we have now and permanently lose the ability to > create more as we find uses for them. I can't really see how improving > "common resource domain" is a good tradeoff for this. Thread based control for namespace is not a different problem from thread based control for individual applications, right? And the problems with using cgroupfs directly for in-process control still applies the same whether it's system-wide or inside a namespace. One argument could be that inside a namespace, as the cgroupfs is already scoped, cgroup path headaches are less of an issue, which is true; however, that isn't applicable to applications which aren't scoped in thier own namespaces and we can't scope every binary on the system. More importnatly, a given application can't rely on being scoped in a certain way. You can craft a custom config for a specific setup but that's a horrible way to solve the problem of in-application hierarchical resource distribution, and that's what rgroup was all about. Thanks. -- tejun