Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1032559ybt; Fri, 10 Jul 2020 20:27:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypgKVfptr9OMB68cTpYxDL0hAYKjfL25HjebKL+Aj/nbbMbLgP2uzVZmdsH9IJWRKjNjek X-Received: by 2002:a17:906:9147:: with SMTP id y7mr59526741ejw.399.1594438071793; Fri, 10 Jul 2020 20:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594438071; cv=none; d=google.com; s=arc-20160816; b=tWp4wrrerPK0no5V+gsSZqf7eWwlKYia9WJB2vGIkzXINupIggGBvgAfbKGQILzOt1 HCU6C2eKz5OcW66HLL20D4jxTJiwjxA/9Xlf8KLdRIa3nRGFziHtmugN36DvksZoQhA9 2Ngah5HUQRuqB6+SN19fhEtZX1Wo3ScgRdILbuw6kw88scZo4O9gcZR+mkHho63EalC1 Fa4CCJPMjVa0mlmLjQg1rGhbFR4t6vAvtR4tC1Id9Bn736jcmufnrgOeDQxpX5pnXxM2 vvN8d/EziV2M0svYGTNr89xqzc+DHO2Lo6V2MyPwXczExvoOsEPMdVctPb5OTKjpHViC NeGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8CSoNKqf2/F0Tp9hw/Q3tOqmnKdqJohhTGwykA5078E=; b=cLoHQRQsWv1EJ0PUfaEREtH4F/mQwUlDhRDYSkFonPIVX7WkMv3X6xJ8eD83AH7eTO GbZXOCl1Pj94sNYKZStD9GOlNO4M0ULVlJ/7zTeVGfXawOhl/wPPgepnwoxtRVZrB3PN 0Ozqd+QYDotCN3pidKeqboqyl57OeLLCZ2bzj+hq3kk+pv1ptl7jm84NC024c0uuRiSb rP3hlQi1f2iu77et+kYlW+QTIIvqgIGNdM499Cermowi9TboEL5HqemOz0fQ1cGPOOBw usRGPrB5bCYhWSyasAQQnrmou1fdFnG5YVNnKiequZs/5q6a4HmiEcP9dtaafASxtMoM r18w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UI+5RvQl; 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 w2si5305681edt.433.2020.07.10.20.27.28; Fri, 10 Jul 2020 20:27:51 -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=@google.com header.s=20161025 header.b=UI+5RvQl; 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 S1726963AbgGKDZB (ORCPT + 99 others); Fri, 10 Jul 2020 23:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbgGKDZB (ORCPT ); Fri, 10 Jul 2020 23:25:01 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8D8C08C5DD for ; Fri, 10 Jul 2020 20:25:00 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id g139so4255687lfd.10 for ; Fri, 10 Jul 2020 20:25:00 -0700 (PDT) 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=8CSoNKqf2/F0Tp9hw/Q3tOqmnKdqJohhTGwykA5078E=; b=UI+5RvQlJ7Y4QrAO5eQmJs5SxFTK/evUap+folss4m3gXvNyiErzjs9cgqLbt1+WBw jFy/83zKBi7lPpxgS651R89gffrCvA3YIJYDUiy4T5l8u91TUmrWw6Du5owAiBX1V5nF M+QeZqFW4xn2glgMfN9eg/zIoq7cq38ThTMTnNkpNmICH6KQEiiO5aRdFkfY2mkwgceQ oHiWi8S0q3tMRPAZmvpcTtzIWvwGh09/4B29R7CSsNMu4rWnN8kjhfojUi3aVnBfwBkX qqTGf+nMWjW4wtY3Xq1+aAGAQNQ6Rqs0JZeaWIEWgI59Mf+0Kpinv/MU76AihdXgclva F1hA== 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=8CSoNKqf2/F0Tp9hw/Q3tOqmnKdqJohhTGwykA5078E=; b=dL0hpyTrSnRDy727kgZehl07zfRcZ9RO7Gou/hz0Q/N/4z9XFxKx9VmO06ZVHA+vt8 Xqn3XFqacApnqn2DE+Zo2V/JciwUCBYIHS3P65uCuJS7/Yo7WqA/S8jbGQJW4OBAkyk/ BRRfICBf7+NtKz7JOQiykOD+CChiGuB/m7tnopi5W3BBdG7cr5bBGNN70/lLdmQHi03A R55+3XHHQiGQxb3HeSkBLmkHdzCYL/Aal2iA4vnvp9xo2zchYdnB2x8I79MdY6jmd+GD FX5q8i7DIC6h4B7eneNexASKM2OvHLASOz7wtpeuSxQ1BGV3epriJG62KsLpkOnQaB/n AnTQ== X-Gm-Message-State: AOAM532ZaXa+VRvId34EvLBdtLqDX/x4HNIeWpE2qZ31ecuIZ9ZhSPJo ogFtav9yQFcLlngbPVPWSrXXFCq8MUBPvhxC0qhDCA== X-Received: by 2002:a05:6512:482:: with SMTP id v2mr44598950lfq.3.1594437899004; Fri, 10 Jul 2020 20:24:59 -0700 (PDT) MIME-Version: 1.0 References: <20200711011459.1159929-1-shakeelb@google.com> <20200711023151.GA388137@carbon.lan> In-Reply-To: <20200711023151.GA388137@carbon.lan> From: Shakeel Butt Date: Fri, 10 Jul 2020 20:24:47 -0700 Message-ID: Subject: Re: [PATCH] mm: vmscan: consistent update to pgrefill To: Roman Gushchin Cc: Johannes Weiner , Michal Hocko , Yafang Shao , Chris Down , Andrew Morton , Linux MM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 10, 2020 at 7:32 PM Roman Gushchin wrote: > > On Fri, Jul 10, 2020 at 06:14:59PM -0700, Shakeel Butt wrote: > > The vmstat pgrefill is useful together with pgscan and pgsteal stats to > > measure the reclaim efficiency. However vmstat's pgrefill is not updated > > consistently at system level. It gets updated for both global and memcg > > reclaim however pgscan and pgsteal are updated for only global reclaim. > > So, update pgrefill only for global reclaim. If someone is interested in > > the stats representing both system level as well as memcg level reclaim, > > then consult the root memcg's memory.stat instead of /proc/vmstat. > > > > Signed-off-by: Shakeel Butt > > So you went into the opposite direction from the "previous version" > ( https://lkml.org/lkml/2020/5/7/1464 ) ? > Yes because we already had those stats in the root memcg and exposing root memcg's memory.stat resolved the issue. > Acked-by: Roman Gushchin Thanks a lot.