Re: [PATCH 04/25] mm, vmscan: Begin reclaiming pages on a per-node basis

2015-06-15 Thread Mel Gorman
On Thu, Jun 11, 2015 at 03:58:14PM +0800, Hillf Danton wrote: > > @@ -1319,6 +1322,7 @@ static unsigned long isolate_lru_pages(unsigned long > > nr_to_scan, > > struct list_head *src = &lruvec->lists[lru]; > > unsigned long nr_taken = 0; > > unsigned long scan; > > + LIST_HEAD(pages_

Re: [PATCH 04/25] mm, vmscan: Begin reclaiming pages on a per-node basis

2015-06-11 Thread Hillf Danton
> @@ -1319,6 +1322,7 @@ static unsigned long isolate_lru_pages(unsigned long > nr_to_scan, > struct list_head *src = &lruvec->lists[lru]; > unsigned long nr_taken = 0; > unsigned long scan; > + LIST_HEAD(pages_skipped); > > for (scan = 0; scan < nr_to_scan && !list_emp

[PATCH 04/25] mm, vmscan: Begin reclaiming pages on a per-node basis

2015-06-08 Thread Mel Gorman
This patch makes reclaim decisions on a per-node basis. A reclaimer knows what zone is required by the allocation request and skips unrelated pages. In many cases this will be ok because it's a GFP_HIGHMEM request of some description. On 64-bit, ZONE_DMA32 requests will cause some problems but 32-b