From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: cgroups(7): documenting /sys/kernel/cgroup files Date: Wed, 10 Jan 2018 09:39:42 -0800 Message-ID: <20180110173942.GH3668920@devbig577.frc2.facebook.com> References: <20180110124407.GA26913@castle.DHCP.thefacebook.com> <20180110140239.GX3668920@devbig577.frc2.facebook.com> <20180110173340.GG3668920@devbig577.frc2.facebook.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EUJ45MAt9HEGUx6b/RGtzML0S1qDBL7PV0S3EABt02Q=; b=QlwgFp2DOszRDiVvjAQKXS8/RQrT9tfumbGNLR2F8ANWkRAIjb/BycjCgrsLBLkPCU QbFZWMGdUnubya7ePoJhHSqvfx6IVi8uOkqUBndLG6jrmk3IAoXWsDwZcdFMHjTgffyY fyGLNmmvfcEQYHLAsQSXp93KI4tchnewM6JX5NsqMQwTRRY4UEsWeED/jxsDHltd1HVx 6E1JdkQLk4uqnDgu/y7YFlsZRX/eOJzFCUk2VRmLvmsH4Zb7CYOh7L7j6vIWhO578NDE 8jxUSURxXfRLFpe0xuQsa+1iJmXFZ/KC6un6RNu/V5lZwRgf5q+jRPMNKWF+IlYPchbq VJ2A== Content-Disposition: inline In-Reply-To: <20180110173340.GG3668920-4dN5La/x3IkLX0oZNxdnEQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org> Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Michael Kerrisk (man-pages)" Cc: Roman Gushchin , "Serge E. Hallyn" , linux-man , lkml , "open list:CONTROL GROUP (CGROUP)" Hello, again. On Wed, Jan 10, 2018 at 09:33:40AM -0800, Tejun Heo wrote: > Hello, Michael. > > On Wed, Jan 10, 2018 at 06:31:20PM +0100, Michael Kerrisk (man-pages) wrote: > > So, I am confused. According to Documentation/cgroup-v2.txt, > > cgoup.threads is delegated: > > > > [[ > > Model of Delegation > > ~~~~~~~~~~~~~~~~~~~ > > > > A cgroup can be delegated in two ways. First, to a less privileged > > user by granting write access of the directory and its "cgroup.procs", > > "cgroup.threads" and "cgroup.subtree_control" files to the user. > > Second, if the "nsdelegate" mount option is set, automatically to a > > cgroup namespace on namespace creation. > > ]] > > > > So, is that a mistake in that text file? > > Yes, it is. I probably copy&pasted from an earlier version where we > were marking threaded domains instead of threaded roots. Will fix it > right away. Jesus christ, sorry. Roman and the document are right. * cgroup.type is not delegatble, marking it threaded makes the cgroup join the parent's domain. * cgroup.threads is delegatable, because marking the child cgroups as threaded make them join the subtree root, and the threads can be dispersed across the parent - the delegated root here - and the subtree of the child which is marked threaded. I'll apply Roman's patch. Sorry about the confusion. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html