Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3324241pxb; Mon, 1 Mar 2021 07:16:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVPDS5WviiZfCbXV+K//q5psKKt92XHUed+OBXXNzzxcsnZRI1LxuaLYkcMFGoxnjMBq+1 X-Received: by 2002:aa7:c4cc:: with SMTP id p12mr1280944edr.325.1614611812312; Mon, 01 Mar 2021 07:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614611812; cv=none; d=google.com; s=arc-20160816; b=MmTniXpdxwhvbxPEZXSQ+dLMgmKTP72yKHRhcWSJy75TLZSa5Ydtvl5zob7OIo0scw hlxivf4sByM0Ia0y7FU7K01pliOakMAG54Gglt8sBjL0KPK13yDE9JFB6xIBLzoIqo0N p3jtnDiIspU6j0OqLQNdO++cOBRdkPmtAkiOwgioUTLUw5MWTDr7olxCDXYbw2/6Ekjc 46gGMTXKg9RI2UtN+4Sun3Ue8Hse0U92+A3WNMv4eccXvaKts5Q7+iZfRBuJasVjF6Te 9/4AwKAdUMU5urzOHKyB//ozk/l6m1iohsxGlk27e/cqBqODKx0OYZ8e2fGYo932J3YC 1LMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ct8/HXm4PvFW2Oulk/4QHDKP4zoUXmSFNvN+LgI4w3I=; b=fwnA/MCcRAG/9ZGQ6Ytai9oecdgDvsl86CG1MrML6USmE4x3BAe+qQaa672su11kQi s68RrsHKZtCAvbpWGrA/Mgis3M8X55JVoeYroA0zHvu2LriZNwLqVbyVgcDTSZ7W5yBT qVil+fKfqV9fW8dKWfWSmQryqPgR1uO18lbPaTek0cZo7KsMtFBLuFy1wJ2s0s2L/oH0 bG8FkodDrOEqWlDO0z6ChiyTCwHZfRElVDDgnc4NVr+2p/5e/ePQQkfbOCZurePGU2La Kq891nuJpPI5MJM+IwT9YEcLIgS8VqKd/4hnaWH2c5AStJ4kDOJmychalz39QVkXf1U+ HJuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="AiQl/JDH"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi7si10297998ejb.754.2021.03.01.07.16.29; Mon, 01 Mar 2021 07:16:52 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="AiQl/JDH"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237004AbhCAPOw (ORCPT + 99 others); Mon, 1 Mar 2021 10:14:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236972AbhCAPMh (ORCPT ); Mon, 1 Mar 2021 10:12:37 -0500 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58FBC06178A for ; Mon, 1 Mar 2021 07:11:57 -0800 (PST) Received: by mail-qt1-x82b.google.com with SMTP id 18so9573630qty.3 for ; Mon, 01 Mar 2021 07:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ct8/HXm4PvFW2Oulk/4QHDKP4zoUXmSFNvN+LgI4w3I=; b=AiQl/JDHfPsvedC1nQhgBTSI7smuAPUug2Krbf4f/MILwd2jUCJjL8u45oxJr3kTI9 yLHIC0RJiD/sWvoyDqRwriCL7U1gtO4A8YcDSGZ6gn7VkOLKavHAT+Whv/56xYAFJK2F ncR9Ac83aWi/VtmrwrE73OgKi3PirvgMyOFOZxs9Mw/NMjtADCRByBZryRibrtUDmdcj zoM13AQjmI/B7HhnAkkH53l4e3p+mVp86j+SR4p3mxFx5Q6lSN13Hw5t8GU739THOXl0 YegjMUNWm0cT4yHRLhlrGgRpQvfK1bfs6QrJPuCMSNNHmPmvyxFBDHqQmuqwU9+XxzpS Wt9A== 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; bh=ct8/HXm4PvFW2Oulk/4QHDKP4zoUXmSFNvN+LgI4w3I=; b=lYgbLYsY1pNYX/kqE8SAR/t8oXTw2CJq+0SW5V+G+XNkL6vfKioOrO+TaGZ5cTSdGV 84fKbWc0NZyqcRCocGzcE2SaI9iipFSK1137bzcNpGa3rjwE22xZbg/+td5idk1mdr8Q +jsDWlUn7zKvWyupMKw1oOfGlRZiNKeHHLfI8/3S1yoD723Vzjszga98q/ETVXwpJy/8 HCwQVRftAv8goW6q8qpuBoLIZXXi3eQDG4nVWcXNluLY4wG0rO7CL3X+S2KPg8f9PNqY jNtjHYjBoTgtncBhSib7icgMM4Vvy4Vc3cYmRCieFWZMUsl4mgMdaD4NXwo0P+4iztdN wqhg== X-Gm-Message-State: AOAM530Gpg8iWk5KEx+vby0NujGi9pJmfaLI2DKnde37gEi1+gpf+0N4 FeCXmotWk2Hho8wtqRgsIAeNZA== X-Received: by 2002:a05:622a:34f:: with SMTP id r15mr13598379qtw.107.1614611516907; Mon, 01 Mar 2021 07:11:56 -0800 (PST) Received: from localhost ([2620:10d:c091:480::1:c0b0]) by smtp.gmail.com with ESMTPSA id a14sm9274552qkc.47.2021.03.01.07.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Mar 2021 07:11:56 -0800 (PST) Date: Mon, 1 Mar 2021 10:11:55 -0500 From: Johannes Weiner To: Pintu Kumar Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, jaewon31.kim@samsung.com, yuzhao@google.com, shakeelb@google.com, guro@fb.com, mchehab+huawei@kernel.org, xi.fengfei@h3c.com, lokeshgidra@google.com, nigupta@nvidia.com, famzheng@amazon.com, andrew.a.klychkov@gmail.com, bigeasy@linutronix.de, ping.ping@gmail.com, vbabka@suse.cz, yzaikin@google.com, keescook@chromium.org, mcgrof@kernel.org, corbet@lwn.net, pintu.ping@gmail.com Subject: Re: [PATCH] mm: introduce clear all vm events counters Message-ID: References: <1614595766-7640-1-git-send-email-pintu@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1614595766-7640-1-git-send-email-pintu@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 01, 2021 at 04:19:26PM +0530, Pintu Kumar wrote: > At times there is a need to regularly monitor vm counters while we > reproduce some issue, or it could be as simple as gathering some system > statistics when we run some scenario and every time we like to start from > beginning. > The current steps are: > Dump /proc/vmstat > Run some scenario > Dump /proc/vmstat again > Generate some data or graph > reboot and repeat again You can subtract the first vmstat dump from the second to get the event delta for the scenario run. That's what I do, and I'd assume most people are doing. Am I missing something?