Re: [PATCH] mm: account pglazyfreed exactly

2015-12-04 Thread Andrew Morton
On Thu, 3 Dec 2015 21:51:04 +0900 Minchan Kim wrote: > If anon pages are zapped by unmapping between page_mapped check > and try_to_unmap in shrink_page_list, they could be !PG_dirty > although thre are not MADV_FREEed pages so that VM accoutns it > as pglazyfreed wrongly. > > To fix, this patc

[PATCH] mm: account pglazyfreed exactly

2015-12-03 Thread Minchan Kim
If anon pages are zapped by unmapping between page_mapped check and try_to_unmap in shrink_page_list, they could be !PG_dirty although thre are not MADV_FREEed pages so that VM accoutns it as pglazyfreed wrongly. To fix, this patch counts the number of lazyfree ptes in try_to_unmap_one and try_to_