From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geunsik Lim Subject: [PATCH 2/4] munmap: sysctl extension for tunable parameter Date: Mon, 25 Apr 2011 19:44:30 +0900 Message-ID: <1303728272-11408-3-git-send-email-leemgs1@gmail.com> References: <1303728272-11408-1-git-send-email-leemgs1@gmail.com> Cc: Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" , Hugh Dickins , Steven Rostedt , Darren Hart , linux-kernel , linux-rt-users To: Ingo Molnar , Andrew Morton Return-path: In-Reply-To: <1303728272-11408-1-git-send-email-leemgs1@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org 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 --- 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