From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756187Ab2DEXNL (ORCPT ); Thu, 5 Apr 2012 19:13:11 -0400 Received: from mail-pz0-f52.google.com ([209.85.210.52]:44102 "EHLO mail-pz0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751431Ab2DEXNJ (ORCPT ); Thu, 5 Apr 2012 19:13:09 -0400 Date: Thu, 5 Apr 2012 16:13:06 -0700 From: Tejun Heo To: David Rientjes Cc: Mike Galbraith , Andrew Morton , Ingo Molnar , Peter Zijlstra , Paul Menage , LKML , Li Zefan Subject: Re: [patch 0/2] cpusets, cpu_cgroup: disallow attaching kthreadd Message-ID: <20120405231306.GF29517@google.com> References: <20120405160829.GA12854@google.com> <20120405213704.GA29517@google.com> <20120405222400.GC29517@google.com> <20120405225854.GE29517@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey, David. On Thu, Apr 05, 2012 at 04:05:43PM -0700, David Rientjes wrote: > The cgroups of interest here, cpusets and cpu, which have restrictions for > PF_THREAD_BOUND threads is disjoint from memcg and cpuacct, which I'm > saying it's useful for. There's no requirement to mount them all. But if > you do try to do memory accounting in the presence of cpusets, though, it > should be restricted. > > We could still move to a single hierarchy, though, if we introduced a > change to allow PF_THREAD_BOUND to attach to both cpusets and cpu iff > its bound cpu is allowed and then do -EINVAL if its changed while still > attached. Yeah, making the affected controllers to deal with them somehow definitely is an option and will probably have to be chosen for some other cases too (e.g. rt tasks). I still feel lukewarm about the ability to put kthreadd to !root cgroup tho. I mean, for any kind of sane accounting, forked kthreads would have to be further classified and where kthreadd lives and fork happens wouldn't matter all that much. It feels like we're fussing over stuff which isn't that significant either way. Thanks. -- tejun