Re: [PATCH -V9 10/21] swap: Swapin a THP in one piece

2018-12-18 Thread Huang, Ying
Daniel Jordan writes: > On Fri, Dec 14, 2018 at 02:27:43PM +0800, Huang Ying wrote: >> diff --git a/mm/huge_memory.c b/mm/huge_memory.c >> index 1cec1eec340e..644cb5d6b056 100644 >> --- a/mm/huge_memory.c >> +++ b/mm/huge_memory.c >> @@ -33,6 +33,8 @@ >> #include >> #include >> #include >>

Re: [PATCH -V9 10/21] swap: Swapin a THP in one piece

2018-12-18 Thread Daniel Jordan
On Fri, Dec 14, 2018 at 02:27:43PM +0800, Huang Ying wrote: > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > index 1cec1eec340e..644cb5d6b056 100644 > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > @@ -33,6 +33,8 @@ > #include > #include > #include > +#include > +#include swap.h is

[PATCH -V9 10/21] swap: Swapin a THP in one piece

2018-12-13 Thread Huang Ying
With this patch, when page fault handler find a PMD swap mapping, it will swap in a THP in one piece. This avoids the overhead of splitting/collapsing before/after the THP swapping. And improves the swap performance greatly for reduced page fault count etc. do_huge_pmd_swap_page() is added in th