Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp41221ybl; Wed, 22 Jan 2020 15:42:02 -0800 (PST) X-Google-Smtp-Source: APXvYqz0pJy5Z2nApNmCKv4EwL1dkywgx7LMlOXHF0++pdz05H8sGvl4sYaqgAmImRltgfhbkCct X-Received: by 2002:aca:4306:: with SMTP id q6mr8870553oia.54.1579736522119; Wed, 22 Jan 2020 15:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579736522; cv=none; d=google.com; s=arc-20160816; b=ePdRgMCy3brV62wL/2My5CpPYyOIxsCDDtNKCL/FndJQudoL754v0w/f7tZrEvBk8S VJ0+m7G20Fg4spjlAmqoHxtZVNPulDQ+p+BKdfwJZSbL05GQgG7qCuybDaojFEdbLttV 2oPj+iYskvSns9g78tyGKSI0fU3LfbGt/Nu+6oiMzaHTO+K9nXL7k1sMuQ1JLH+nPcT/ tS2M+Lu6QZCV2I+Xs0Xq63O1lxW+ShD2Ctcm6QV7LJ+leVfyjvkyFN7J0koPSajHIezM aEpupsOE4H/MQNBk/UwZjqvsi61lffCGFMmKyG17DtcDvy5lDl8MD3BHkG8Kf9tRg1C5 vfBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=YNvajkPj2BUn62eVSIlq+7puNDrKQpZK5MXXRGczBsE=; b=QaSLVF8VNc1kf10UZcKXscN87ke3Mwo+xMzesTpHSP3smCjO8SoZqfsV96nE3R0if2 DSSztN6wZjGSYnukWM8LNCLDk2Ome1P/v8SGDcWfPyrrgqpLoRarRPgoudJP+2zv1RnP P6mUmhZuuaX82wwb7vcsRdOcq9EiCirCNfQ18+hcYerYO+QS6uPsC5FPkVFzjcV0NiN7 vwfUl4e8tpdlUPepacOjLjYE8d4E4F15boz+mdw+H68EFRIPCVEJPJvZ8RdaZzWGgTmA 5dshFc5efOKRaQeDRg5Hk1/Oy/i2Vw2Lw5o01prW6fb70H6ICCHkXdAqOdC7xEpu97Fe 3f3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WZJFiO4N; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w19si6021oih.201.2020.01.22.15.41.49; Wed, 22 Jan 2020 15:42:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WZJFiO4N; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728665AbgAVXjT (ORCPT + 99 others); Wed, 22 Jan 2020 18:39:19 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:41068 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726871AbgAVXjT (ORCPT ); Wed, 22 Jan 2020 18:39:19 -0500 Received: by mail-pg1-f195.google.com with SMTP id x8so350717pgk.8 for ; Wed, 22 Jan 2020 15:39:18 -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=YNvajkPj2BUn62eVSIlq+7puNDrKQpZK5MXXRGczBsE=; b=WZJFiO4NDHzrXRTXfEk15plzqfBCf/XF0WnvEGStfqkfZ8Fj/EQr8PPvQ1mLAYqSCP v+tE914RPXI/94X6Y2Ek89gj39gHYxA1NTi3sKa6IgtxsqR7fEYjau6jIW00dazgJtqm NZx1MnFTfqkmUSUZZeskkvhavOEJCNt5fV+mYrZt5vPpBAD/vBNFA/RgfJYLX8D9PJaA G3KnjIHOycLCS+ldcv/ah1Uk5FmX3GkTjliBdERDyczvEhEsSyWkRdr9Dv0Y86tQcqZ1 /LhnvAT2PoZqjNrkdXKx4QNEIv+ukhBvwK0989ik3JobGkgCQ3qE+FM9Wjg3YeOp+dJQ Gk/Q== 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=YNvajkPj2BUn62eVSIlq+7puNDrKQpZK5MXXRGczBsE=; b=IyZONn7KgWAN9DQ770k3uIkOqNp3awNux38tz8BPUIXaGD7mW6v9p4ss60RdytEnaZ LvCOK+Ph7Ezgc6PeM/menn1C5hLnZuEXsPAeow4dkFPr6TpTU2ca/+mYV5zYzp7c3qA3 KjBxDerqrEPrYDThAS59OkaBRLM4FcT56f2HTU4q0uiyobA/Oo7w5Tw2yBT9nbM5eC/3 BqT8vAebKoze8rCpI8hgSKcaBkTOpws1VGKsp6Bf4Z3FI8nE1WLUrnv9xJl1B4f+mOTp Rd8y+aEDgQyaI73MywtvQOs9VTWzVodiV4zeIEmkYrtDI7LqtOGB9oXCpA1uH/ZuY7jV G+Vw== X-Gm-Message-State: APjAAAXRtp3633xTehoTIGGlx7U6X9Wg0ok+Xc3EJ71oEfAKwlvM6j2K GRVxM4zg9VBcyIxeQpNvT20DEA== X-Received: by 2002:a62:e80a:: with SMTP id c10mr4833932pfi.91.1579736358110; Wed, 22 Jan 2020 15:39:18 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id m101sm98110pje.13.2020.01.22.15.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 15:39:17 -0800 (PST) Date: Wed, 22 Jan 2020 15:39:16 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: Andrew Morton , Wei Yang , hannes@cmpxchg.org, vdavydov.dev@gmail.com, ktkhai@virtuozzo.com, kirill.shutemov@linux.intel.com, yang.shi@linux.alibaba.com, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, alexander.duyck@gmail.com, stable@vger.kernel.org Subject: Re: [Patch v4] mm: thp: remove the defer list related code since this will not happen In-Reply-To: <20200122081406.GO29276@dhcp22.suse.cz> Message-ID: References: <20200117233836.3434-1-richardw.yang@linux.intel.com> <20200118145421.0ab96d5d9bea21a3339d52fe@linux-foundation.org> <20200120072237.GA18451@dhcp22.suse.cz> <20200120212726.GB29276@dhcp22.suse.cz> <20200122081406.GO29276@dhcp22.suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 22 Jan 2020, Michal Hocko wrote: > > The current code in 5.4 from commit 87eaceb3faa59 places any migrated > > compound page onto the deferred split queue of the destination memcg > > regardless of whether it has a mapping pmd > > (list_empty(page_deferred_list()) was already false) or it does not have a > > mapping pmd (but is now on the wrong queue). For the latter, > > can_split_huge_page() can help for the actual split but not for the > > removal of the page that is now erroneously on the queue. > > Does that mean that those fully mapped THPs are not going to be split? > It believe it should but deferred_split_scan() also won't take it off the wrong split queue so it will remain there and any other checks for page_deferred_list(page) will succeed. > > For the former, > > memcg reclaim would not see the pages that it should split under memcg > > pressure so we'll see the same memcg oom conditions we saw before the > > deferred split shrinker became SHRINKER_MEMCG_AWARE: unnecessary ooms. > > OK, this is yet another user visibile effect and it would be better to > mention it explicitly in the changelog. > Ok, feel free to add to the last paragraph: Memcg reclaim would not see the compound pages that it should split under memcg pressure so we'll otherwise see the same memcg oom conditions we saw before the deferred split shrinker became SHRINKER_MEMCG_AWARE: unnecessary ooms.