Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp966317ybg; Mon, 1 Jun 2020 20:24:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy27hm1R8v4h1vRb/HUVN+qX3X9j1QJIYWQ0prM8BGxm36l8XTU+CLga3v7K4W5frfMkABG X-Received: by 2002:a50:d499:: with SMTP id s25mr9263639edi.161.1591068266737; Mon, 01 Jun 2020 20:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591068266; cv=none; d=google.com; s=arc-20160816; b=MXBRUUjgsYaxIoUaqIaNT9TKVjvYTf3LaCa0rvzOnnJI6qtIsFRn2do0COSIeQj/VW p0v7RkwgSpyf4n0m1P2Wa4In6GfCjLufHk6AWOfGm+kEcSPaPSLkO8xmzbsDiGJYP3DN 52Z65oVo4/naUwvAWrtYPfDwlQW7NODADgtvwtRdy6FASMdRF452oGAyu4t+ADIYnAQt xe8bN9IpFoCcQpeGDkfcinj8JBnxdnmNC8bwF1FO7vcS1zRxxSX8lHrf6ekH+uCi7ecd IqDvWM7MGQGy9FzKphsMchIjxIuMDrpYvF7Gx8XhL5H9KGoP+uq5+tXtZoVWqlTpX3g4 lkjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=D8A1hpMTIZ2k2DR5/UwfONmp0VIuvs4qyuES2Sn0xHI=; b=kU/f0iC+wngfRhvobkgl+y8k+YwjOAAJjT0cKmADiMv1CzxgiuV3rU3q5SOn9LDVBt hAtzcTXod4lNvEclJCiW6oUSI8s16TooDuusZxNW9kkiDUB/guoyylAFHZPXoH+LCF4M jo9pPEMsW9Hl09xLJPJDhvpKe/dxS3UTejL8Yv/KUW3viTWOriccBtYrAIm+TX1ts79C qjiBxMCLlzuW4wgJTmrl52FufPS3h4HVcEhML15CwJ7K3uIyrOUF7kO77Z8VEAl9ECqM 7sg9mVXWgOhQGpcq88oItT1fb4jsXKN24ByYbkxpzs4aK+tYq7QZxFbr/8CoqGqUCY+D b7xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=GrIz+z5h; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si859157edc.527.2020.06.01.20.24.02; Mon, 01 Jun 2020 20:24:26 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=GrIz+z5h; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbgFBDUL (ORCPT + 99 others); Mon, 1 Jun 2020 23:20:11 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:18277 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgFBDUK (ORCPT ); Mon, 1 Jun 2020 23:20:10 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 01 Jun 2020 20:18:43 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 01 Jun 2020 20:20:10 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 01 Jun 2020 20:20:10 -0700 Received: from [10.2.56.10] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Jun 2020 03:20:05 +0000 Subject: Re: [PATCH] mm/vmstat: Add events for PMD based THP migration without split To: Daniel Jordan , Anshuman Khandual CC: , , Naoya Horiguchi , Zi Yan , Andrew Morton , References: <1590118444-21601-1-git-send-email-anshuman.khandual@arm.com> <20200601165736.qw5kwwknxltk7bv6@ca-dmjordan1.us.oracle.com> X-Nvconfidentiality: public From: John Hubbard Message-ID: <0a936ec7-f44f-1d72-915f-f5758d25fd72@nvidia.com> Date: Mon, 1 Jun 2020 20:20:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <20200601165736.qw5kwwknxltk7bv6@ca-dmjordan1.us.oracle.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1591067923; bh=D8A1hpMTIZ2k2DR5/UwfONmp0VIuvs4qyuES2Sn0xHI=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=GrIz+z5hstXvn5L/CafsZt24hH1k+QVqhtvYgU/lu9Ljg3nTrKtd77O17KQLDl4vN lmAZr7+feh4qJlTL5hsQbTUhjhWAdVEXovxBrznllPwBYYJ43uaLj2rcovQAIf61Zv JlMuR/pyceVvBuF3Y6GO+SQRZ0ZsYPc1wd7AWbgHkwoEfh7wXO8K0m3wiw+OscXAr7 KZRy9shP7jrQkVFCWAtaTR3wi82pXtw2GL4liNVN4JZ3midiN+fNVVydCo0VVq+Fyz /8sMNGI674n0h7BrlFtwLenM+HbDOd3k/5CUr7szqoVRehIdhFCrwH+XWz+UMR6jGf Ge+G+fFQ7q2Og== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-01 09:57, Daniel Jordan wrote: > Hi Anshuman, > > On Fri, May 22, 2020 at 09:04:04AM +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 > > The names suggest a binary event similar to the existing > pgmigrate_success/fail, but FAILURE only tracks one kind of migration error, > and then only when the thp is successfully split, so shouldn't it be called > SPLIT instead? > So the full description of the situation, which we're trying to compress into a shorter name, is "THP pmd migration failure, due to successfully splitting the THP". From that, the beginning part is the real point here, while the last part is less important. In other words, the users of these events are people who are trying to quantify THP migrations, and these events are particularly relevant for that. The "THP migration failed" is more important here than the reason that it failed. Or so I believe so far. So I still think that the names are really quite good, but your point is also important: maybe this patch should also be tracking other causes of THP PMD migration failure, in order to get a truer accounting of the situation. thanks, -- John Hubbard NVIDIA