On Tue, 2016-05-17 at 15:32 +0300, Kirill A. Shutemov wrote: > Currently, faultaround code produces young pte. This can screw up > vmscan > behaviour[1], as it makes vmscan think that these pages are hot and > not > push them out on first round. > > Let modify faultaround to produce old pte, so they can easily be > reclaimed under memory pressure. > > This can to some extend defeat purpose of faultaround on machines > without hardware accessed bit as it will not help up with reducing > number of minor page faults. > > We may want to disable faultaround on such machines altogether, but > that's subject for separate patchset. > > [1] https://lkml.kernel.org/r/1460992636-711-1-git-send-email-vinmeno > n@codeaurora.org > > Signed-off-by: Kirill A. Shutemov > Cc: Mel Gorman > Cc: Rik van Riel > Cc: Michal Hocko > Cc: Vinayak Menon > Cc: Minchan Kim > Acked-by: Rik van Riel -- All Rights Reversed.