Re: [PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-07-25 Thread Rik van Riel
On Mon, 2017-07-24 at 13:18 +0800, Huang, Ying wrote: > From: Huang Ying > > The normal swap slot reclaiming can be done when the swap count > reaches SWAP_HAS_CACHE.  But for the swap slot which is backing a > THP, > all swap slots backing one THP must be reclaimed

Re: [PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-07-25 Thread Rik van Riel
On Mon, 2017-07-24 at 13:18 +0800, Huang, Ying wrote: > From: Huang Ying > > The normal swap slot reclaiming can be done when the swap count > reaches SWAP_HAS_CACHE.  But for the swap slot which is backing a > THP, > all swap slots backing one THP must be reclaimed together, because > the >

[PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-07-23 Thread Huang, Ying
From: Huang Ying The normal swap slot reclaiming can be done when the swap count reaches SWAP_HAS_CACHE. But for the swap slot which is backing a THP, all swap slots backing one THP must be reclaimed together, because the swap slot may be used again when the THP is swapped

[PATCH -mm -v3 02/12] mm, THP, swap: Support to reclaim swap space for THP swapped out

2017-07-23 Thread Huang, Ying
From: Huang Ying The normal swap slot reclaiming can be done when the swap count reaches SWAP_HAS_CACHE. But for the swap slot which is backing a THP, all swap slots backing one THP must be reclaimed together, because the swap slot may be used again when the THP is swapped out again later. So