Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1206872ybt; Sat, 11 Jul 2020 03:08:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYohNADimILa5UmiKErrUGV9PBLE+g4O3hYjup+grsfqlIwJtPS9QJG3uah/OUrPtDoBph X-Received: by 2002:a17:906:d116:: with SMTP id b22mr40499509ejz.250.1594462098332; Sat, 11 Jul 2020 03:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594462098; cv=none; d=google.com; s=arc-20160816; b=rTxKYZwvS97/OZOt55kMq5pxquU/Llr1Y7uCuC1AfSZkohKhI5mwL2q9SwyUqRNzze wc+AgFxeksGWcog+/knCkAtdsopUxceGVbr5OMNcOvJZuQG+gbxhUff5EzeqD7dwV+x7 CMsGxXxjQwAOXuuJ91DwsPRw2BkAxAwMh2JrVuwXUr89+274tGATVb6jxawNLOj4/V5r 4GexAfjT5LK7MHjsCnMiiCDxNo4LqRsWGYO6bey32NtfxAAI7FQhzAXnj0UarzVafq9i 2xYgKqqk3X9eC1d/8e1D0CpTlXtacF70H9dxmbX7AMR9lm26d9CJ4wQHLuwQZ7jyzs3e O8jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VvgPMzxaIWY8gu27wsl9NLTmMwdfSRe2LBQ+aoof43M=; b=JzGs2PSAEWSq97hmx2RX60788VpkOWaMHtoJl6ZyKRey/2joxJ+Z0ixzlko8re1gyU rDVATLXZGESXrwAgW7f07tHNGBDATICB/Lw5La85MSXKd/Qe/G5FEpRJXV1CLo1QDSEO 4wZgkicr71wYFKWMIDAkcspj6nZ4GfQSFyLh42VFakx8Puz/kPMb5hwavSa7YNCoDBc0 8mT50Mo0Sv4kpsm6HdkkMZoADW22vJ97aMlF+UYJLh/6QKXcDOJzOXWaWNpqbMfBHA4H vrVJuJaYYEdyW2VVS8IJn0lxfFDf7fjQXA6hZiLRQy0dcPFz57rMDv9agMVhIa6QxZnx 6JpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=PbiCT6rn; 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=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si5325637ejt.460.2020.07.11.03.07.55; Sat, 11 Jul 2020 03:08:18 -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=@chrisdown.name header.s=google header.b=PbiCT6rn; 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=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726286AbgGKKHu (ORCPT + 99 others); Sat, 11 Jul 2020 06:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgGKKHt (ORCPT ); Sat, 11 Jul 2020 06:07:49 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 250D2C08C5DD for ; Sat, 11 Jul 2020 03:07:49 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id dp18so8643065ejc.8 for ; Sat, 11 Jul 2020 03:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=VvgPMzxaIWY8gu27wsl9NLTmMwdfSRe2LBQ+aoof43M=; b=PbiCT6rnYpxjcdz78JSzc66U2jCPCKyCvdzn3eSBaprRlJVi0AoRb7r5GY28HdyQV8 0kzDCApIGdgRErMQYrTaNgOIeW7F+TnstVOfQnIBrJ74RW9Kp2lAyXtPSRwI3uYjnVdG RQVkMbMwPbpZHLiAwg8k5GsMrWWHsanOzaPZ4= 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=VvgPMzxaIWY8gu27wsl9NLTmMwdfSRe2LBQ+aoof43M=; b=UEoESDQ7G7GtTZ+82He+g0ZIK8ihfExOcUNh4ea0SOFpZV9QYeiQMrqOaE8WK87Wr/ c2cGgYn+SPFH/Ogb9Y38ZzOR5FWi4vaoZxQhHxhM1OcAHGhebmYeI4FaqanDFV85nFIU bUDf1Mmgq23baFoucD0vdmeMuMSjcjVxoxM/dwkJFAZWSWY73vs6JKbbd6ARblAbJT/V igFshgOWw4J/r8qD4V0GuXU1kUjydltedML+08JzRUw2w3wR4HtvFOqI0EVldtQG5/77 ZI3aYYXDvI9umPk3ojs51hv0VKRwKpCOPm/9h1UVnk06VBweL/if7AXY7J40Hr5Kvlb7 uCRw== X-Gm-Message-State: AOAM5302zfQyVZcq0e8ZVeAbsECW93/r0tefJRvrFxeqTO3ty9RypHMw YElSQNQl3f+4c9VdgsQBxP5WsQ== X-Received: by 2002:a17:906:ca56:: with SMTP id jx22mr64001808ejb.494.1594462067714; Sat, 11 Jul 2020 03:07:47 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:8860]) by smtp.gmail.com with ESMTPSA id y11sm5150377ejw.63.2020.07.11.03.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jul 2020 03:07:47 -0700 (PDT) Date: Sat, 11 Jul 2020 11:07:46 +0100 From: Chris Down To: Shakeel Butt Cc: Johannes Weiner , Roman Gushchin , Michal Hocko , Yafang Shao , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: vmscan: consistent update to pgrefill Message-ID: <20200711100746.GA814207@chrisdown.name> References: <20200711011459.1159929-1-shakeelb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200711011459.1159929-1-shakeelb@google.com> User-Agent: Mutt/1.14.5 (2020-06-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Shakeel Butt writes: >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 Acked-by: Chris Down