Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp217079ybg; Tue, 2 Jun 2020 22:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCGn+0gmWUA8dAWEi0UrK39/HmKezGbi2d7N4QOzfKgsTPVjg7qbB1F1tosPNiIMBhmcIR X-Received: by 2002:a17:907:2072:: with SMTP id qp18mr12935723ejb.179.1591160571892; Tue, 02 Jun 2020 22:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591160571; cv=none; d=google.com; s=arc-20160816; b=cL04DX4v/vyytW+GqPaqooucY1PMHykFgtzIJOrzgmVpvUevllstrptNNjSnF8SRFy xYcdtK9nc5Sm0fZXeMLZ86oEBq95BNRaevWFLn8IJoZZ4U7uVcoYI2qLBCp/QA+hOdHW PEIlzYABfh+ieWZiz5Xl6kWaTtubwjQynzE6COcJ7Ao23obPocl2yX4sgG9sML+wyvc4 OTP37UtSyzZSZlStmPV3QHn+awr+kqrPCposl/52KM3wavU0uFy3F9nQTUBxKNRKjFk3 lWCd9H6qq1J72+ekudQBrlD5nPdimTwdeOu5la1ZEq5bP82HlfTRLNrWGadk/lEwB6ku 8X+g== 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:from:references:cc:to:subject; bh=HOUwPjQZ+l0ntRkcOKrhFVucG+cswIWnFHr0r5sjpGE=; b=ljPBYN3PQY0M7EMIMCsyWSfMWuBQhbWc6lRG8cRRlk/zRCcxmDfudahvSv13cUGEDi /hh6Y+kv6lOqBnRmMKOZ6r21GBjrSUUb+PCVp7uskCaq50eYcZdEXOn4drCL4SMawmD1 FU+3sqwL6nqX7U0kZkKF6dHh5cinXkpEcOBYyoWCLmEV7fGiem+MTfFKMSWh0dz7QSiv dsKKMA7CwQoQHc3NztfJhJKrvS1iCKCVh3x8xWJSHx4Y2KMBPgFsd1hYMezazeToAuDZ 8DNWBd3a8p/fzV2yvHcmubVVXgc/LZPuRClxnP2mXj0zsBs9AGOvujUwtK7JmeUXb2bj 3wmg== 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 w25si535758ejv.102.2020.06.02.22.02.21; Tue, 02 Jun 2020 22:02:51 -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 S1725876AbgFCE7o (ORCPT + 99 others); Wed, 3 Jun 2020 00:59:44 -0400 Received: from foss.arm.com ([217.140.110.172]:57114 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgFCE7o (ORCPT ); Wed, 3 Jun 2020 00:59:44 -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 DB27155D; Tue, 2 Jun 2020 21:59:43 -0700 (PDT) Received: from [10.163.77.218] (unknown [10.163.77.218]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1BC6C3F6CF; Tue, 2 Jun 2020 21:59:40 -0700 (PDT) Subject: Re: [PATCH] mm/vmstat: Add events for PMD based THP migration without split To: Matthew Wilcox Cc: linux-mm@kvack.org, hughd@google.com, Naoya Horiguchi , Zi Yan , John Hubbard , Andrew Morton , linux-kernel@vger.kernel.org References: <1590118444-21601-1-git-send-email-anshuman.khandual@arm.com> <20200602150141.GN19604@bombadil.infradead.org> <2d4634ce-9167-6ca6-fb91-f3c671fff672@arm.com> <20200603025729.GO19604@bombadil.infradead.org> From: Anshuman Khandual Message-ID: <280304c7-882b-cb2f-55bf-87b2e2f28711@arm.com> Date: Wed, 3 Jun 2020 10:28:41 +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: <20200603025729.GO19604@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8 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 06/03/2020 08:27 AM, Matthew Wilcox wrote: > On Wed, Jun 03, 2020 at 06:56:57AM +0530, Anshuman Khandual wrote: >> On 06/02/2020 08:31 PM, Matthew Wilcox wrote: >>> 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 >>> >>> There's nothing actually PMD specific about these events, is there? >>> If we have a THP of a non-PMD size, you'd want that reported through the >>> same statistic, wouldn't you? >> >> Yes, there is nothing PMD specific here and we would use the same statistics >> for non-PMD size THP migration (if any) as well. But is THP migration really >> supported for non-PMD sizes ? CONFIG_ARCH_ENABLE_THP_MIGRATION depends upon >> CONFIG_TRANSPARENT_HUGEPAGE without being specific or denying about possible >> PUD level support. Fair enough, will drop the PMD from the events and their >> functions. > > I guess you haven't read my large pages patchset? I believe you are referring this "[PATCH v5 00/39] Large pages in the page cache" (https://lkml.org/lkml/2020/5/28/1755). Unfortunately, I have not been following the series. But is there something else in particular that needs to be taken care of as well ?