Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2105749imc; Tue, 12 Mar 2019 07:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNWcCxNIZMWHUCdEXt1eJ+/Rhkc1ot7SYm63dbV/4fVKu1Q7NnJHnJg5LELHsbhLIyLoZd X-Received: by 2002:aa7:8150:: with SMTP id d16mr39170095pfn.172.1552399934782; Tue, 12 Mar 2019 07:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552399934; cv=none; d=google.com; s=arc-20160816; b=polS1g8wb0C2pLfnf3CdGj2/EH4mnzgFey7sKOeB5eTs2i1qM1XTs8uciiHGo9GFqd ZUfuVi1+M3wWibjI5Us2gna1yI0i70qA0+DQihnmVuAr2M+z5F9r7BDJN9oUFKpG+mDn DmphEdnzpBWuKbb4OI71P/tn9zjZqauFdisssJBga0BCwGgv/dkqd/jgUl2fN6hrKAUf WEAmcrIDrgVh1jZ3hdx/BDx9iCA3TEj7Dz32YFitcgQvlytizgEQ0PzVlWCvjSgmueN8 vqYbeaBa2cXElTX/qiHg2p80Sy237Fuyj1ki3ByzzHinZLDAGtBlr1AVhrnFfwON2rb0 Pkww== 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=h7plJKK7CMAfrjjVhJmorscumrWINpd8NhhS/I9a1N4=; b=nwDbnGpGqoNEWg4yNdHtYoxdYilkHlA77xJ3e2pYkIETsbyqbh92GndJoaR9D30Qam jdXY/1aOKO1Qh+YnW27s0bjFJERp8EiE5RthCiyGAnN2DlTMsrRlXjmU3ET7kGOnJH+B 3CLKasHHsT3UEue+jc1PfFzKmivGRC/+PjosmrNhPPitzj6AkxX5AsEb80QZ4lvXdYls sKWCMn9jppzK9U47bsvncT9eLpEmgMA5CUjMpGU+fLfg5jP52UQ2NBi+xWoCbMi3lF3l fsNVjBb9ED3bYYpOhn2xP/4Ty9An/wGaxbmTwOpzfam1/h0t8T9ihwDZuZojnaLtCIFH 5NZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t+FrO7/W"; 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 37si6005137plc.233.2019.03.12.07.11.57; Tue, 12 Mar 2019 07:12:14 -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="t+FrO7/W"; 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 S1726750AbfCLOL0 (ORCPT + 99 others); Tue, 12 Mar 2019 10:11:26 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:53892 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbfCLOLZ (ORCPT ); Tue, 12 Mar 2019 10:11:25 -0400 Received: by mail-it1-f193.google.com with SMTP id x189so4565909itd.3 for ; Tue, 12 Mar 2019 07:11:24 -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=h7plJKK7CMAfrjjVhJmorscumrWINpd8NhhS/I9a1N4=; b=t+FrO7/WFFNvRRbG9RKQnGKwO5ptegBmevRSjLlq+7PjEMRUwdPgKwe0hXNEUb/Cn6 jim3QVCnCg4R4TWqZE5xvDaRi/dP5AQucB8wpSTpdV0uixu82PlOea9Fh1LFNSRiIn/Z aUPbsFd77rzjjGO1imhp385V1WblN5P7JFu/JJYZaydEkyyu2xHwbR9MwWds/aUQzGlb XGRmm/h38oXpONofHzxTvmxIn93AP8gLorGkTYJR+johXKhADDfK82ATA7PvFnFJh/D+ 4+wiqAhl7pDA7pvC/FhzCdGhoW7P5Sg92OIjPZ205JWeZaj/0gvhpJTqle+0Ff7CHNhR E5Gg== 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=h7plJKK7CMAfrjjVhJmorscumrWINpd8NhhS/I9a1N4=; b=RFp8MnBcKkE2cp3YmJ/ahMTp0YT6wNK9/nCaWy+HupBLbXHvbVIRqGoq1IvJirQnUG rWPusuna8z4VCVWWgqsvtgd7aRU/7CbE5xpnWcpGYL64hSEx0h/YbQHKrRkK3THEsu4s eQAGAAsVnJIbf0b64p4pCxscDbo4F8DWzziARNJuTmSo+9q6IUIm7MO/fHhqQvdCyUf8 2EPA++GBbVLBRE12NxIxvvmbdC94ctvQj0Z/7nsapX30+xmMy8+cRn0BglfV5f4jmXEE sRdVAvtf35qGhj7hYFr/pfgyJj/bAQi6j2vnNigakWG+xzo2J1nL/kTF9N7vbGLltnI+ Bvjw== X-Gm-Message-State: APjAAAV15dbdEHEy/4dRe5a5fJ2UGF0urx/gXfM4879/lA9F1DRR48EO hN/AM446rUfkCLF9hCBqlBRBYWj7aesK79wqxUY= X-Received: by 2002:a24:ee89:: with SMTP id b131mr348404iti.97.1552399884412; Tue, 12 Mar 2019 07:11:24 -0700 (PDT) MIME-Version: 1.0 References: <1551425934-28068-1-git-send-email-laoar.shao@gmail.com> <20190311084743.GX5232@dhcp22.suse.cz> <20190312133816.GR5721@dhcp22.suse.cz> In-Reply-To: <20190312133816.GR5721@dhcp22.suse.cz> From: Yafang Shao Date: Tue, 12 Mar 2019 22:10:48 +0800 Message-ID: Subject: Re: [PATCH] mm: vmscan: show zone type in kswapd tracepoints To: Michal Hocko Cc: Vlastimil Babka , Souptick Joarder , Andrew Morton , Linux MM , LKML , shaoyafang@didiglobal.com 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 Tue, Mar 12, 2019 at 9:38 PM Michal Hocko wrote: > > On Tue 12-03-19 19:04:43, Yafang Shao wrote: > > On Mon, Mar 11, 2019 at 4:47 PM Michal Hocko wrote: > > > > > > On Fri 01-03-19 15:38:54, Yafang Shao wrote: > > > > If we want to know the zone type, we have to check whether > > > > CONFIG_ZONE_DMA, CONFIG_ZONE_DMA32 and CONFIG_HIGHMEM are set or not, > > > > that's not so convenient. > > > > > > > > We'd better show the zone type directly. > > > > > > I do agree that zone number is quite PITA to process in general but do > > > we really need this information in the first place? Why do we even care? > > > > > > > Sometimes we want to know this event occurs in which zone, then we can > > get the information of this zone, > > for example via /proc/zoneinfo. > > It could give us more information for debugging. > > Could you be more specific please? > Honestly speaking, this one hasn't help us fix the real issue yet. > > > Zones are an MM internal implementation details and the more we export > > > to the userspace the more we are going to argue about breaking userspace > > > when touching them. So I would rather not export that information unless > > > it is terribly useful. > > > > > > > I 'm not sure whether zone type is terribly useful or not, but the > > 'zid' is useless at all. > > > > I don't agree that Zones are MM internal. > > We can get the zone type in many ways, for example /proc/zoneinfo. > > > > If we show this event occurs in which zone, we'd better show the zone type, > > or we should drop this 'zid'. > > Yes, I am suggesting the later. If somebody really needs it then I would > like to see a _specific_ usecase. Then we can add the proper name. This 'zid' always seems like a noise currently. I will send a patch to drop this one. Thanks Yafang