Re: [PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-15 Thread Mel Gorman
On Fri, Jun 12, 2015 at 03:05:00PM +0800, Hillf Danton wrote: > > - /* Reclaim above the high watermark. */ > > - sc->nr_to_reclaim = max(SWAP_CLUSTER_MAX, high_wmark_pages(zone)); > > + /* Aim to reclaim above all the zone high watermarks */ > > + for (z = 0; z <= end_zone; z++) { > > +

Re: [PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-15 Thread Mel Gorman
On Fri, Jun 12, 2015 at 03:05:00PM +0800, Hillf Danton wrote: - /* Reclaim above the high watermark. */ - sc-nr_to_reclaim = max(SWAP_CLUSTER_MAX, high_wmark_pages(zone)); + /* Aim to reclaim above all the zone high watermarks */ + for (z = 0; z = end_zone; z++) { +

Re: [PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-12 Thread Hillf Danton
> - /* Reclaim above the high watermark. */ > - sc->nr_to_reclaim = max(SWAP_CLUSTER_MAX, high_wmark_pages(zone)); > + /* Aim to reclaim above all the zone high watermarks */ > + for (z = 0; z <= end_zone; z++) { > + zone = pgdat->node_zones + end_zone; s/end_zone/z/ ?

Re: [PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-12 Thread Hillf Danton
- /* Reclaim above the high watermark. */ - sc-nr_to_reclaim = max(SWAP_CLUSTER_MAX, high_wmark_pages(zone)); + /* Aim to reclaim above all the zone high watermarks */ + for (z = 0; z = end_zone; z++) { + zone = pgdat-node_zones + end_zone; s/end_zone/z/ ? +

[PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-08 Thread Mel Gorman
Patch "mm: vmscan: Begin reclaiming pages on a per-node basis" was the start of thinking of reclaim in terms of nodes but kswapd is still very zone-centric. This patch gets rid of many of the node-based versus zone-based decisions. o A node is considered balanced when any eligible lower zone is

[PATCH 07/25] mm, vmscan: Make kswapd think of reclaim in terms of nodes

2015-06-08 Thread Mel Gorman
Patch mm: vmscan: Begin reclaiming pages on a per-node basis was the start of thinking of reclaim in terms of nodes but kswapd is still very zone-centric. This patch gets rid of many of the node-based versus zone-based decisions. o A node is considered balanced when any eligible lower zone is