From: Rohit Seth <rohitseth@google.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andrew Morton <akpm@osdl.org>,
CKRM-Tech <ckrm-tech@lists.sourceforge.net>,
devel@openvz.org, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [patch01/05]:Containers(V2): Documentation
Date: Wed, 20 Sep 2006 10:28:47 -0700 [thread overview]
Message-ID: <1158773327.8574.55.camel@galaxy.corp.google.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0609200940550.30754@schroedinger.engr.sgi.com>
On Wed, 2006-09-20 at 09:43 -0700, Christoph Lameter wrote:
> On Tue, 19 Sep 2006, Rohit Seth wrote:
>
> > +Currently we are tracking user memory (both file based
> > +and anonymous). The memory handler is currently deactivating pages
> > +belonging to a container that has gone over the limit. Even though this
> > +allows containers to go over board their limits but 1- once they are
> > +over the limit then they run in degraded manner and 2- if there is any
> > +memory pressure then the (extra) pages belonging to this container are
> > +the prime candidates for swapping (for example). The statistics that
> > +are shown in each container directory are the current values of each
> > +resource consumption.
>
> Containers via cpusets allow a clean implementation of a restricted memory
> area. The system will swap and generate an OOM message if no memory can be
> recovered.
>
> > +4- Add a task to container
> > + cd /mnt/configfs/cotnainers/test_container
> > + echo <pid> > addtask
> > +
> > +Now the <pid> and its subsequently forked children will belong to container
> > +test_container.
> > +
> > +5- Remove a task from container
> > + echo <pid> > rmtask
>
> Could you make that compatible with the way cpusets do it?
>
> > +9- Freeing a container
> > + cd /mnt/configfs/containers/
> > + rmdir test_container
>
> Adding and removal is the same way as cpusets.
Most of the syntax of cpuset is in terms of nodes and CPU numbers. That
is not the case here in containers.
-rohit
next prev parent reply other threads:[~2006-09-20 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 2:17 [patch01/05]:Containers(V2): Documentation Rohit Seth
2006-09-20 16:43 ` Christoph Lameter
2006-09-20 17:28 ` Rohit Seth [this message]
2006-09-20 17:38 ` Christoph Lameter
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=1158773327.8574.55.camel@galaxy.corp.google.com \
--to=rohitseth@google.com \
--cc=akpm@osdl.org \
--cc=ckrm-tech@lists.sourceforge.net \
--cc=clameter@sgi.com \
--cc=devel@openvz.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.