Re: [PATCH 25/27] mm: page_alloc: Cache the last node whose dirty limit is reached

From: Vlastimil Babka
Date: Fri Jun 17 2016 - 07:31:22 EST


On 06/09/2016 08:04 PM, Mel Gorman wrote:
If a page is about to be dirtied then the page allocator attempts to limit
the total number of dirty pages that exists in any given zone. The call
to node_dirty_ok is expensive so this patch records if the last pgdat
examined hit the dirty limits. In some cases, this reduces the number
of calls to node_dirty_ok().

Signed-off-by: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>