Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935631Ab0KQWqJ (ORCPT ); Wed, 17 Nov 2010 17:46:09 -0500 Received: from tango.0pointer.de ([85.214.72.216]:33675 "EHLO tango.0pointer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935568Ab0KQWqH (ORCPT ); Wed, 17 Nov 2010 17:46:07 -0500 Date: Wed, 17 Nov 2010 23:45:47 +0100 From: Lennart Poettering To: Peter Zijlstra Cc: Linus Torvalds , Alan Cox , Dhaval Giani , Mike Galbraith , Vivek Goyal , Oleg Nesterov , Markus Trippelsdorf , Mathieu Desnoyers , Ingo Molnar , LKML , Balbir Singh Subject: Re: [RFC/RFT PATCH v3] sched: automated per tty task groups Message-ID: <20101117224547.GA26008@tango.0pointer.de> References: <20101116170312.GA19327@tango.0pointer.de> <20101116181603.GC19327@tango.0pointer.de> <20101116202839.GC27235@tango.0pointer.de> <20101116205243.64e4a67a@lxorguk.ukuu.org.uk> <20101117223411.GA23983@tango.0pointer.de> <1290033435.2109.1282.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1290033435.2109.1282.camel@laptop> Organization: Red Hat, Inc. X-Campaign-1: () ASCII Ribbon Campaign X-Campaign-2: / Against HTML Email & vCards - Against Microsoft Attachments User-Agent: Leviathan/19.8.0 [zh] (Cray 3; I; Solaris 4.711; Console) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1497 Lines: 36 On Wed, 17.11.10 23:37, Peter Zijlstra (a.p.zijlstra@chello.nl) wrote: > > On Wed, 2010-11-17 at 23:34 +0100, Lennart Poettering wrote: > > > > This should fix things for people with systemd and GNOME. Yes, all > > others are left in the cold. Sorry for that. > > Is there an easy opt out for that, other than booting a CONFIG_CGROUP=n > kernel? systemd relies on CONFIG_CGROUP=y, since it useses it for service management. It creates its own name=systemd hierarchy for that with no controllers attached. If you turn that off, then systemd will refuse to boot. However, it does not rely on any of the controllers, and hence you are welcome to disable all cgroup controlls and systemd won't complain. If you want to disable the automatic creation of groups in the 'cpu' hierarchy for user sessions then you can tell pam_systemd that by passing "controllers=" on the PAM config line. ("controllers=cpu" is the implied default.) There's currently no global option to disable the same logic in systemd when it creates 'cpu' cgroups for the various services it runs. However, you can disable that individually with "ControlGroups=cpu:/" in the .service files. I will now add a global option as well. Lennart -- Lennart Poettering - Red Hat, Inc. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/