From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754448AbcBZOwO (ORCPT ); Fri, 26 Feb 2016 09:52:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53857 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752174AbcBZOwM (ORCPT ); Fri, 26 Feb 2016 09:52:12 -0500 Message-ID: <1456498316.25322.35.camel@redhat.com> Subject: Re: [RFC v5 0/3] mm: make swapin readahead to gain more thp performance From: Rik van Riel To: Hugh Dickins , Ebru Akagunduz 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, xiexiuqi@huawei.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 Date: Fri, 26 Feb 2016 09:51:56 -0500 In-Reply-To: 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> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-FF75zn0upSr67ajfZxRZ" Mime-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 26 Feb 2016 14:52:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-FF75zn0upSr67ajfZxRZ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: >=C2=A0 > > > Am I forgetting anything obvious? > > >=C2=A0 > > > Is this too aggressive? > > >=C2=A0 > > > Not aggressive enough? > > >=C2=A0 > > > Could PGPGOUT + PGSWPOUT be a useful > > > in-between between just PGSWPOUT or > > > PGSTEAL_*? >=20 > 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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 be file pages for streaming file = IO,etc PGPGOUT =C2=A0 - the VM wrote pages back to disk to reclaim =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 them, this could include file pag= es PGSWPOUT =C2=A0- the VM wrote something to swap to reclaim =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 memory I am not sure which level of aggressiveness khugepaged should check against, but my gut instinct would probably be the second or third. --=20 All Rights Reversed. --=-FF75zn0upSr67ajfZxRZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJW0GaMAAoJEM553pKExN6DUl8IAJ8n2fhcYPqmxEBV8XCv6yan 5EQggYjF9EO4MnwYADEd99lQc7byfI4VMZ4yLt9v7CqTQNWg0BOgzKAqR/zo2tcw qeGCldpjtYPo3K/yHTS5w0sTzZjXPn4oGGasgcrreC9wZtLkWz3UjZovXYZ5PeDl zDadO/65MvO8FJo7yWpenB8PNEN55j45crtvnPOoKAnmuPBUHJVnjZnBsWFEMxsW tOR/DZ/9NVuR2UtwZZulWj7slDlIXbWbR6X1T8k5eUszFM1i+RuNq4U7P8Yg+nIo O8haqq/+JtmeETQo8iLsg8vS9ONEbmHkdiMpEQpUYRhWy1qZYD+GpMGvCdvfeiM= =gtHf -----END PGP SIGNATURE----- --=-FF75zn0upSr67ajfZxRZ--