On Wed, May 18, 2016 at 09:25:50AM +0200, Michal Hocko wrote: > On Tue 17-05-16 15:32:46, 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. > > Could you be more specific about what was the original issue that led to > this patch? I can understand that marking all those pages new might be > too optimistic but when does it matter actually? Sparsely access file > mmap? Yes, sparse file access. Faultaround gets more pages mapped and all of them are young. Under memory pressure, this makes vmscan to swap out anon pages instead or drop other page cache pages which otherwise stay resident. -- Kirill A. Shutemov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>