OpenCloudOS-Kernel/arch
Martin Hicks 753ee72896 [PATCH] VM: early zone reclaim
This is the core of the (much simplified) early reclaim.  The goal of this
patch is to reclaim some easily-freed pages from a zone before falling back
onto another zone.

One of the major uses of this is NUMA machines.  With the default allocator
behavior the allocator would look for memory in another zone, which might be
off-node, before trying to reclaim from the current zone.

This adds a zone tuneable to enable early zone reclaim.  It is selected on a
per-zone basis and is turned on/off via syscall.

Adding some extra throttling on the reclaim was also required (patch
4/4).  Without the machine would grind to a crawl when doing a "make -j"
kernel build.  Even with this patch the System Time is higher on
average, but it seems tolerable.  Here are some numbers for kernbench
runs on a 2-node, 4cpu, 8Gig RAM Altix in the "make -j" run:

			wall  user   sys   %cpu  ctx sw.  sleeps
			----  ----   ---   ----   ------  ------
No patch		1009  1384   847   258   298170   504402
w/patch, no reclaim     880   1376   667   288   254064   396745
w/patch & reclaim       1079  1385   926   252   291625   548873

These numbers are the average of 2 runs of 3 "make -j" runs done right
after system boot.  Run-to-run variability for "make -j" is huge, so
these numbers aren't terribly useful except to seee that with reclaim
the benchmark still finishes in a reasonable amount of time.

I also looked at the NUMA hit/miss stats for the "make -j" runs and the
reclaim doesn't make any difference when the machine is thrashing away.

Doing a "make -j8" on a single node that is filled with page cache pages
takes 700 seconds with reclaim turned on and 735 seconds without reclaim
(due to remote memory accesses).

The simple zone_reclaim syscall program is at
http://www.bork.org/~mort/sgi/zone_reclaim.c

Signed-off-by: Martin Hicks <mort@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21 18:46:14 -07:00
..
alpha [PATCH] alpha/osf_sys: use helper functions to convert between tv and jiffies 2005-05-17 07:59:21 -07:00
arm Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6 2005-06-20 16:00:33 -07:00
arm26 [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
cris [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
frv [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
h8300 [PATCH] h8300 sleep problem 2005-05-31 14:54:17 -07:00
i386 [PATCH] VM: early zone reclaim 2005-06-21 18:46:14 -07:00
ia64 [PATCH] VM: early zone reclaim 2005-06-21 18:46:14 -07:00
m32r [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
m68k [PATCH] M68k: Mark Sun-3 NCR5380 SCSI broken 2005-06-12 20:43:22 -07:00
m68knommu [PATCH] m68knommu: fix scheduling and race problems in idle loop 2005-06-03 08:16:17 -07:00
mips [PATCH] mips: add resource management to pmu 2005-05-17 07:59:20 -07:00
parisc [PATCH] Driver Core: arch: update device attribute callbacks 2005-06-20 15:15:32 -07:00
ppc [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
ppc64 [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
s390 [PATCH] s390: deadlock in appldata 2005-06-04 17:13:00 -07:00
sh [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
sh64 [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
sparc [SPARC]: Remove legacy stuff from cpu_idle(). 2005-05-05 14:53:01 -07:00
sparc64 [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00
um [PATCH] uml: slirp and slip driver cleanups and fixes 2005-06-13 20:58:43 -07:00
v850 [PATCH] convert that currently tests _NSIG directly to use valid_signal() 2005-05-01 08:59:14 -07:00
x86_64 [PATCH] smp_processor_id() cleanup 2005-06-21 18:46:13 -07:00