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

2016-04-07 Thread Ebru Akagunduz
On Thu, Apr 07, 2016 at 10:47:59PM +0300, Cyrill Gorcunov wrote: > On Thu, Apr 07, 2016 at 03:39:05PM -0400, Rik van Riel wrote: > > > This !=) looks like someone got fun ;) > > > > Looks like someone sent out emails before refreshing the > > patch, which is a such an easy mistake to make I must h

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

2016-04-07 Thread Cyrill Gorcunov
On Thu, Apr 07, 2016 at 03:39:05PM -0400, Rik van Riel wrote: > > This !=) looks like someone got fun ;) > > Looks like someone sent out emails before refreshing the > patch, which is a such an easy mistake to make I must have > done it a dozen times by now :) I've been there many times as well :

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

2016-04-07 Thread Rik van Riel
On Thu, 2016-04-07 at 21:58 +0300, Cyrill Gorcunov wrote: > On Thu, Apr 07, 2016 at 08:28:01PM +0300, Ebru Akagunduz wrote: > ... > > > > + swap = get_mm_counter(mm, MM_SWAPENTS); > > + curr_allocstall = sum_vm_event(ALLOCSTALL); > > + /* > > +  * When system under pressure, don't swapin r

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

2016-04-07 Thread Cyrill Gorcunov
On Thu, Apr 07, 2016 at 08:28:01PM +0300, Ebru Akagunduz wrote: ... > + swap = get_mm_counter(mm, MM_SWAPENTS); > + curr_allocstall = sum_vm_event(ALLOCSTALL); > + /* > + * When system under pressure, don't swapin readahead. > + * So that avoid unnecessary resource consuming.

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

2016-04-07 Thread kbuild test robot
Hi Ebru, [auto build test ERROR on next-20160407] [cannot apply to v4.6-rc2 v4.6-rc1 v4.5-rc7 v4.6-rc2] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Ebru-Akagunduz/mm-thp-Fix-unnecessarry-re

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

2016-04-07 Thread kbuild test robot
Hi Ebru, [auto build test ERROR on next-20160407] [cannot apply to v4.6-rc2 v4.6-rc1 v4.5-rc7 v4.6-rc2] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Ebru-Akagunduz/mm-thp-Fix-unnecessarry-re

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

2016-04-07 Thread Rik van Riel
On Thu, 2016-04-07 at 20:28 +0300, 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 swapin

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

2016-04-07 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 and won't trigger direct reclaim when swapin readahead. The patch