From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932940AbbI3Utw (ORCPT ); Wed, 30 Sep 2015 16:49:52 -0400 Received: from mail-la0-f48.google.com ([209.85.215.48]:35047 "EHLO mail-la0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932561AbbI3Utt (ORCPT ); Wed, 30 Sep 2015 16:49:49 -0400 From: Rasmus Villemoes To: "Eric W. Biederman" , Oleg Nesterov Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [RFC 0/4] reduce pid_namespace footprint when not configured Date: Wed, 30 Sep 2015 22:49:19 +0200 Message-Id: <1443646163-31316-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.1.3