From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 8 Jun 2008 13:09:35 -0700 From: Andrew Morton Subject: Re: [PATCH 5/5] introduce sysctl of throttle Message-Id: <20080608130935.ea7076fc.akpm@linux-foundation.org> In-Reply-To: <20080605021505.694195095@jp.fujitsu.com> References: <20080605021211.871673550@jp.fujitsu.com> <20080605021505.694195095@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: kosaki.motohiro@jp.fujitsu.com Cc: LKML , linux-mm List-ID: On Thu, 05 Jun 2008 11:12:16 +0900 kosaki.motohiro@jp.fujitsu.com wrote: > introduce sysctl parameter of max task of throttle. > > > # echo 5 > /proc/sys/vm/max_nr_task_per_zone > > > > > Signed-off-by: KOSAKI Motohiro > > > --- > include/linux/swap.h | 2 ++ > kernel/sysctl.c | 9 +++++++++ > mm/vmscan.c | 4 +++- > 3 files changed, 14 insertions(+), 1 deletion(-) > > Index: b/mm/vmscan.c > =================================================================== > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -125,9 +125,11 @@ struct scan_control { > int vm_swappiness = 60; > long vm_total_pages; /* The total number of pages which the VM controls */ > > -#define MAX_RECLAIM_TASKS CONFIG_NR_MAX_RECLAIM_TASKS_PER_ZONE > +#define MAX_RECLAIM_TASKS vm_max_nr_task_per_zone > static LIST_HEAD(shrinker_list); > static DECLARE_RWSEM(shrinker_rwsem); > +int vm_max_nr_task_per_zone __read_mostly > + = CONFIG_NR_MAX_RECLAIM_TASKS_PER_ZONE; It would be nice if we could remove CONFIG_NR_MAX_RECLAIM_TASKS_PER_ZONE altogether. Its a pretty obscure thing and we haven't provided people wait any information which would permit them to tune it anwyay. In which case this patch should be folded into [4/5]. -- 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/ . Don't email: email@kvack.org