From: "Paul Menage" <menage@google.com>
To: "Dhaval Giani" <dhaval@linux.vnet.ibm.com>
Cc: pj@sgi.com, danms@us.ibm.com, "Balbir Singh" <balbir@in.ibm.com>,
lkml <linux-kernel@vger.kernel.org>,
libcg-devel <libcg-devel@lists.sourceforge.net>
Subject: Re: Default values for cpuset.mems, cpus for children created
Date: Thu, 4 Sep 2008 16:03:43 -0700 [thread overview]
Message-ID: <6599ad830809041603t320a15eakdfbc6fcab232aa59@mail.gmail.com> (raw)
In-Reply-To: <20080815193132.GE11844@linux.vnet.ibm.com>
On Fri, Aug 15, 2008 at 12:31 PM, Dhaval Giani
<dhaval@linux.vnet.ibm.com> wrote:
> Now an application programmer does not really care where and how
> subsystems are mounted (or at least that is what libcgroup aims to
> achieve :-) ). And such a scenario when the cpuset has not been handled
> is going to lead to failures which a user is not expecting.
>
> To work around this, I am making a change which will just set the values
> which the parent group has for unfilled values, but I can already see
> cpuset breaking that assumption as well. (for example exclusive
> cpusets).
Yes, this is an awkwardness with the cpusets model of recursively
sharing a set of identifiable resources. Quite apart from the
backwards compatibility issue, if you make new cpusets inherit their
parent's resources you break the exclusive setting, and if you don't
you require special setup before the cgroup can be used.
There's already a precedent in the cpuset_clone() function, which does
inherit the parent's resources, but I don't think the clone behaviour
is widely used, and even that doesn't handle the case of exclusive
siblings.
I'm inclined to say that this is a userspace bug - if you don't want
cpusets attached to your cgroup hierarchy, don't include them in the
set of mounted subsystems.
Paul
prev parent reply other threads:[~2008-09-04 23:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-15 19:31 Dhaval Giani
2008-09-04 23:03 ` Paul Menage [this message]
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=6599ad830809041603t320a15eakdfbc6fcab232aa59@mail.gmail.com \
--to=menage@google.com \
--cc=balbir@in.ibm.com \
--cc=danms@us.ibm.com \
--cc=dhaval@linux.vnet.ibm.com \
--cc=libcg-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=pj@sgi.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
all inboxes | Powered by JetHome®