Re: [PATCH v2] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-07-01 Thread Kuo-Hsin Yang
On Fri, Jun 28, 2019 at 10:32:01AM -0400, Johannes Weiner wrote: > On Fri, Jun 28, 2019 at 07:16:27PM +0800, Kuo-Hsin Yang wrote: > > Commit 2a2e48854d70 ("mm: vmscan: fix IO/refault regression in cache > > workingset transition") introduced actual_reclaim parameter. When file > > refaults are det

Re: [PATCH v2] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-06-28 Thread Minchan Kim
On Fri, Jun 28, 2019 at 10:32:01AM -0400, Johannes Weiner wrote: > On Fri, Jun 28, 2019 at 07:16:27PM +0800, Kuo-Hsin Yang wrote: > > When file refaults are detected and there are many inactive file pages, > > the system never reclaim anonymous pages, the file pages are dropped > > aggressively whe

Re: [PATCH v2] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-06-28 Thread Johannes Weiner
On Fri, Jun 28, 2019 at 07:16:27PM +0800, Kuo-Hsin Yang wrote: > When file refaults are detected and there are many inactive file pages, > the system never reclaim anonymous pages, the file pages are dropped > aggressively when there are still a lot of cold anonymous pages and > system thrashes. T

[PATCH v2] mm: vmscan: fix not scanning anonymous pages when detecting file refaults

2019-06-28 Thread Kuo-Hsin Yang
When file refaults are detected and there are many inactive file pages, the system never reclaim anonymous pages, the file pages are dropped aggressively when there are still a lot of cold anonymous pages and system thrashes. This issue impacts the performance of applications with large executable