Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp618369ybg; Wed, 3 Jun 2020 09:13:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyipKLhtZ6T3aWDJBbiwTWdq+skjaYlVsZlIumfonK1LrSkcoSW7HAZq0simcu/9+tQBgGp X-Received: by 2002:a17:906:86c5:: with SMTP id j5mr97744ejy.88.1591200813596; Wed, 03 Jun 2020 09:13:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591200813; cv=none; d=google.com; s=arc-20160816; b=sbTPDHeKdYtjlXfW35223/weriPYiowRtbgM9DivM2IP/FKwBVFDd4J00wglNtiIRP W+NWFR04pQ8KJtXTQw7s58KbKokA8CHLQ8hPI9iKADjnNB0k5v1nF8cjJcoftHwJXE6y p3GlensE0U9ktz7Sb7MaD8FDpqk2hOH6yDGTTe/JcQE90rZYXf3cgeq1Spp4V5FXGP15 UBa41dq0aezGz0KXi5qKVbG+NZuYKGTKPMWZvahcfQDDbXFdDLdM43ksKgNBvE4DgpyM Cl8B09VJHvb0l3qH12eDzjuJApl7/dj1GavzfVUfE7TlT7G3v7JkuFv8ryU0bc6I/qtb g8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7IsA5VW1Zg1DgEuhycSVbfO4BwikUQw+wlbXCIQb/7Y=; b=GvA9+Vu57fcXoAmtFjp9Xz5OyYKPEytJbY6Iwf1MC6ZuyWkhrzk02LrCZmQ6ep8XJl b6zgspUdEr8zpHY+auCKSnXGZLWI4hHw5HFMl/+jF2oIuJRCXZ321r+Ws3ngdnFD7j7c vXtf/7ETwazbAG8E+gO1VwEST7C5CvBawWflhJc82RXgpF2LOG53JBY5khMS52/uLbMd P4iClCLEDLjHuViET0B66tquGuGFu5uBLemd/FzTGG+5MYhgEdeQCzDXYL1/+lyugO43 6AF+CEkEzXtclDR3nXeRNIvpiERQ47QcHziQTj4tDJhjKe808Pds0vg8VEQWPPoUllp/ iucw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=CkSq+MeP; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si12156ejk.174.2020.06.03.09.13.10; Wed, 03 Jun 2020 09:13:33 -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=@oracle.com header.s=corp-2020-01-29 header.b=CkSq+MeP; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725944AbgFCQKT (ORCPT + 99 others); Wed, 3 Jun 2020 12:10:19 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:44180 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbgFCQKT (ORCPT ); Wed, 3 Jun 2020 12:10:19 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 053G2ZaW174548; Wed, 3 Jun 2020 16:10:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=7IsA5VW1Zg1DgEuhycSVbfO4BwikUQw+wlbXCIQb/7Y=; b=CkSq+MePI0NOwIfe34RP6fn/SRURzkGbFrYQcpsLHhQKw21ivXkE0CEk3sDOkbiJP9Zc 7KUALeVsIcnppHdE6cHfjt6L34fjrF86cABJWh5k2X1dFU44Bq+f+RnGjDnVn6RJvL7j CtlImTVgphHSm5fuiVfX4ZlZmiKnxaCREW4YhiTqP9j5tLi47iTlBtp7oxvSKgOx7soT G7ER8ycztdchPehc8Gk3pclN4XSUFHr0oJYcZu2et/1PYuP5Ov9Hxc7rmhf12+D5bSqt iLudbgrOv/YqbZlmGhTK6YVuTzNrrLj38vwKrJnf8qBAlYpLT8kMPOBybDpLnXcmHrCJ Fg== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 31ef1ng177-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 03 Jun 2020 16:10:07 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 053G7S2M078237; Wed, 3 Jun 2020 16:08:06 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 31c12r3yh5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Jun 2020 16:08:05 +0000 Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 053G83k9027868; Wed, 3 Jun 2020 16:08:03 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 03 Jun 2020 09:08:03 -0700 Date: Wed, 3 Jun 2020 12:08:28 -0400 From: Daniel Jordan To: Anshuman Khandual Cc: Daniel Jordan , John Hubbard , linux-mm@kvack.org, hughd@google.com, Naoya Horiguchi , Zi Yan , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/vmstat: Add events for PMD based THP migration without split Message-ID: <20200603160828.2sfuyjpyyc2bpuan@ca-dmjordan1.us.oracle.com> References: <1590118444-21601-1-git-send-email-anshuman.khandual@arm.com> <20200601165736.qw5kwwknxltk7bv6@ca-dmjordan1.us.oracle.com> <0a936ec7-f44f-1d72-915f-f5758d25fd72@nvidia.com> <1e71d815-5359-3ebe-5d2b-5a3b54b63b51@arm.com> <274be3bf-2206-5e98-8114-1d91fac472c9@nvidia.com> <20200602145208.qucum52lwslhiqff@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9641 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006030128 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9641 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 clxscore=1015 malwarescore=0 priorityscore=1501 impostorscore=0 spamscore=0 suspectscore=0 bulkscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 mlxscore=0 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006030127 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:06:31AM +0530, Anshuman Khandual wrote: > Does this look okay and sufficient ? > > --- a/Documentation/vm/page_migration.rst > +++ b/Documentation/vm/page_migration.rst > @@ -253,5 +253,20 @@ which are function pointers of struct address_space_operations. > PG_isolated is alias with PG_reclaim flag so driver shouldn't use the flag > for own purpose. > > +Quantifying Migration > +===================== > +Following events can be used to quantify page migration. > + > +- PGMIGRATE_SUCCESS > +- PGMIGRATE_FAIL > +- THP_MIGRATION_SUCCESS > +- THP_MIGRATION_FAILURE > + > +THP_MIGRATION_FAILURE in particular represents an event when a THP could not be > +migrated as a single entity following an allocation failure and ended up getting > +split into constituent normal pages before being retried. This event, along with > +PGMIGRATE_SUCCESS and PGMIGRATE_FAIL will help in quantifying and analyzing THP > +migration events including both success and failure cases. Looks great! > Sure, will update the commit message accordingly. Thanks. Hopefully these will help someone in the future.