From: "Serge E. Hallyn" <serge.hallyn@canonical.com>
To: Matt Helsley <matthltc@us.ibm.com>
Cc: "Serge E. Hallyn" <serge.hallyn@canonical.com>,
linux-kernel@vger.kernel.org,
containers@lists.linux-foundation.org,
Paul Menage <menage@google.com>,
Daniel Lezcano <dlezcano@free.fr>,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [PATCH 3/3] cgroup : remove the ns_cgroup
Date: Thu, 29 Jul 2010 17:39:57 -0500 [thread overview]
Message-ID: <20100729223957.GA12387@hallyn.com> (raw)
In-Reply-To: <20100729214008.GA2785@count0.beaverton.ibm.com>
Quoting Matt Helsley (matthltc@us.ibm.com):
> On Thu, Jul 29, 2010 at 02:58:12PM -0500, Serge E. Hallyn wrote:
> > The ns_cgroup is an annoying cgroup at the namespace / cgroup frontier.
> >
> > For example, a single process can not handle a big amount of namespaces
> > without interacting with this cgroup and falling in an exponential creation
> > time due to the nested cgroup directory depth (eg. /cgroup/<pid>/.../<pid>/...).
> >
> > That was spotted when creating a single process using multiple network namespaces,
> > the objective was 4096 network namespaces, but at 820 netns, the creation time
> > was dramatically slow and the creation time for a namespace increased from 10msec
> > to 10sec. After five hours, the expected numbers of netns was not reached.
> > Without the ns_cgroup interaction, 4K netns are created after 2 minutes.
>
> Is this problem related to Andrew's post here re:
>
> [Bugme-new] [Bug 16417] New: Slow context switches with SMP and CONFIG_FAIR_GROUP_SCHED
Hm, I don't think so (though it should be trivial to test :). The
situation Daniel (the real patch and intro author) cites is I believe
mainly due to the time spent traversing very deep paths. Whereas
Pierre doesn't seem to be even unsharing at all. Rather he's just
creating cgroups with mkdir.
Still I could be wrong.
BTW in the past the only reason I saw for keeping ns cgroup was
to lock tasks into a devices cgroup. Until that lazy guy who was
going to do it gets off his butt and implements user namespaces,
you'll just have to use LSMs, which is the right way.
-serge
next prev parent reply other threads:[~2010-07-29 22:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 19:56 [PATCH 1/3] cgroup : add clone_children control file Serge E. Hallyn
2010-07-29 19:57 ` [PATCH 2/3] cgroup : make the mount options parsing more accurate Serge E. Hallyn
2010-08-03 8:30 ` Li Zefan
2010-07-29 19:58 ` [PATCH 3/3] cgroup : remove the ns_cgroup Serge E. Hallyn
2010-07-29 21:40 ` Matt Helsley
2010-07-29 22:39 ` Serge E. Hallyn [this message]
2010-07-29 23:00 ` Remaining work for userns (WAS Re: [PATCH 3/3] cgroup : remove the ns_cgroup) Matt Helsley
2010-07-29 23:23 ` Serge E. Hallyn
2010-07-31 0:23 ` Remaining work for userns Eric W. Biederman
2010-07-29 21:46 ` [PATCH 3/3] cgroup : remove the ns_cgroup Paul Menage
2010-08-03 8:31 ` Li Zefan
2010-08-03 8:30 ` [PATCH 1/3] cgroup : add clone_children control file Li Zefan
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=20100729223957.GA12387@hallyn.com \
--to=serge.hallyn@canonical.com \
--cc=containers@lists.linux-foundation.org \
--cc=dlezcano@free.fr \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthltc@us.ibm.com \
--cc=menage@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