Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp44347pxv; Wed, 21 Jul 2021 15:07:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIHrpGphXTbTntik2KuhzOZ6GLZdAvt/dmKUdFVC+K9nef9UKuehuQmuV9ZbM+ZRqXo+j9 X-Received: by 2002:a05:6e02:eac:: with SMTP id u12mr25884055ilj.216.1626905278844; Wed, 21 Jul 2021 15:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626905278; cv=none; d=google.com; s=arc-20160816; b=A30CibHOOzMs83RzJTewiBxh3vTjlmwEoUHDn7pJadRKVl7PdPcAHb6EgPV9f/Lwp5 czz43/jjwqh2quMUmeJiY2HdFill8pa4YHRd/+jOMwaCROMrrp+ZEGOEttJJOUlYMeNt Y56CqXcJmAlYe/XIX2p8TAumlqyf9K19NH5klvQtQ5bHaed07KdwNrzggk4P0G9bD6+6 vTrRSFIMkt9AIkjLNATkwwRMIE8g8wpOdqZoRGyDz7L9ZdzVHlkWCU0s2KTC+Ggrl/zl kdaOHZsRaNnyNuBJziIE6MpS1ywT04OYT9wGW32LFdDc69N65jDUbdu9IRuS4evO2ys+ T31w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nX5aqOHY9HgaYebkuFtX4Rr9OCAl7jIPuc9xY87G2ms=; b=g/KY6LBhk1kKIeWiKjG00xZOTI7IorwvxBDzCwpi6WOalMlXAGmxueHG2LK2yUU9hf ej4o9JygD8aKrknrS3IycyeYuEzwSsYGIsnhiuBX9pnGSFuEC9RRDv+TiXqBTWDmUhDQ wb0H+UUGAeJBZ++sO2VLM0kGzyaCUYFR6h72uoibqERn2gh+8R9q0m46Chp1E3fW8rVm JHfpMyGwTU24ugU5KoMaR7E5+HbpJaOe3GzYFw8TKb9EUcwakjxQogik9iPpOI6IwyQn 9U4S75TDRTRaZaQraERg3sLeIuUi6fmCV4ImRgYBm9JkUpDt4LgekyNg6ruPL/MWuHcx Em7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=i8jZLH7Q; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si16360829ioe.32.2021.07.21.15.07.25; Wed, 21 Jul 2021 15:07:58 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=i8jZLH7Q; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229809AbhGUVXe (ORCPT + 99 others); Wed, 21 Jul 2021 17:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbhGUVXd (ORCPT ); Wed, 21 Jul 2021 17:23:33 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AEE3C061575 for ; Wed, 21 Jul 2021 15:04:09 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id dt7so5412004ejc.12 for ; Wed, 21 Jul 2021 15:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nX5aqOHY9HgaYebkuFtX4Rr9OCAl7jIPuc9xY87G2ms=; b=i8jZLH7QWGH392+y6KKCsDXWau5mWKnuU5S2rFJptlP3f2uiYpDZach9xzawO5no+z BE7w5ih0UKHzsNQsvzxorhf6GyjSfcDz1Ivn4BbzD9HK18JbL5wA2VCrYuE7cFPy6FY/ JtEsGmSABTrZosYpH2ek9J+Fw2DkR8578PgmYzxVuvj5zrhjbKUo33qf+WYA78sGO/hq efK4B2WYgckHT1QNDHhfiCBQjKCgrhu1O8mvpoxyjUXnKNcK0HqGQWl430pPU82fKT2z Y3Zf6BoFKYCvaFj050inSFGLmhYeXsUbSHic2UweI6LwZBSieqt4RLC2bTSOv9/fQQEL QBWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nX5aqOHY9HgaYebkuFtX4Rr9OCAl7jIPuc9xY87G2ms=; b=nXjxXCY3KgZKWAY9HMg/M31oOWL1z5eyGfUriiP5UhqdNM2RKGnwUHBnXT6S2o+s1C mAaq/2BZesMduWlYj7Id2VyG4moCHAaJyBPoaNea/6vLWVD2gPq7kzn3vaVFSezxqJRT WSwb9bQEo8MK6Lm+GgbxgTdIW3gSjd9UvzvqOD9ylCJHv8L8mj5ahpcfHFuLfDDXJokr 1+3jTuORfUKEcI+oYn4Gf30CksN6RC8NlyortCfC9hqrJYprawnwU85hrfZW59s791t3 dWzhzdiSXyNo3lIAraS+BlxaN7X2Oqc5owQnAOussZWQNR0+kDugp6VpjfJpyR2eIWMM 5ADQ== X-Gm-Message-State: AOAM531be3jXAr2+CO8yWwRE1QGswMavBSxT0aLtas2PC7Zb9KApW8UH td7Y4Wj6NBmZaeC9/B/gucuvGTDdWjQvqXgbb7A= X-Received: by 2002:a17:906:1f82:: with SMTP id t2mr16091424ejr.499.1626905047927; Wed, 21 Jul 2021 15:04:07 -0700 (PDT) MIME-Version: 1.0 References: <20210721063926.3024591-1-ying.huang@intel.com> <20210721063926.3024591-8-ying.huang@intel.com> <43A1CB83-6127-427F-94AF-40CE1B283BE1@nvidia.com> <59a92898-4a8a-05d3-5f75-1f8defb6feda@intel.com> In-Reply-To: <59a92898-4a8a-05d3-5f75-1f8defb6feda@intel.com> From: Yang Shi Date: Wed, 21 Jul 2021 15:03:56 -0700 Message-ID: Subject: Re: [PATCH -V11 8/9] mm/vmscan: never demote for memcg reclaim To: Dave Hansen Cc: Zi Yan , Huang Ying , Andrew Morton , Linux MM , Linux Kernel Mailing List , Dave Hansen , Yang Shi , Michal Hocko , Wei Xu , Oscar Salvador , David Rientjes , Dan Williams , David Hildenbrand , Greg Thelen , Keith Busch Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 21, 2021 at 2:58 PM Dave Hansen wrote: > > On 7/21/21 2:38 PM, Zi Yan wrote: > > On 21 Jul 2021, at 2:39, Huang Ying wrote: > >> From: Dave Hansen > >> > >> Global reclaim aims to reduce the amount of memory used on a > >> given node or set of nodes. Migrating pages to another node > >> serves this purpose. > >> > >> memcg reclaim is different. Its goal is to reduce the total > >> memory consumption of the entire memcg, across all nodes. > >> Migration does not assist memcg reclaim because it just moves > >> page contents between nodes rather than actually reducing memory > >> consumption. > ... > > Should this be folded into Patch 4 when can_demote() is > > introduced? > > I guess it could be. But, it's logically separate since it has its > own justification which is rather discrete. > > I think it's best to keep it separate. Yes, I agree.