Received: by 10.192.165.156 with SMTP id m28csp1656042imm; Thu, 12 Apr 2018 00:52:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx49E9PxrKCutHHqj3poKbkKS3SKepM+xxUaf6eEY6q/rKjcWLfdzVIiYNRRlZKzBsQPIjFcA X-Received: by 2002:a17:902:5a0b:: with SMTP id q11-v6mr8825430pli.199.1523519527159; Thu, 12 Apr 2018 00:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523519527; cv=none; d=google.com; s=arc-20160816; b=ceE6qYKeVjxuIvnkp3tL7+U2NpmGURuzOR4Z/eI9rpa3q4MG+6kOoUppuRoy8tmchw g0GvE9WKYXSH6Oj8jEpiwLNCt9F2oQ1CcQ3z/AvdDzL27+iO0NewOFzclNIe2dXf5K/a xq4bZexLLTuxQtDxSGeLIdldMkRhdDkRXodm+qhxsIvF96BLfpYsg5I7zgB5StyS0ex1 XFsyxMRH9Nh141cMCp64Wv/EwkKGB06Z/MfX2G8RkzL6zbWfxkqvJ4PGKlY1q0vQJnNP uKfdISVJf/pCUxyAc4AkbE4Y4mCunPF6NGkwLCss1sfJ6An9oWx1vWFmzKuS4aIG1PcO b5wQ== 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:arc-authentication-results; bh=bALnGMWHyvmDD8S9XjBSOV7szVGvPqTfvg0ZR8pRm7E=; b=PlNMjNotxQ8aOZnU9KOtM10nXMusI3vKfocqkT5j+/bwKIYSKP4Wm6WudxnY6xI1BG jI90I/KMz1DEJHcLzI9gkq74s6aiPbW1JxXamSxzLYiVGUAhna7pFHbWoKS0DbcHfhEE yKCwheDwpF3itb1DzEfTl2N9kWvQWQsSLzWFrO6eFbD7jVgij/XRRcaPbI8VKVHUWyaa RpsUGXbMEtHIsF4rJbd9UbC8aSPm2VQ/muHgUSLcncuXHxVIrTvCbjA6JIS0d5l5f0Bb a5XF9sbqtRN1xMVIOG6ywgHCld5jPZq5jOTHpfTXtRmBk2JqQyCINyuvzG/ZJC1wPjij 4x8Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o69si2120484pfi.157.2018.04.12.00.51.30; Thu, 12 Apr 2018 00:52:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbeDLHr5 (ORCPT + 99 others); Thu, 12 Apr 2018 03:47:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:56334 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009AbeDLHr4 (ORCPT ); Thu, 12 Apr 2018 03:47:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 12F01AEEB; Thu, 12 Apr 2018 07:47:55 +0000 (UTC) Date: Thu, 12 Apr 2018 09:47:54 +0200 From: Michal Hocko To: Naoya Horiguchi Cc: "linux-mm@kvack.org" , Zi Yan , "Kirill A. Shutemov" , Andrew Morton , Vlastimil Babka , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1 0/2] mm: migrate: vm event counter for hugepage migration Message-ID: <20180412074754.GS23400@dhcp22.suse.cz> References: <1523434167-19995-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20180412061859.GR23400@dhcp22.suse.cz> <20180412074039.GA3340@hori1.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180412074039.GA3340@hori1.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 12-04-18 07:40:41, Naoya Horiguchi wrote: > On Thu, Apr 12, 2018 at 08:18:59AM +0200, Michal Hocko wrote: > > On Wed 11-04-18 17:09:25, Naoya Horiguchi wrote: > > > Hi everyone, > > > > > > I wrote patches introducing separate vm event counters for hugepage migration > > > (both for hugetlb and thp.) > > > Hugepage migration is different from normal page migration in event frequency > > > and/or how likely it succeeds, so maintaining statistics for them in mixed > > > counters might not be helpful both for develors and users. > > > > This is quite a lot of code to be added se we should better document > > what it is intended for. Sure I understand your reasonaning about huge > > pages are more likely to fail but is this really worth a separate > > counter? Do you have an example of how this would be useful? > > Our customers periodically collect some log info to understand what > happened after system failures happen. Then if we have separate counters > for hugepage migration and the values show some anomaly, that might > help admins and developers understand the issue more quickly. > We have other ways to get this info like checking /proc/pid/pagemap and > /proc/kpageflags, but they are costly and most users decide not to > collect them in periodical logging. Wouldn't tracepoints be more suitable for that purpose? They can collect more valuable information. > > If we are there then what about different huge page sizes (for hugetlb)? > > Do we need per-hstate stats? > > Yes, per-hstate counters are better. And existing hugetlb counters > htlb_buddy_alloc_* are also affected by this point. The thing is that this would bloat the code and the vmstat output even more. I am not really convinced this is a great idea for something that tracepoints would handle as well. -- Michal Hocko SUSE Labs