Re: [PATCH] mm: move swap-in anonymous page into active list

2016-07-29 Thread Nadav Amit
Rik van Riel wrote: > On Fri, 2016-07-29 at 12:25 +0900, Minchan Kim wrote: >> Every swap-in anonymous page starts from inactive lru list's head. >> It should be activated unconditionally when VM decide to reclaim >> because page table entry for the page always usually has marked >> accessed bit.

Re: [PATCH] mm: move swap-in anonymous page into active list

2016-07-29 Thread Rik van Riel
On Fri, 2016-07-29 at 12:25 +0900, Minchan Kim wrote: > Every swap-in anonymous page starts from inactive lru list's head. > It should be activated unconditionally when VM decide to reclaim > because page table entry for the page always usually has marked > accessed bit. Thus, their window size for

Re: [PATCH] mm: move swap-in anonymous page into active list

2016-07-29 Thread Johannes Weiner
On Fri, Jul 29, 2016 at 12:25:40PM +0900, Minchan Kim wrote: > Every swap-in anonymous page starts from inactive lru list's head. > It should be activated unconditionally when VM decide to reclaim > because page table entry for the page always usually has marked > accessed bit. Thus, their window s

Re: [PATCH] mm: move swap-in anonymous page into active list

2016-07-28 Thread Minchan Kim
On Fri, Jul 29, 2016 at 12:25:40PM +0900, Minchan Kim wrote: > Every swap-in anonymous page starts from inactive lru list's head. > It should be activated unconditionally when VM decide to reclaim > because page table entry for the page always usually has marked > accessed bit. Thus, their window s

[PATCH] mm: move swap-in anonymous page into active list

2016-07-28 Thread Minchan Kim
Every swap-in anonymous page starts from inactive lru list's head. It should be activated unconditionally when VM decide to reclaim because page table entry for the page always usually has marked accessed bit. Thus, their window size for getting a new referece is 2 * NR_inactive + NR_active while o