Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755936Ab1F0Nmq (ORCPT ); Mon, 27 Jun 2011 09:42:46 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:47948 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753839Ab1F0Nm3 (ORCPT ); Mon, 27 Jun 2011 09:42:29 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=KYSKlAvDhMWP301IHYOGaYFPVoqB1P2ZbTryBRnW8Z2JVdn+P/1tv4/3hygOl6Hsyu vnFL1pn5sknoFxafl3Ixm/QayIhSQ91kHeFzc4jvVTRMabLMMwmeDunrvhXx18WVGg+h jz9dWil7ZAvB0Wf5OpMOL1zdoZHSssrQdEW+s= From: Geunsik Lim To: Ingo Molnar , Andrew Morton , Peter Zijlstra , Hugh Dickins , Steven Rostedt Cc: Thomas Gleixner , "H. Peter Anvin" , Darren Hart , linux-kernel , linux-mm Subject: [PATCH V2 2/4] munmap: sysctl extension for tunable parameter Date: Mon, 27 Jun 2011 22:41:54 +0900 Message-Id: <1309182116-26698-3-git-send-email-leemgs1@gmail.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1309182116-26698-1-git-send-email-leemgs1@gmail.com> References: <1309182116-26698-1-git-send-email-leemgs1@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1785 Lines: 58 From: Geunsik Lim Support sysctl interface(tunalbe parameter) to find a suitable munmap operation unit at runtime favoringly * sysctl: An interface for examining and dynamically changing munmap opearon size parameters in Linux. In Linux, the sysctl is implemented as a wrapper around file system routines that access contents of files in the /proc Signed-off-by: Geunsik Lim Acked-by: Hyunjin Choi CC: Andrew Morton CC: Peter Zijlstra CC: Steven Rostedt CC: Hugh Dickins CC: Randy Dunlap CC: Ingo Molnar --- kernel/sysctl.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/kernel/sysctl.c b/kernel/sysctl.c index c0bb324..9b85041 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -56,6 +56,7 @@ #include #include #include +#include #include #include @@ -1278,6 +1279,15 @@ static struct ctl_table vm_table[] = { .proc_handler = mmap_min_addr_handler, }, #endif +#ifdef CONFIG_MMU + { + .procname = "munmap_unit_size", + .data = &sysctl_munmap_unit_size, + .maxlen = sizeof(unsigned long), + .mode = 0644, + .proc_handler = munmap_unit_size_handler, + }, +#endif #ifdef CONFIG_NUMA { .procname = "numa_zonelist_order", -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/