Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Rik van Riel
On Mon, 2016-03-14 at 02:33 +0300, Kirill A. Shutemov wrote: > On Sun, Mar 13, 2016 at 11:28:55AM +0200, Ebru Akagunduz wrote: > >  > > @@ -2493,7 +2494,14 @@ static void collapse_huge_page(struct > > mm_struct *mm, > >   goto out; > >   } > >   > > - __collapse_huge_page_swapin(mm,

Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Rik van Riel
On Mon, 2016-03-14 at 02:33 +0300, Kirill A. Shutemov wrote: > On Sun, Mar 13, 2016 at 11:28:55AM +0200, Ebru Akagunduz wrote: > >  > > @@ -2493,7 +2494,14 @@ static void collapse_huge_page(struct > > mm_struct *mm, > >   goto out; > >   } > >   > > - __collapse_huge_page_swapin(mm,

Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Kirill A. Shutemov
On Sun, Mar 13, 2016 at 11:28:55AM +0200, Ebru Akagunduz wrote: > Currently khugepaged makes swapin readahead to improve > THP collapse rate. This patch checks vm statistics > to avoid workload of swapin, if unnecessary. So that > when system under pressure, khugepaged won't consume > resources to

Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Kirill A. Shutemov
On Sun, Mar 13, 2016 at 11:28:55AM +0200, Ebru Akagunduz wrote: > Currently khugepaged makes swapin readahead to improve > THP collapse rate. This patch checks vm statistics > to avoid workload of swapin, if unnecessary. So that > when system under pressure, khugepaged won't consume > resources to

Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread kbuild test robot
Hi Ebru, [auto build test ERROR on next-20160311] [cannot apply to v4.5-rc7 v4.5-rc6 v4.5-rc5 v4.5-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url:

Re: [PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread kbuild test robot
Hi Ebru, [auto build test ERROR on next-20160311] [cannot apply to v4.5-rc7 v4.5-rc6 v4.5-rc5 v4.5-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url:

[PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Ebru Akagunduz
Currently khugepaged makes swapin readahead to improve THP collapse rate. This patch checks vm statistics to avoid workload of swapin, if unnecessary. So that when system under pressure, khugepaged won't consume resources to swapin. The patch was tested with a test program that allocates 800MB of

[PATCH v2 2/2] mm, thp: avoid unnecessary swapin in khugepaged

2016-03-13 Thread Ebru Akagunduz
Currently khugepaged makes swapin readahead to improve THP collapse rate. This patch checks vm statistics to avoid workload of swapin, if unnecessary. So that when system under pressure, khugepaged won't consume resources to swapin. The patch was tested with a test program that allocates 800MB of