Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758258AbcCCWIP (ORCPT ); Thu, 3 Mar 2016 17:08:15 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:36603 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756997AbcCCWIM (ORCPT ); Thu, 3 Mar 2016 17:08:12 -0500 Date: Fri, 4 Mar 2016 00:08:03 +0200 From: Ebru Akagunduz To: hughd@google.com, riel@redhat.com Cc: linux-mm@kvack.org, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, iamjoonsoo.kim@lge.com, gorcunov@openvz.org, linux-kernel@vger.kernel.org, mgorman@suse.de, rientjes@google.com, vbabka@suse.cz, aneesh.kumar@linux.vnet.ibm.com, hannes@cmpxchg.org, mhocko@suse.cz, boaz@plexistor.com, raindel@mellanox.com Subject: Re: [RFC v5 0/3] mm: make swapin readahead to gain more thp performance Message-ID: <20160303220803.GA9898@debian> Reply-To: hughd@google.com References: <1442259105-4420-1-git-send-email-ebru.akagunduz@gmail.com> <20150914144106.ee205c3ae3f4ec0e5202c9fe@linux-foundation.org> <1456439750.15821.97.camel@redhat.com> <20160225233017.GA14587@debian> <1456498316.25322.35.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1456498316.25322.35.camel@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 40 On Fri, Feb 26, 2016 at 09:51:56AM -0500, Rik van Riel wrote: > On Thu, 2016-02-25 at 22:17 -0800, Hugh Dickins wrote: > > On Fri, 26 Feb 2016, Ebru Akagunduz wrote: > > > in Thu, Feb 25, 2016 at 05:35:50PM -0500, Rik van Riel wrote: > >? > > > > Am I forgetting anything obvious? > > > >? > > > > Is this too aggressive? > > > >? > > > > Not aggressive enough? > > > >? > > > > Could PGPGOUT + PGSWPOUT be a useful > > > > in-between between just PGSWPOUT or > > > > PGSTEAL_*? > > > > I've no idea offhand, would have to study what each of those > > actually means: I'm really not familiar with them myself. > > There are a few levels of page reclaim activity: > > PGSTEAL_* - any page was reclaimed, this could just > ? ? ? ? ? ? be file pages for streaming file IO,etc > > PGPGOUT ? - the VM wrote pages back to disk to reclaim > ? ? ? ? ? ? them, this could include file pages > > PGSWPOUT ?- the VM wrote something to swap to reclaim > ? ? ? ? ? ? memory > > I am not sure which level of aggressiveness khugepaged > should check against, but my gut instinct would probably > be the second or third. I tested with PGPGOUT, it does not help as I expect. As Rik's suggestion, PSWPOUT and ALLOCSTALL can be good. I started to prepare the patch last week. Just wanted to make you sure. Kind regards.