Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbZKDIQX (ORCPT ); Wed, 4 Nov 2009 03:16:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753507AbZKDIQW (ORCPT ); Wed, 4 Nov 2009 03:16:22 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:35061 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753299AbZKDIQW (ORCPT ); Wed, 4 Nov 2009 03:16:22 -0500 Date: Wed, 4 Nov 2009 13:46:18 +0530 From: Balbir Singh To: KAMEZAWA Hiroyuki Cc: libcg-devel , "menage@google.com" , "linux-kernel@vger.kernel.org" , containers@lists.linux-foundation.org, Jan Safranek , Dhaval Giani , Bharata B Rao Subject: Re: [RFC] Mount point suggestions for cgroup Message-ID: <20091104081618.GD3560@balbir.in.ibm.com> Reply-To: balbir@linux.vnet.ibm.com References: <20091104063005.GC3560@balbir.in.ibm.com> <20091104154024.0b8f6123.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20091104154024.0b8f6123.kamezawa.hiroyu@jp.fujitsu.com> 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 Content-Length: 2273 Lines: 65 * KAMEZAWA Hiroyuki [2009-11-04 15:40:24]: > On Wed, 4 Nov 2009 12:00:05 +0530 > Balbir Singh wrote: > > > Hi, All, > > > > We've been having a discussion as to what would be the right place to > > mount the cgroup filesystem. Jan has been proactively looking into > > this. The FHS has no recommendation since cgroup filesystem came in > > much later. > > > > The options are > > > > 1. /dev/cgroup > > 2. /cgroup > > 3. Some place under /sys > > > > The problem with (2) is that it is quite non-standard and pollutes the > > root directory. (3) requires some basic support to create a directory > > for cgroup under /sys. (1) seems the most obvious choice since cpusets > > were mounted under /dev/cpuset, but /dev is controlled by udev. > > > > Given the three choices or any other suggestions, is there a general > > preference as to where we can mount it? The goal is to standardize > > the mount point (if possible). > > > > BTW, the mounting is expected to be done using cgconfigparser present > > in libcgroup. > > > > IMHO, even if anywhere is ok to me, the suggestion should includes the fact > - Each cgroup subsystem can be mounted independenty from other cgroup. > - some cgroup (noop) can be mounted multiple times > etc...there are some points which is different from /proc or /sys. > So, we need multiple mount points. > > Then, to say my own not-seriously-considered idea, I vote for > - /cgroup/[HierarchyName]/ > rather than /dev/ or /sys or /opt. This sounds straightforward. The reason I liked /dev/cgroup was because cpusets could be mounted at /dev/cpuset or /dev/cgroup/cpuset. My concern with /cgroup is that a ls "/" now becomes larger in size. But I'll take your vote for it as +1 for /cgroup. > > If /sys, /sys/cgroup/[HierarchyName] will be candidate. But considering > users can use arbitarary combination of subsystem, using /sys may require > much work, I think. > Yes, Agreed. > Thanks, > -Kame > -- Balbir -- 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/