]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Make high and batch sizes of per_cpu_pagelists configurable
authorRohit Seth <rohit.seth@intel.com>
Sun, 8 Jan 2006 09:00:40 +0000 (01:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:12:40 +0000 (20:12 -0800)
commit6804e845422a09f3fb6ae88e2ad46f7d44a42853
tree9f5c237ead93976e5454c5da5d3bba350a2419c5
parent39ed6917de7dc7ce58ba8365a5f14895c2c638e0
[PATCH] Make high and batch sizes of per_cpu_pagelists configurable

As recently there has been lot of traffic on the right values for batch and
high water marks for per_cpu_pagelists.  This patch makes these two
variables configurable through /proc interface.

A new tunable /proc/sys/vm/percpu_pagelist_fraction is added.  This entry
controls the fraction of pages at most in each zone that are allocated for
each per cpu page list.  The min value for this is 8.  It means that we
don't allow more than 1/8th of pages in each zone to be allocated in any
single per_cpu_pagelist.

The batch value of each per cpu pagelist is also updated as a result.  It
is set to pcp->high/4.  The upper limit of batch is (PAGE_SHIFT * 8)

Signed-off-by: Rohit Seth <rohit.seth@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/sysctl/vm.txt
include/linux/mmzone.h
include/linux/sysctl.h
kernel/sysctl.c
mm/page_alloc.c