Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp347497ybe; Wed, 4 Sep 2019 21:41:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAEX17TRoI3VjvKsAeok3MG2VMxCt/KEeNjqOWYjRQfomlvk8m+tvaR/zIL1bqRgCboKKN X-Received: by 2002:aa7:9112:: with SMTP id 18mr1437586pfh.127.1567658479133; Wed, 04 Sep 2019 21:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567658479; cv=none; d=google.com; s=arc-20160816; b=k5VQCrNyzhGfO6nUpEgsclkbVPGTx4qrkLJ7qa+xWg2gE7QPxdANVNMGg+wMaDBeEY N2ChkTXtvW8VTensWJmUzI2DN9CwWDI9KD240FqFJA9kRAFDEmIapYlhU+f03xBUhxfl ST6brQ407pS14L+caRls4apEKS+UC9006Tqp6cunNPXUzVjzuvizbhuEJxqQUSDKK6Ef EvMGOqYSQ1l/twcZswHIJw4Y66TlG7OS1z7OVzcchtpofYOsn8Ij+5xsrJMyTZd5YIeg NQYQsFG3LrIhNGbwCcvrmunc0o3s2xZAZ+Ow4Abh902e4qgY+sMffEwlkj90zObM3Rxp YuNQ== 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=A9lp9rhuOjuiUtpTZbai2HQ4h+Vi7sUNNaRy+CQ2YQk=; b=egV8RiLKv7x5zE8+8VCFtD4r07qwDJ23cKhRK/0/H7Ft1odSeXwpi3QVFisxcKLrL4 DlexiCitrLBMdLPGsMyv5nAhnCBiZ6JRyXo1Ln40bjDCx3qWg5x0T3l9VShk4nD9AEr8 tGMvQyHBnjtZMRACFIldhPTp4Uh1tS+fhSWekvmPBds4CVum5ceto5K66ucSW0VeDgQs A4ApGO9FMGuZKgHW5ZTfF5Ib2OhU5Qn0MHnGJ9M2M7iGaiNIPC1QwkW5pjsfmReWDOJN Y4DaiHEib42uu1jMG1A69GMeDAFVTybnODiQiGxBIIK3vvi9+kODhRqrsbbFuWa3iPtM DeQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vgYtsyg2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id h2si688431pgl.69.2019.09.04.21.41.02; Wed, 04 Sep 2019 21:41:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vgYtsyg2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730437AbfIEEd1 (ORCPT + 99 others); Thu, 5 Sep 2019 00:33:27 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:45442 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbfIEEd0 (ORCPT ); Thu, 5 Sep 2019 00:33:26 -0400 Received: by mail-io1-f65.google.com with SMTP id f12so1612570iog.12; Wed, 04 Sep 2019 21:33:26 -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=A9lp9rhuOjuiUtpTZbai2HQ4h+Vi7sUNNaRy+CQ2YQk=; b=vgYtsyg2WXd34VyqbkP05aghwRT4lvZ1s7eC0B2UvEemyrW2CCG4XVY+Oirqhhxklh RVjpqeQX/D8sjnATnNTYS8aJTAVTwybboUE1RgXr5FSwr651eQ5eq2rxqibcalc/oY9f D1dlubk0qbTK0JWtb9n8jkjX272/T1nWav8wnwzTbMLIzT/p+uobe5rtL8RyMhoZBov7 MoUmLz4sbKd1ADh8IvEKRqGOOU/mQndzLlz3qdSgWjD8L9dYcm+3q6TWLhjIEVNcRDva dPxBX7ShbQIPz3dXW02LX+YHBys4IikU8eJ/U74y9msfzMdrp2NC1750E3E/ph1BWf2F rPLw== 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=A9lp9rhuOjuiUtpTZbai2HQ4h+Vi7sUNNaRy+CQ2YQk=; b=TkoD7UOHueXxPe8VTMPn2Yhj2iJZHq6w7LtgQDjdiFf9TyLv/STkA/ZGWQvtEvYwW1 B9k5ws7G8aelVAMNGcKydEImUGqNMGsjoQ0tnzYcyXBEC7gJkyvDHeFJKrbda4CVzX6F GaMLiHEiiYhGvNpCilz+OsOkW1lFQot7VHV8F2KmXz4QiCSSbjyGegvCoggVsVTuL82R TvwRLMGPrDRa9aUxTmBZlkN0mA8UiRdyZjLAJhGDDheFP8bWObgNLVWtXb/qBGZlyYV6 wfQu9m5Ssc3Nkj4WaM7W9VSerjpdlkzNV7/J3a10Vywx/fCp025Pumm/dyh9uMqhYurf vTtg== X-Gm-Message-State: APjAAAVhBQobNPBEofh0ndA2CMn7ZOCEbhE3Z4QXIkOpHqk+uxZqMSLp Id4yTDbh0YvIWxZuQpvZ28CJNA+vwOmi6Ulv768= X-Received: by 2002:a6b:7503:: with SMTP id l3mr1689873ioh.244.1567658006037; Wed, 04 Sep 2019 21:33:26 -0700 (PDT) MIME-Version: 1.0 References: <20190903111342.17731-1-florian.schmidt@nutanix.com> <20190904204241.y6c335djr3bwm6xo@ca-dmjordan1.us.oracle.com> In-Reply-To: <20190904204241.y6c335djr3bwm6xo@ca-dmjordan1.us.oracle.com> From: Yafang Shao Date: Thu, 5 Sep 2019 12:32:49 +0800 Message-ID: Subject: Re: [PATCH 0/2] trace-vmscan-postprocess: fix parsing and output To: Daniel Jordan Cc: Florian Schmidt , Jonathan Corbet , Andrew Morton , Kirill Tkhai , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" 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 Thu, Sep 5, 2019 at 4:42 AM Daniel Jordan wrote: > > On Tue, Sep 03, 2019 at 11:14:07AM +0000, Florian Schmidt wrote: > > This patch series updates trace-vmscan-postprocess.pl to work without > > throwing warnings and errors which stem from updates to several trace > > points. > > Cc Yafang, who made (most of?) these updates. > Yes, I made 3481c37ffa1d and 3b775998eca7 but didn't remeber to update the scripts in the Document directory. Thanks for improving it. > > 3481c37ffa1d ("mm/vmscan: drop may_writepage and classzone_idx from > > direct reclaim begin template") removed "may_writepage" from > > mm_vmscan_direct_reclaim_begin, and 3b775998eca7 > > ("include/trace/events/vmscan.h: drop zone id from kswapd tracepoints") > > removed "zid" from mm_vmscan_wakeup_kswapd. The output of > > mm_vmscan_lru_isolate and mm_vmscan_lru_shrink_active seems to never > > have matched the format of the trace point output since they were > > created, or at least for as long as I can tell. Patch 1 aligns the > > format parsing of the perl script with the current output of the trace > > points. > > Thanks, patch 1 fixes the script for me for all tracepoints you touched. > > > In addition, the tables that are printed by the script were not properly > > aligned any more, so patch 2 fixes the spacing. > > Nit, not for Pages Scanned. With your series I get > > Kswapd Kswapd Order Pages Pages Pages Pages > Instance Wakeups Re-wakeup Scanned Rclmed Sync-IO ASync-IO > kswapd0-175 1 0 253694 253691 3 129896 wake-0=1 > > > A side remark: parsing the trace output for mm_vmscan_lru_shrink_active > > has been in the script ever since it was created in 2010, but at no > > point the parsed output was ever used for anything. I updated the > > parsing code now, but I wonder if we could just get rid of that part... > > I wonder if we shouldn't just get rid of the whole script, it's hard to > remember to keep in sync with vmscan changes and I can't think of a way to > remedy that short of having mm regression tests that run this. There are some similar scripts under tools/perf/scripts/, i.e. compaction-times.py. What about intergrating these vmscan scripts into perf/scripts as well ? Something like vmscan-times.py... > But your > patches are an improvement for now. Agreed. Thanks Yafang