Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp163139ybg; Tue, 2 Jun 2020 20:01:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcbUsKiq+pf4gjbO95AtHcpuvI5WvRnqDlNlJw0T1/T486QaHXjqP88YwJ+/QSo+sAclZi X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr4886454edb.169.1591153316153; Tue, 02 Jun 2020 20:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591153316; cv=none; d=google.com; s=arc-20160816; b=dAf3HcZ8LDGQvt2RCM8jpWuN9EuzcKOZfjdEyNHJC0MMyyk2TRzDvECtfWDtgC8di3 u4HtdCBvQZhNSRqmBNHqxSJJmLMux00wHiaumTnwgSe9lgMQVFpNVAk4RjsMTGCyzRzg ZrZvW38+PAi85vA7o7HAexwM2Fti4c0kDO7e8gI9mLdvn3qnIX6F3Z6DKn6MRJSyoLFM miKqn84xUJfC28mG1BO7loOr8OoCqcfuvKWNg+vBqHkSeM2QPdoQnODB4cQl1yRYhH9D 0E9RUZyVLPejZMb7wHSTrdyS+suv9LZb2CBKaAMk5bUnWYJQGj0nUzFjC2/oASuctFSW Rwmw== 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=PWX9BV+vrW0IrePlfAaDQhinjrn9zTJLBodSCt06FbY=; b=0XMv+RAcuNa+3TsgNW+IlTD0PcXsdIpM3aghqarHYCa0LzUf9NvmcXeeg6USY4KAj0 wb2AY+Cgp1/oZV8SsNMUx2JWq+C3zN5na2ZzhbitVez5g8I+RcdSULM19sU/nPUCKyu2 De6n38P3etTyIve2SNg1DIBhHBfCVGQ9+kpjZVUCSqjS3hr6ojOJCEpQagN2sURk4t+/ Dh+FcpozAzjay5E/4PqxqU2q5VYE+IJeTNgQtspcFh9gYpbvI48uNubB1wYRHO/9W7W4 6KeDGfP+tvQPZZZX0W8BG+AwZT1UEyg/kZdaZ3oitEQDNd76/TDxgk8edmWX2hqd/kzn gPPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=lhrscTOz; 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 v24si434755ejb.681.2020.06.02.20.01.33; Tue, 02 Jun 2020 20:01:56 -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=lhrscTOz; 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 S1725883AbgFCC5p (ORCPT + 99 others); Tue, 2 Jun 2020 22:57:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgFCC5o (ORCPT ); Tue, 2 Jun 2020 22:57:44 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F5F8C08C5C0 for ; Tue, 2 Jun 2020 19:57:44 -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=PWX9BV+vrW0IrePlfAaDQhinjrn9zTJLBodSCt06FbY=; b=lhrscTOzVwIDVU9rOr3VjPrNLb DAFba5itcmMxU17lBm+QnpqXLrSY/e+XOeRTPlThZcYZx1ppCr2W8JTn2Jnne0JYqzwraWqrLdiAr JfQastEPDHKi2lzpo2eTzKD+R//w++FiRBv5/r5eivu0dXnPnQFIOO7MjbCpqP+4CM8MhWK3Ei0yW 9j6bDFdY2T8lVvdPx8vgdFcAWruRfm8HEKh0LMQMXa2yI3Q1Zs2rMEaaPo2OLoujHZEnmU04ucHAg m2vnQyXlyfCaer20yXFYn7wI14cAUNFWHKwtL/XhcC6ufHPCCN0iD3ljoxi5Yjskbf7njojeHQOT9 dbZYjmUA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jgJar-0001dn-SF; Wed, 03 Jun 2020 02:57:29 +0000 Date: Tue, 2 Jun 2020 19:57:29 -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: <20200603025729.GO19604@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2d4634ce-9167-6ca6-fb91-f3c671fff672@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 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?