Skip to content

RFC reduce pid_namespace footprint when not configured

Rasmus Villemoes containers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pid_namespace: remove ->level and ->parent for !CONFIG_PID_NSinclude/linux/pid_namespace.h kernel/acct.c kernel/pid.c+29 -110 replies
2/4pid_namespace: remove .kref field for !CONFIG_PID_NSinclude/linux/pid_namespace.h kernel/pid.c+4 -00 replies
3/4pid_namespace: make pid_nr_ns and pid_vnr static inlines for !CONFIG_PID_NSinclude/linux/pid.h kernel/pid.c+13 -00 replies
4/4pid_namespace: disable_pid_allocation is unused for !CONFIG_PID_NSkernel/pid.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/4] reduce pid_namespace footprint when not configured

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)

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(-)
Signature · 1 line
2.1.3