Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753004AbdLDVrP (ORCPT ); Mon, 4 Dec 2017 16:47:15 -0500 Received: from mail-qt0-f175.google.com ([209.85.216.175]:34327 "EHLO mail-qt0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752682AbdLDVrN (ORCPT ); Mon, 4 Dec 2017 16:47:13 -0500 X-Google-Smtp-Source: AGs4zMZcHS25/M5h4QkDvTArUl3iWvdfr57+xa5Uxim9xDsP0Wwfx2HGVUYmgoZKSf6jla9jH0LAgg== Date: Mon, 4 Dec 2017 13:47:10 -0800 From: Tejun Heo To: "Michael Kerrisk (man-pages)" Cc: lkml Subject: Re: Writing "+pids" to cgroup.subtree_control flie yields EINVAL Message-ID: <20171204214710.GM2421075@devbig577.frc2.facebook.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Content-Length: 732 Lines: 23 Hello, Michael. On Mon, Dec 04, 2017 at 10:35:13PM +0100, Michael Kerrisk (man-pages) wrote: > I was trying to do some simple testing ot the CPU controller > that is merged into 4.15, and ran immediately into some confusion. > In the root cgroup on a freshly booted 4.150-rc1, I try the following: > > # pwd > /sys/fs/cgroup/unified > # echo '+cpu' > cgroup.subtree_control > sh: echo: write error: Invalid argument > > What am I missing> I presume I'm missing something obvious, although > nothing jumped out at me as I read the cgroups-v2.txt file. Checking whether I messed up something really basic... hmmm doesn't seem that way. What do /sys/fs/cgroup/unified/cgroup.controllers and /proc/cgroups say? Thanks. -- tejun