From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 10 Nov 2005 16:44:40 -0800 (PST) From: Christoph Lameter Subject: RE: [PATCH] dequeue a huge page near to this node In-Reply-To: <200511102334.jAANY1g21612@unix-os.sc.intel.com> Message-ID: References: <200511102334.jAANY1g21612@unix-os.sc.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: "Chen, Kenneth W" Cc: Adam Litke , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@osdl.org List-ID: On Thu, 10 Nov 2005, Chen, Kenneth W wrote: > Looks great! Well in that case, we may do even more: Make huge pages obey cpusets. Signed-off-by: Christoph Lameter Index: linux-2.6.14-mm1/mm/hugetlb.c =================================================================== --- linux-2.6.14-mm1.orig/mm/hugetlb.c 2005-11-10 15:02:05.000000000 -0800 +++ linux-2.6.14-mm1/mm/hugetlb.c 2005-11-10 16:29:16.000000000 -0800 @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -41,7 +42,8 @@ static struct page *dequeue_huge_page(vo for (z = zonelist->zones; *z; z++) { nid = (*z)->zone_pgdat->node_id; - if (!list_empty(&hugepage_freelists[nid])) + if (cpuset_zone_allowed(*z, GFP_HIGHUSER) && + !list_empty(&hugepage_freelists[nid])) break; } -- 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