Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752320AbeAJRpD (ORCPT + 1 other); Wed, 10 Jan 2018 12:45:03 -0500 Received: from mail-qk0-f176.google.com ([209.85.220.176]:45371 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbeAJRpA (ORCPT ); Wed, 10 Jan 2018 12:45:00 -0500 X-Google-Smtp-Source: ACJfBos18kdjX6JsM5BZmJzbSv0LUCFwcbOR9PGM4IK8KWKKQ0FPolC8GaydamS+SJAn747P/wv9jQ== Date: Wed, 10 Jan 2018 09:44:57 -0800 From: Tejun Heo To: Roman Gushchin Cc: "Michael Kerrisk (man-pages)" , "Serge E. Hallyn" , linux-man , lkml , "open list:CONTROL GROUP (CGROUP)" Subject: Re: cgroups(7): documenting /sys/kernel/cgroup files Message-ID: <20180110174457.GI3668920@devbig577.frc2.facebook.com> References: <20180110124407.GA26913@castle.DHCP.thefacebook.com> <20180110140239.GX3668920@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180110140239.GX3668920@devbig577.frc2.facebook.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 06:02:39AM -0800, Tejun Heo wrote: > Hello, > > On Wed, Jan 10, 2018 at 04:44:14AM -0800, Roman Gushchin wrote: > > cgroup.threads is not listed because it's not delegatable (doesn't have > > CFTYPE_NS_DELEGATABLE flag set). I don't know if it was intended or just > > an accident (I believe the latter). > > So, thread mode isn't delegatble. Marking a cgroup as threaded turns > that subtree threaded and join the parent's domain, so we can't allow > delegation roots to be turned threaded - just like we can't mark the > root cgroup threaded, and I'm not really not sure what it means to > delegate a portion of threaded subtree. Please disregard. Just like we can't mark the root cgroup threaded, we can't mark delegated subtree root's threaded, so cgroup.type is not delegatable. However, the delegated root's children can definitely be marked threadaed and they will join the delegated root's domain and the threads are free to move between root and the threaded subtree. Thanks. -- tejun