Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1084315ybk; Wed, 20 May 2020 21:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2VqPJuexzX/Dpvopl/72m8hFufWrb4RkbMqY1iB5PxUyob5DVEL4C3swsYDkQLWCqh7/2 X-Received: by 2002:a05:6402:1447:: with SMTP id d7mr6589669edx.367.1590034365817; Wed, 20 May 2020 21:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590034365; cv=none; d=google.com; s=arc-20160816; b=Pd8qtOSyJTCviwVLT6M47wBL5Tg5qlmYmDPKJQ/OTwNQWyI0tk/saDs2zuZeoC1Rqz Rx9hLeyrEvCzA0kL2D867peecIQpwetQTLs/nAhXsxns5gMM8wUZhfKvFhz5ZUd2+ZhE TFI6dZcvSXyNGhGuSrmvdalKXkcN42ob2u0kiQ+bQ/1qe8aYiPa+Isnxa1eFvJfXVXWM aUOqwQ2VPW0uDbgZVH7Jn8Mqodg3tk4lsR+Nfqmlz+z8vDoOnw8FdBamIrpTt/+gPAef sbns0s+l6ZTr2qped8kdGDYdpkkgBv6fx6YKW0clkR3HdtN90WB4vXv5x89EfWLVZ0vj w+oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=opgBAObu00a7sPo3JT8IjwDSrmjaai1+1pyOYKwiThs=; b=m+67PsfxRlcPZ5y/E78zXVa8p/Xm4y6lYqf/m19gAFN9RUiluN0BZnwKOGAPMWzidn vYg6cMQOPBkEtyNYz9MxHUJ+wvU575GL2sh0TVszHvX8BfBlkP29g1F/lt+XlYR5aPAY etmSPszRWEuJKUo7nFoxIbPvMpOQgFNLJYmXq7nIvckecrzRdogROPULgpEALBXC0TwE /E9hvNOJjNzousW3snwoJ6ESdkBuQ7bm6nO7Q3VkClcH2Os4Lky+i3wWrbq0xeWRT6uW 9EQ/JiB5oc5xupKeovtSSKuEFkmp7BY8b7q/o5JQ5Vxh8r/4mIwn1uvs/IGJpiIOa7Rt WsKA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si2726756ejh.598.2020.05.20.21.12.20; Wed, 20 May 2020 21:12:45 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726394AbgEUEKr (ORCPT + 99 others); Thu, 21 May 2020 00:10:47 -0400 Received: from foss.arm.com ([217.140.110.172]:39934 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgEUEKr (ORCPT ); Thu, 21 May 2020 00:10:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 20E7C30E; Wed, 20 May 2020 21:10:46 -0700 (PDT) Received: from [10.163.75.69] (unknown [10.163.75.69]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C7D623F68F; Wed, 20 May 2020 21:10:43 -0700 (PDT) From: Anshuman Khandual Subject: Re: [RFC V2] mm/vmstat: Add events for PMD based THP migration without split To: =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPo+OAgOebtOS5nyk=?= Cc: "linux-mm@kvack.org" , Naoya Horiguchi , Zi Yan , John Hubbard , Andrew Morton , "linux-kernel@vger.kernel.org" References: <1589784156-28831-1-git-send-email-anshuman.khandual@arm.com> <20200520071521.GA29616@hori.linux.bs1.fc.nec.co.jp> Message-ID: Date: Thu, 21 May 2020 09:40:07 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200520071521.GA29616@hori.linux.bs1.fc.nec.co.jp> Content-Type: text/plain; charset=iso-2022-jp Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/20/2020 12:45 PM, HORIGUCHI NAOYA(堀口 直也) wrote: > On Mon, May 18, 2020 at 12:12:36PM +0530, Anshuman Khandual wrote: >> This adds the following two new VM events which will help in validating PMD >> based THP migration without split. Statistics reported through these events >> will help in performance debugging. >> >> 1. THP_PMD_MIGRATION_SUCCESS >> 2. THP_PMD_MIGRATION_FAILURE >> >> Cc: Naoya Horiguchi >> Cc: Zi Yan >> Cc: John Hubbard >> Cc: Andrew Morton >> Cc: linux-mm@kvack.org >> Cc: linux-kernel@vger.kernel.org >> Signed-off-by: Anshuman Khandual > > Hi Anshuman, Hi Naoya, > > I'm neutral for additinal lines in /proc/vmstat. It's a classic (so widely > used) but inflexible interface. Users disabling thp are not happy with many > thp-related lines, but judging from the fact that we already have many Right, for similar reason, I am not too keen on enabling these counters without migration being enabled with ARCH_ENABLE_THP_MIGRATION. > thp-related lines some users really need them. So I feel hard to decide to > agree or disagree with additional lines. Currently these are conditional on ARCH_ENABLE_THP_MIGRATION. So we are not adding these new lines unless it migration is available and enabled. > > I think that tracepoints are the more flexible interfaces for monitoring, > so I'm interested more in whether thp migration could be monitorable via > tracepoint. Do you have any idea/plan on it? Sure, we can add some trace points as well which can give more granular details regarding THP migration mechanism itself e.g setting and removing PMD migration entries etc probably with (vaddr, pmdp, pmd) details. But we will still need /proc/vmstat entries that will be available right away without requiring additional steps. This simplicity is essential for folks to consider using these events more often. Sure, will look into what trace points can be added for THP migration but in a subsequent patch. - Anshuman