Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp413779ybg; Wed, 3 Jun 2020 04:12:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXRoHtmU4h+B14WJ59gemM4dAxfMG0ebG4rp22fv61acemjkh4h3y7KKvfDhAotI73pmKJ X-Received: by 2002:a50:cd17:: with SMTP id z23mr16473160edi.326.1591182724108; Wed, 03 Jun 2020 04:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591182724; cv=none; d=google.com; s=arc-20160816; b=tl/65RE8kTj5KuvnbiTxrlWYY7wt++RkS6h1/GbUWsRp+AAjRbsi22vt7doe+l9RBL WS5xENpKrXk5W0woK58rM5WMcHyo6e9y8NfdvX60ZGWLpofyKzZ9eet/s/bvokvAY2tR cC/da7TMhwwTLXLsA1ra7GFTo3aoc+b+mahAGqTr4bmtphJPuA0dxbguTgzKUyfsSRBT VUCkjqiloUIuKfIq2CjQ98M7LjINB36x9tPRW15mly4gwEGmdEXtH+gBMXG9lBS+2rEj c9MokdynvgQXZMvfiU7lhRfmPvMyqYUaE1t3PQyBbQUOo3U5lK9nXmes8Ju1WWLzMP/O 2aDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=cDGghqfSCuNlVaGtMZhIDjeMAkusS7gi8giksB3q3O0=; b=RIpGzZqN5JLtWOxdeCwTroITjLYvAo/WU0L7Ky1BcPfs2abnDY/2UN+BVE6keNEwo7 EEw+px0B3JU2U5xgv9X4+8kz4eY0LEfpShNngxX5bJTb8H/CmDivBtvwp8GK6fJbTo84 ebfxwPciadainG1jUVlQYHVmxfKKwx2UjQphXoxfH6WMJstnRRT0Be3vO2B+dxBJny1G aPLlaFfNv2hJabcelKguv9UaPzRTbw5TBznHMUhUWBP8lqvrmgRnlBTob8/5MvyNGe3z BzpJteMa5mekONEZdQAvegoB9LqUNFNUW2JNFPrlIE4Q/yr+cXqaIb1FzwAJIfQwH7N1 N0/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=J5KdTTMG; 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 u16si957365eja.123.2020.06.03.04.11.40; Wed, 03 Jun 2020 04:12:04 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=J5KdTTMG; 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 S1725981AbgFCLJu (ORCPT + 99 others); Wed, 3 Jun 2020 07:09:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbgFCLJr (ORCPT ); Wed, 3 Jun 2020 07:09:47 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437C1C08C5C0 for ; Wed, 3 Jun 2020 04:09:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=cDGghqfSCuNlVaGtMZhIDjeMAkusS7gi8giksB3q3O0=; b=J5KdTTMGxUlDBP1135itwZXJyH nhrPghOmZliajNwZJ24DM8OaSR6lYwC3lvHRfkQTOOJhKQb1iNMR7sbqshHsMRSESFp/9gR9a+WVc Eo0FD1D2/Ez6Zat3T0xAOpXwXlVYAU7Lsc2S+2xhhAIljPcTb9XNln4ryuTYN6lG00vQ2RPV6BUTV 9Q6R2LjVjx0zmPy/sLZ4NW88Zb/MGCezUuMoBGhFcmVscVSTljHvOU6VotPbPkHVgEn4JEUSJmAe0 GOH5g7WfbNFBZsQKLGJgd9eNsGICyZvPvBBZEpXdv5XY2LBkwpP+B5l4HNiWsbcFEJ0ZIo2q2YeA6 P1BqHEwg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgRH7-0005t7-6k; Wed, 03 Jun 2020 11:09:37 +0000 Date: Wed, 3 Jun 2020 04:09:37 -0700 From: Matthew Wilcox To: Anshuman Khandual Cc: linux-mm@kvack.org, hughd@google.com, Naoya Horiguchi , Zi Yan , John Hubbard , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/vmstat: Add events for PMD based THP migration without split Message-ID: <20200603110937.GP19604@bombadil.infradead.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> <280304c7-882b-cb2f-55bf-87b2e2f28711@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <280304c7-882b-cb2f-55bf-87b2e2f28711@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 10:28:41AM +0530, Anshuman Khandual wrote: > 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 ? I don't think so, but I haven't looked at the migration path at all. I'm hoping it "just works", but experience with the rest of the mm has taught me there's probably an assumption in there that THP => PMD that will need to be fixed. I'm not currently testing on a NUMA machine, and I'm still debugging other paths.