From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id E2B996B011C for ; Mon, 27 Jun 2011 09:42:30 -0400 (EDT) Received: by mail-pw0-f41.google.com with SMTP id 12so3773863pwi.14 for ; Mon, 27 Jun 2011 06:42:29 -0700 (PDT) From: Geunsik Lim 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> In-Reply-To: <1309182116-26698-1-git-send-email-leemgs1@gmail.com> References: <1309182116-26698-1-git-send-email-leemgs1@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Ingo Molnar , Andrew Morton , Peter Zijlstra , Hugh Dickins , Steven Rostedt Cc: Thomas Gleixner , "H. Peter Anvin" , Darren Hart , linux-kernel , linux-mm 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org