summaryrefslogtreecommitdiffstats
path: root/include/linux/vmstat.h
diff options
context:
space:
mode:
authorMel Gorman2016-07-29 00:46:53 +0200
committerLinus Torvalds2016-07-29 01:07:41 +0200
commit3b8c0be43cb844b3cd26fac00e7663a1201176fd (patch)
tree398947f7f2b165b9a891f176ea19bec84f269224 /include/linux/vmstat.h
parentmm, page_alloc: remove fair zone allocation policy (diff)
downloadkernel-qcow2-linux-3b8c0be43cb844b3cd26fac00e7663a1201176fd.tar.gz
kernel-qcow2-linux-3b8c0be43cb844b3cd26fac00e7663a1201176fd.tar.xz
kernel-qcow2-linux-3b8c0be43cb844b3cd26fac00e7663a1201176fd.zip
mm: page_alloc: cache the last node whose dirty limit is reached
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(). Link: http://lkml.kernel.org/r/1467970510-21195-31-git-send-email-mgorman@techsingularity.net Signed-off-by: Mel Gorman <mgorman@techsingularity.net> Acked-by: Vlastimil Babka <vbabka@suse.cz> Cc: Hillf Danton <hillf.zj@alibaba-inc.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Minchan Kim <minchan@kernel.org> Cc: Rik van Riel <riel@surriel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/vmstat.h')
0 files changed, 0 insertions, 0 deletions