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++) {
> > +
> - /* 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 "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 ba
3 matches
Mail list logo