From: ebiederm@xmission.com (Eric W. Biederman)
To: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Oleg Nesterov <oleg@redhat.com>,
linux-kernel@vger.kernel.org,
Linux Containers <containers@lists.linux-foundation.org>
Subject: Re: [RFC 0/4] reduce pid_namespace footprint when not configured
Date: Wed, 30 Sep 2015 16:00:51 -0500 [thread overview]
Message-ID: <87zj03ei64.fsf@x220.int.ebiederm.org> (raw)
In-Reply-To: <1443646163-31316-1-git-send-email-linux@rasmusvillemoes.dk> (Rasmus Villemoes's message of "Wed, 30 Sep 2015 22:49:19 +0200")
Rasmus Villemoes <linux@rasmusvillemoes.dk> writes:
> A few suggestions for reducing the footprint of pid namespaces when
> CONFIG_PID_NS=n. The savings are admittedly not huge:
>
> $ scripts/bloat-o-meter /tmp/vmlinux.master vmlinux
> add/remove: 0/7 grow/shrink: 30/25 up/down: 368/-1032 (-664)
#ifdefs in C files.
More code to maintain.
Very minor savings.
I don't think it is worth the pain. If anything I would prefer to
remove CONFIG_PID_NS. The CONFIG_PID_NS ifdef really is about keeping
from exposing people to the feature tha don't use it more than it is
about size reduction.
Or do you have a case where this makes the difference between a usable
kernel and a kernel that is not?
Eric
> Rasmus Villemoes (4):
> pid_namespace: remove ->level and ->parent for !CONFIG_PID_NS
> pid_namespace: remove .kref field for !CONFIG_PID_NS
> pid_namespace: make pid_nr_ns and pid_vnr static inlines for
> !CONFIG_PID_NS
> pid_namespace: disable_pid_allocation is unused for !CONFIG_PID_NS
>
> include/linux/pid.h | 11 +++++++++++
> include/linux/pid_namespace.h | 20 ++++++++++++++++++++
> kernel/acct.c | 4 ++--
> kernel/pid.c | 24 +++++++++++++++---------
> 4 files changed, 48 insertions(+), 11 deletions(-)
next prev parent reply other threads:[~2015-09-30 21:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 20:49 Rasmus Villemoes
2015-09-30 20:49 ` [RFC 1/4] pid_namespace: remove ->level and ->parent for !CONFIG_PID_NS Rasmus Villemoes
2015-09-30 20:49 ` [RFC 2/4] pid_namespace: remove .kref field " Rasmus Villemoes
2015-09-30 20:49 ` [RFC 3/4] pid_namespace: make pid_nr_ns and pid_vnr static inlines " Rasmus Villemoes
2015-09-30 20:49 ` [RFC 4/4] pid_namespace: disable_pid_allocation is unused " Rasmus Villemoes
2015-09-30 21:00 ` Eric W. Biederman [this message]
2015-09-30 21:34 ` [RFC 0/4] reduce pid_namespace footprint when not configured Rasmus Villemoes
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=87zj03ei64.fsf@x220.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=containers@lists.linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=oleg@redhat.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
Powered by JetHome