From: Paul Jackson <pj@sgi.com>
To: menage@google.com
Cc: akpm@osdl.org, ckrm-tech@lists.sourceforge.net,
mbligh@google.com, rohitseth@google.com, winget@google.com,
dev@sw.ru, sekharan@us.ibm.com, linux-kernel@vger.kernel.org
Subject: Re: [RFC][PATCH 1/4] Generic container system abstracted from cpusets code
Date: Thu, 28 Sep 2006 16:45:36 -0700 [thread overview]
Message-ID: <20060928164536.84039937.pj@sgi.com> (raw)
In-Reply-To: <20060928111407.762783000@menage.corp.google.com>
Be sure to spell out, if you haven't already, that there is just a
single container hierarchy, with each task attached to a single
container in that hierarchy, and each subsystem (e.g. cpusets)
adding its own special files to the common container hierarchy
directories.
It is not the case that each subsystem using containers gets to
concoct its own hierarchy, independent of any other subsystem.
Menage wrote:
> +config CONTAINERS
> + bool "Container support"
> + help
> + This option will let you create and manage process containers,
> + which can be used to aggregate multiple processes, e.g. for
> + the purposes of resource tracking.
I wonder if this should be a configurable ... perhaps not.
If someone configures in one or more of the subsystems, such as
cpusets, that requires CONTAINERS, then we need to enable containers.
Otherwise we don't need to enable CONTAINERS. I don't see what
user input we need here specific to CONTAINERS.
> + * Copyright (C) 2003 BULL SA.
> + * Copyright (C) 2004-2006 Silicon Graphics, Inc.
Perhaps you want to add a Google or Menage copyright here?
> + * 2003-10-22 Updates by Stephen Hemminger.
> + * 2004 May-July Rework by Paul Jackson.
Perhaps time for another log line here, such as:
+ * 2006 Generalized to containers by Paul Menage.
> + struct list_head sibling; /* my parents children */
> + struct list_head children; /* my children */
> +
> + struct container *parent; /* my parent */
> + struct dentry *dentry; /* container fs entry */
Delete extra tab after semi-colon on parent line.
> + 2) mount -t container none /dev/container
(Yes - this pertains to something this you took as is from the current
cpuset docmentation ...) Please don't use 'none' for this argument to
mount. Use some string relevant to the type of filesystem being
mounted. This argument shows up in error messages from mount, and as
it notes in the mount(8) man page, when speaking of the proc file
system, though it applies here too:
The proc file system is not associated with a special device, and when
mounting it, an arbitrary keyword, such as proc can be used instead of
a device specification. (The customary choice none is less fortunate:
the error message `none busy' from umount can be confusing.)
For example, make the above:
mount -t container container /dev/container
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.925.600.0401
next prev parent reply other threads:[~2006-09-28 23:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 10:40 [RFC][PATCH 0/4] Generic container system menage
2006-09-28 10:40 ` [RFC][PATCH 1/4] Generic container system abstracted from cpusets code menage
2006-09-28 23:45 ` Paul Jackson [this message]
2006-10-02 6:48 ` Paul Menage
2006-10-02 8:46 ` [ckrm-tech] " Paul Jackson
2006-10-02 8:48 ` Paul Jackson
2006-09-28 10:40 ` [RFC][PATCH 2/4] Cpusets hooked into containers menage
2006-09-28 23:48 ` Paul Jackson
2006-09-28 10:40 ` [RFC][PATCH 3/4] Add generic multi-subsystem API to containers menage
2006-09-28 10:40 ` [RFC][PATCH 4/4] Simple CPU accounting container subsystem menage
2006-09-28 18:49 ` [RFC][PATCH 0/4] Generic container system Paul Jackson
2006-09-28 19:00 ` Paul Menage
2006-09-29 4:31 ` Paul Jackson
2006-09-29 15:43 ` [ckrm-tech] " Paul Menage
-- strict thread matches above, loose matches on Subject: below --
2006-10-02 9:53 Paul Menage
2006-10-02 9:53 ` [RFC][PATCH 1/4] Generic container system abstracted from cpusets code Paul Menage
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060928164536.84039937.pj@sgi.com \
--to=pj@sgi.com \
--cc=akpm@osdl.org \
--cc=ckrm-tech@lists.sourceforge.net \
--cc=dev@sw.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mbligh@google.com \
--cc=menage@google.com \
--cc=rohitseth@google.com \
--cc=sekharan@us.ibm.com \
--cc=winget@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox