Received: by 10.192.165.156 with SMTP id m28csp1590585imm; Wed, 11 Apr 2018 23:22:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx49jCfVBjiyNbc1+ZeLfEwP9bajf/qYBUUkyVVLhx0NHeBGy0I4WsP3c0ExjFBUK4FguJdZ0 X-Received: by 10.99.100.68 with SMTP id y65mr5772088pgb.257.1523514143777; Wed, 11 Apr 2018 23:22:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523514143; cv=none; d=google.com; s=arc-20160816; b=oCtfkIv/nsOahzsSwmf4Jakuug1L8x1EOqqy/Z/3Xc/61T5WbEk60UfQHMb0JkwS9s eSaHKFghQ+cvk+ZjWHfN6ioheLllWKeuTSmiBSBrFWZfbY7Aa/uJRfuYlvfbvaYrao0m wFFommJeDsf2IFHF1vumdSOQbApSd1x3WbOFlDEI5ZDeNJZWm/EAPd/3key7YOQn9Ky2 k6/6zYEcYrKTD2hsPHZe9sy40AtYSZ45Gp/vQYrAerB/W7cpXUh5GqPVOy6biqQgRp3z AlFyDQk/i4kCiVAHh3FUffg7StTQHgrWd02y51sjYVMX/AObI6+49zYO+4rA2mqrAecd dGaw== 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=JZoAv+BdDM+rVZ00nwP43slIOAR8LxVXC0Dng+fUKMc=; b=FTglDi/y6IJVXuUauApZaqAvjCTdXlWC7+YJykitLymTu1GLtv+ugEIcQoY26q3Avz 3ce8JyKlHYH5p3pwc2ra6UV+3I+/HnHuRYi8z9N8hnH+rDet7M7yn1yJmwrb3e1RjB8S 60kuo1ppj0jSAZ2npE4HE+Qhl2nqpEK5ou43yyEKcvtU5aQrPcSjQKbwQyGdsqhSqDEu 3UYm6V1Ht0ByVYYveD+QltUK55WdbBTG0+rcQNfzrTpjBOy5XGYR4Hs8iPY+AlcvPcab fqPnLrUGhN/0FUFC7fzEvztNKKeEOKFHXcr+Oei6CVY7tzBnVT0BhVkgUsp1pNVwObCW t99Q== 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 n1-v6si2603165pld.546.2018.04.11.23.21.45; Wed, 11 Apr 2018 23:22:23 -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 S1752103AbeDLGTD (ORCPT + 99 others); Thu, 12 Apr 2018 02:19:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:49878 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750743AbeDLGTC (ORCPT ); Thu, 12 Apr 2018 02:19:02 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 47043AE07; Thu, 12 Apr 2018 06:19:00 +0000 (UTC) Date: Thu, 12 Apr 2018 08:18:59 +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: <20180412061859.GR23400@dhcp22.suse.cz> References: <1523434167-19995-1-git-send-email-n-horiguchi@ah.jp.nec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523434167-19995-1-git-send-email-n-horiguchi@ah.jp.nec.com> 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 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? If we are there then what about different huge page sizes (for hugetlb)? Do we need per-hstate stats? In other words, is this really worth it? > include/linux/vm_event_item.h | 7 +++ > mm/migrate.c | 103 +++++++++++++++++++++++++++++++++++------- > mm/vmstat.c | 8 ++++ > 3 files changed, 102 insertions(+), 16 deletions(-) -- Michal Hocko SUSE Labs