Re: [RFC PATCH v3 2/2] mm, thp: convert from optimistic swapin collapsing to conservative

2016-07-20 Thread Rik van Riel
On Sun, 2016-07-10 at 03:10 +0300, Ebru Akagunduz wrote: > To detect whether khugepaged swapin worthwhile, this patch checks > the amount of young pages. There should be at least half of > HPAGE_PMD_NR to swapin. > > Signed-off-by: Ebru Akagunduz > Suggested-by: Minchan Kim > Acked-by: Rik van

[RFC PATCH v3 2/2] mm, thp: convert from optimistic swapin collapsing to conservative

2016-07-09 Thread Ebru Akagunduz
To detect whether khugepaged swapin worthwhile, this patch checks the amount of young pages. There should be at least half of HPAGE_PMD_NR to swapin. Signed-off-by: Ebru Akagunduz Suggested-by: Minchan Kim --- Changes in v2: - Don't change thp design, only notice amount of young pages, if kh