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 6D124C433E9 for ; Wed, 24 Feb 2021 15:32:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 15C6E64ED3 for ; Wed, 24 Feb 2021 15:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237816AbhBXPca (ORCPT ); Wed, 24 Feb 2021 10:32:30 -0500 Received: from shelob.surriel.com ([96.67.55.147]:49096 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236248AbhBXO6b (ORCPT ); Wed, 24 Feb 2021 09:58:31 -0500 X-Greylist: delayed 662 seconds by postgrey-1.27 at vger.kernel.org; Wed, 24 Feb 2021 09:58:30 EST 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 Sender: riel@shelob.surriel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-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+--