Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1999666pxb; Mon, 8 Mar 2021 11:19:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw8CcEm6CTtIPF4rXde9iTxwYmchMv5c7FUl6iBAbsYXOhHgMxVUp6AcoeNGbYU6CwLVHlR X-Received: by 2002:a50:ee10:: with SMTP id g16mr94505eds.215.1615231162298; Mon, 08 Mar 2021 11:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615231162; cv=none; d=google.com; s=arc-20160816; b=GP7Y/uiSF80c9GY+t5jdb0U96nzoni15fyBSSYIYxkI0ZUP/pH2YOvl6LgGsgzhhn1 pIeGWmtH7vp/V/3J9YPzXpHP11I4k1or7cE9JK8TBBXeyZgJLdrnv/MioyopgFz9r6Vw rBd4wBNSN64wEU2JngChIlxXpWxwi2VRWJdAc+0YxzOkXkJAATTJ0szoHlFisBMjC02/ RV3/LkY613ThkabSeEJQJ8zCOE2tC6qNUxXtI/4irlGIvupxktFYBUioeEWByRJ3c/k6 6f8gOL4jGpK+eyjpF40coSaxgobcTKS39dfr+ldLjtucQjf4NVN9mVC8bN7HBn865/XY R4FQ== 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=umVFORWEQyOCOOUpGFtQZb3uIQ3iqqbf1h/dKj08OzU=; b=UNnoYTPlHLJcDvcLLyNRMtrSBf/bf5bwP30e6LOu2lTXyTJtQ27uBIQBRYLD23QQ8J tPmu70ISwW58J32LoNCm14rDRhsIJg0NgZdArSI9wP02au7Tp2GSIBq3TUAapm7VTOb2 H4GM9S49IJrcIxYs7QK4POvep9aJWyNBUzLA/K+sOYHCQrweTRhZoNg4fPXNdrdx7zii I23XVTl5AV3GjNUO+MLirwSBo0gqaVPSCrQ+7d6cxzmS2GBNnS5w9yPOSqykKb7DPRF4 p5wmBO68U1IBg5qvpc+bc+DjvIe0wvTm4bySUnxM/7auh4luhgBE5qnrNgvDBW8P9/9A 4RwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=oBRhTP4L; 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 gy11si7673759ejb.175.2021.03.08.11.18.59; Mon, 08 Mar 2021 11:19:22 -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=oBRhTP4L; 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 S231249AbhCHTP3 (ORCPT + 99 others); Mon, 8 Mar 2021 14:15:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230046AbhCHTO5 (ORCPT ); Mon, 8 Mar 2021 14:14:57 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1D2C06174A for ; Mon, 8 Mar 2021 11:14:57 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id i26so5895681ljn.1 for ; Mon, 08 Mar 2021 11:14:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=umVFORWEQyOCOOUpGFtQZb3uIQ3iqqbf1h/dKj08OzU=; b=oBRhTP4LTl/zksCI2CyY9IxHXuPxnr1Zc0z00W1FrIBfDuMUpi2SokFVV/3223H2kP fgsudXqoo65SCgs4G94MD29BRRugm/VK7H21ahwHlX6hKhlilNqeRxaZfAQ5iYijmEqc zoJKen0IlLS5VvVnhPVh7Z+0RXjyDOt8cNspEcjrdPL9HgIjUw2GV1QXSwMkjni0P5DS E9HbQs3HuH+TzCnRbi426v5MYvs9nlvSvCyr6yEA5Hszi39CZsZhaKLZp9izXWCsZ9wL icDtKPSjfXuqHquhpZVfKJ65SJ4gDm+5lK8dEoC0AXRgoFaCloBUjKYhzP5FCTzaeXV8 rbeQ== 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=umVFORWEQyOCOOUpGFtQZb3uIQ3iqqbf1h/dKj08OzU=; b=bdgobabqW+L7RJGfnXQmMSgeSjr271DEqSFlsVfgLUmhlzFiCJdsSGcAN9qgqJHmr+ nm/pYscd/HJQCrOhBmc0VaBYy8IKjqN9jB7LWu3QAo8EIjlFBtsTq07m3YXE029vQAEE wOUJx99KDNuiDGxgJ3EagE5JQ/P8mxqbQLyds3g/Ps7yC/nbr9+exvhQRfnJ5JlHUlfA VgmLl++ebysQ+w/p7ox1SnPUEywnOpmHO8QJjTGy809j8r16OMnL0nxgyHptYfsACGJU 0Sj1AcTM/CbxGLjSEz45RRgBZ8MxduUSWdcdmGWA5wCKHxv11Q5s07HGHK7CnzRnULKU 2sKQ== X-Gm-Message-State: AOAM532j/THpzVZOZDqVD0FAQk1o822vjKs2oJj5wmJJm88bzQCMJkMB MfmCpUf5ZoLn4XHLy0kcnpLPLsbog9D80C2n43UJ4Q== X-Received: by 2002:a2e:7d03:: with SMTP id y3mr15084711ljc.0.1615230895481; Mon, 08 Mar 2021 11:14:55 -0800 (PST) MIME-Version: 1.0 References: <20210217001322.2226796-1-shy828301@gmail.com> <20210217001322.2226796-11-shy828301@gmail.com> In-Reply-To: <20210217001322.2226796-11-shy828301@gmail.com> From: Shakeel Butt Date: Mon, 8 Mar 2021 11:14:41 -0800 Message-ID: Subject: Re: [v8 PATCH 10/13] mm: vmscan: use per memcg nr_deferred of shrinker To: Yang Shi Cc: Roman Gushchin , Kirill Tkhai , Vlastimil Babka , Dave Chinner , Johannes Weiner , Michal Hocko , Andrew Morton , Linux MM , linux-fsdevel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 4:13 PM Yang Shi wrote: > > Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's nr_deferred > will be used in the following cases: > 1. Non memcg aware shrinkers > 2. !CONFIG_MEMCG > 3. memcg is disabled by boot parameter > > Signed-off-by: Yang Shi Reviewed-by: Shakeel Butt