Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758364Ab1DYKpF (ORCPT ); Mon, 25 Apr 2011 06:45:05 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:51918 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758328Ab1DYKo7 (ORCPT ); Mon, 25 Apr 2011 06:44:59 -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=Qw2VIt0NQhu4WilR5YhxuiKLISzOeqoXf6OojxAgWnm8tX05RDUtkiL1NA10lHVxEX P/i6BTerYNlS035T4awtwYn6vLB0AMiNM+8g0O6EJUPr5rpNGSlvakqvB+EIjJ/qZixu iSztlX5WpjqIhbtE/pf07FtQjB8tm0tPV6dFE= From: Geunsik Lim To: Ingo Molnar , Andrew Morton Cc: Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" , Hugh Dickins , Steven Rostedt , Darren Hart , linux-kernel , linux-rt-users 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> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1303728272-11408-1-git-send-email-leemgs1@gmail.com> References: <1303728272-11408-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: 1544 Lines: 52 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 -- 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/