]> err.no Git - linux-2.6/commit
[PATCH] Add NUMA policy support for huge pages.
authorChristoph Lameter <clameter@engr.sgi.com>
Fri, 6 Jan 2006 08:10:46 +0000 (00:10 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:23 +0000 (08:33 -0800)
commit5da7ca86078964cbfe6c83efc1205904587706fe
treea64a7824e90b42d6fdd71e6cb652362beb8983a1
parent96df9333c94d7d5aeceb21f6c5e7ae8ff34753cf
[PATCH] Add NUMA policy support for huge pages.

The huge_zonelist() function in the memory policy layer provides an list of
zones ordered by NUMA distance.  The hugetlb layer will walk that list looking
for a zone that has available huge pages but is also in the nodeset of the
current cpuset.

This patch does not contain the folding of find_or_alloc_huge_page() that was
controversial in the earlier discussion.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@muc.de>
Acked-by: William Lee Irwin III <wli@holomorphy.com>
Cc: Adam Litke <agl@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/hugetlb.h
include/linux/mempolicy.h
mm/hugetlb.c
mm/mempolicy.c