mm, vmscan: Begin reclaiming pages on a per-node basis
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines
(quoted diff) +0
-6@@ -3207,15 +3228,14 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx) sc.may_writepage = 1; /* - * Now scan the zone in the dma->highmem direction, stopping - * at the last zone which needs scanning. - * - * We do this because the page allocator works in the opposite - * direction. This prevents the page allocator from allocating - * pages behind kswapd's direction of progress, which would
Review static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx) · line 3238
Quoted 10 lines
(quoted diff) +7
-2- * cause too much scanning of the lower zones. + * Continue scanning in the highmem->dma direction stopping at + * the last zone which needs scanning. This may reclaim lowmem + * pages that are not necessary for zone balancing but it + * preserves LRU ordering. It is assumed that the bulk of + * allocation requests can use arbitrary zones with the + * possible exception of big highmem:lowmem configurations. */ - for (i = 0; i <= end_zone; i++) { + for (i = end_zone; i >= end_zone; i--) {
s/i >= end_zone;/i >= 0;/ ?
Review static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx) · line 3241
Quoted 3 lines
(quoted diff) +0
-0struct zone *zone = pgdat->node_zones + i; if (!populated_zone(zone))
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 14 lines · Hillf Danton
Quoted 14 lines
(quoted diff) +3
-7@@ -3207,15 +3228,14 @@ static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx) sc.may_writepage = 1; /* - * Now scan the zone in the dma->highmem direction, stopping - * at the last zone which needs scanning. - * - * We do this because the page allocator works in the opposite - * direction. This prevents the page allocator from allocating - * pages behind kswapd's direction of progress, which would - * cause too much scanning of the lower zones. + * Continue scanning in the highmem->dma direction stopping at + * the last zone which needs scanning. This may reclaim lowmem + * pages that are not necessary for zone balancing but it
Quoted 9 lines
Review static int balance_pgdat(pg_data_t *pgdat, int order, int classzone_idx) · line 3238
Quoted 6 lines
(quoted diff) +4
-1+ * preserves LRU ordering. It is assumed that the bulk of + * allocation requests can use arbitrary zones with the + * possible exception of big highmem:lowmem configurations. */ - for (i = 0; i <= end_zone; i++) { + for (i = end_zone; i >= end_zone; i--) {s/i >= end_zone;/i >= 0;/ ?
Yes although it's eliminated by "mm, vmscan: Make kswapd reclaim in terms of nodes"
Signature · 8 lines
Mel Gorman SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>