Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp560879pxb; Wed, 24 Feb 2021 09:02:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyT/3LnvimDvb0NR+2A+duzh0RMrxWIvOZkM21c905r2Efpj2IoRFN245FTmKTbk+MUUzJz X-Received: by 2002:a05:6402:4ce:: with SMTP id n14mr34338928edw.309.1614186123403; Wed, 24 Feb 2021 09:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614186123; cv=none; d=google.com; s=arc-20160816; b=ZIsW6Tljs+WJ9gJ8WIdZrrI46VBsjvuJPRzg3sIVrBapQ7mGF6IUUPIgIwT2lWfu1i 8av5DElAlhoxwJjPsUMnGt+28C173StgSGTYHHEnbzjtbqEpaxRlexGk9Z+y/uO7OPEj z8c/kEYe4bWKmNeh0s1FCq89fVOD5KMMj9VBYR3rXQgJTfHhXFs6Zc6H9QqghHF12cFM IwjPnXPNc4uBcynpF9ypnVryVJGL/aSoxBVGxyf4W4oY5LyQi8KWUp0pQJhJrKQsRzSA VGVVm+OFZU7CQf4xFUA7wAex8oCcl/F7534jn+MmWnPhkc7iiYUz03l0rlIBenfGdU0/ qwuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=qzIzE3gw2sE+uqnG1z5ybJKgabwnkpbeDNpeXkPoLLA=; b=qSfpms7NCZghJLjbKOsSrYizaOOP5jMaTLx00wmTL9NbtLiVcf00yrF/ZE7uktBsYO NOiD33QSkLVbSjHc19LgGm+UgZdfh97cKgtsfXiBfIniyhbD4bRqVGW8GCDqkPkvwvpY RTMwPJbtS+gD9SEJTZRXKDV/4LoyyhaRn+/NETgByj1cXxcOVUibGY6R5+hwunXMOEim Ad4I5MfR13hHi5+4AdG33FNLwpNxTzAtHaSlTd0JeCxLP9JC5BY4vzhRLvZmWjaxBOlz zXVAlV+cpQOu2rLAcz66QNoG7ovcSNy8lOsjTLXMjlt5K+0rl3r0BibQTJ1UxpfoNGfb eolA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rOMFMda0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si1558956eje.225.2021.02.24.09.01.09; Wed, 24 Feb 2021 09:02:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rOMFMda0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235863AbhBXQ62 (ORCPT + 99 others); Wed, 24 Feb 2021 11:58:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235784AbhBXQ4i (ORCPT ); Wed, 24 Feb 2021 11:56:38 -0500 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9532C061788 for ; Wed, 24 Feb 2021 08:55:55 -0800 (PST) Received: by mail-oo1-xc35.google.com with SMTP id h38so668005ooi.8 for ; Wed, 24 Feb 2021 08:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=qzIzE3gw2sE+uqnG1z5ybJKgabwnkpbeDNpeXkPoLLA=; b=rOMFMda0e0+PgT6qyZtEzWuybeZnEKJIq6hNGk1YkcwiufEVQh5WEa/JtL2jQ2uKO5 HpdcBPqBgOOOgiHQhWyue1AkWGjy2BonhXvCMAWl4OSdsbsp7m8hoKg+mhW7s1nWKvFt 23rsozxkrbJcEBaa/BzcgCmZZPshxvsnLKtEPLpaaFoGdzSjRu8lHlmFY/9BBH934XfQ uzkGj8x4S0/RCrCnW9y3Qsu/E0yuIiiSMX3rCA1ATrj7Q0F0CjP2cLrW7yDADVFvYYCZ NZvMxR6VhmZqhfJTw0gTacdNIhatEfvz2YhdVQ2qPA6c5ls2rY0M2SZRE2WZee3VMwnt Xx8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=qzIzE3gw2sE+uqnG1z5ybJKgabwnkpbeDNpeXkPoLLA=; b=EsSmtrdahTz3NL+eb6C8IWT/YwJ4RbR4Zwx7LmGKYrglruaHTnti21AfLTQkb8i08l iY0yyfY3b0xdyTNGFazQBJWptWg/Nm7+VdZab7a5X8HRVvvStbZF0vZEHECUMdcOyEGi QEvlmAhZX8U66maR2eKEyH7+hLkgnXXV+g29Stm6VzzPBa80z1WNid7oAbvJ3y+SjBTa uKzDNF65W7VvedDLkqW2wMu80AYuD0sVFYJiwqC5nb6i8s7//mq1sE1eBWveApyfXTJn a3o3jkhIClcxbjdu2MIg+vyhOHLH+Qk6iWDBZLjgraqxsB9xTZJo+7yAk+NJsyWoHslo x2Uw== X-Gm-Message-State: AOAM530qTznxhzM3jieqMLoaTO6D9vE/3QdRTuVNotBzJwbTKlBrqHa/ nbdnVD26lIRxj6gT+OUJscDbGQ== X-Received: by 2002:a4a:b815:: with SMTP id g21mr1964494oop.13.1614185754931; Wed, 24 Feb 2021 08:55:54 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id l202sm450958oib.16.2021.02.24.08.55.53 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Wed, 24 Feb 2021 08:55:54 -0800 (PST) Date: Wed, 24 Feb 2021 08:55:40 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Rik van Riel cc: Hugh Dickins , Vlastimil Babka , 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 Subject: Re: [PATCH v6 0/3] mm,thp,shm: limit shmem THP alloc gfp_mask In-Reply-To: Message-ID: References: <20201124194925.623931-1-riel@surriel.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Feb 2021, Rik van Riel wrote: > On Wed, 2021-02-24 at 00:41 -0800, Hugh Dickins wrote: > > On Mon, 14 Dec 2020, Vlastimil Babka wrote: > > > > > > (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=force forces > > them.) > > > > 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 ? If Andrew wants it all, yes, please do add that - thanks Rik. Hugh