From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93669C433E6 for ; Wed, 24 Feb 2021 14:46:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E42EE64ECE for ; Wed, 24 Feb 2021 14:46:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E42EE64ECE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=surriel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 31C486B0006; Wed, 24 Feb 2021 09:46:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2A74F6B006C; Wed, 24 Feb 2021 09:46:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 170B16B006E; Wed, 24 Feb 2021 09:46:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0165.hostedemail.com [216.40.44.165]) by kanga.kvack.org (Postfix) with ESMTP id EF23C6B0006 for ; Wed, 24 Feb 2021 09:46:36 -0500 (EST) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B6E1B825F892 for ; Wed, 24 Feb 2021 14:46:36 +0000 (UTC) X-FDA: 77853437592.23.12EC5BB Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by imf20.hostedemail.com (Postfix) with ESMTP id AC403F5 for ; Wed, 24 Feb 2021 14:46:34 +0000 (UTC) Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lEvQq-0006j5-Se; Wed, 24 Feb 2021 09:46:28 -0500 Message-ID: Subject: Re: [PATCH v6 0/3] mm,thp,shm: limit shmem THP alloc gfp_mask From: Rik van Riel To: Hugh Dickins , Vlastimil Babka Cc: Andrew Morton , xuyu@linux.alibaba.com, mgorman@suse.de, aarcange@redhat.com, willy@infradead.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, linux-mm@kvack.org, mhocko@suse.com Date: Wed, 24 Feb 2021 09:46:13 -0500 In-Reply-To: References: <20201124194925.623931-1-riel@surriel.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-OromBUoFm9ZFqotShFp+" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 X-Stat-Signature: 7coamkwe7nhunxhgbge6cogz39exnh8q X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: AC403F5 Received-SPF: none (shelob.surriel.com>: No applicable sender policy available) receiver=imf20; identity=mailfrom; envelope-from=""; helo=shelob.surriel.com; client-ip=96.67.55.147 X-HE-DKIM-Result: none/none X-HE-Tag: 1614177994-238712 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --=-OromBUoFm9ZFqotShFp+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-02-24 at 00:41 -0800, Hugh Dickins wrote: > On Mon, 14 Dec 2020, Vlastimil Babka wrote: >=20 > > > (There's also a specific issue with the gfp_mask limiting: I have > > > not yet reviewed the allowing and denying in detail, but it looks > > > like it does not respect the caller's GFP_ZONEMASK - the gfp in > > > shmem_getpage_gfp() and shmem_read_mapping_page_gfp() is there to > > > satisfy the gma500, which wanted to use shmem but could only > manage > > > DMA32. I doubt it wants THPS, but shmem_enabled=3Dforce forces > them.) >=20 > Oh, I'd forgotten all about that gma500 aspect: > well, I can send a fixup later on. I already have code to fix that, which somebody earlier in this discussion convinced me to throw away. Want me to send it as a patch 4/3 ? --=20 All Rights Reversed. --=-OromBUoFm9ZFqotShFp+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAmA2ZrUACgkQznnekoTE 3oOn2Qf+LFKPcOreR8SAWAxKLxMeHgT3ILPYIhzzG3Ds6UPNJhV16wmoGT5PObZ5 axV6t4vGE7//wE6Gbxwhm4UEEWBawJ/Tn6R+ltr0OsisLpRuCh0exnvclCKBTRmi PoH2YJgehkumfd+NIfsCcCGJsy+c7w/oRrPBeY8Pu1uXM86ONaOmB0TbYwFUvjEH P+MEJNZYrUGoy0Q2ZduUXV06zKa/MFNC02wFGIHDCOd521CwMizP8EuSqk+IFCdd 47AfUIl4JYIjQr0z32GhMtY/qnedRTTM9halSZi2qHiAxo74Z2NRRI/7SJSy3saU gN9tCjNvMXYAxUZOmOpvp3V9QJDraw== =bbq9 -----END PGP SIGNATURE----- --=-OromBUoFm9ZFqotShFp+--