Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp224552lqp; Wed, 22 May 2024 02:39:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOPkQa46dSBoqUGhMo6jE9g7XQu+Mh7aJOoHNGQ34+16dpkyOVKZ5AlAjsVTuwgZJshCyqBIAJ/UrqX4ANANqzqc+UoUElRsxgrghbUA== X-Google-Smtp-Source: AGHT+IE9YMx2A8EWB6z/wDVltkYmrSrjAzxnuzBF8qVCMbbhl7Wk5xTd5XGNiHRrtnPmBW3i6z/7 X-Received: by 2002:a05:6359:678a:b0:186:1128:bca7 with SMTP id e5c5f4694b2df-19791a5efd1mr117800555d.6.1716370778790; Wed, 22 May 2024 02:39:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716370778; cv=pass; d=google.com; s=arc-20160816; b=ypJ/+DtBAaWYxo914Yztkap89evqf9Q2s5BtCTKVSB43adbC6yKUxHpdDA7PdlYNT4 J6fVoPawe65Q6CVh1MekEUUX5lnsPb1xsbJS32LW99hWJBPlc7tYjVI6FjU8WJPeU09v hgSxb8demhOVaSqSr7XcdWT3QPNvFld6BpBmvdpZHSBu5G52s/PE+vG1IY8JPjdEu9di F8/syU/ndayvrIklKLwXIpV8f5MlPRq2QRPWFOTqcA3qexqnqnHK3Ys9ePFh3oY+CwNr DSgkLOngjQySzvEBENyIkYu7wnGe78GbWSK4oqF7cr1fj+kJUcGGClP307Ng7xPGkm5R nI6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=BLQEugnL1kRYNRU+br9+o3u5TxKkPi3pJuyhAveE0vw=; fh=N6K4hK8+va/DkLYAKgrObBZc4nsu4X8j/n91DQBD2PY=; b=YIDI6+baa1MuytHtmgAskTGTnGRqcgi/QCuKUofMSw5bC2WFe0SocZdc5Jw685oIrA VoVLavFB060s3RHNF97g/tbXKXNt1lE59u/imOc6qb+pc6S3VPlSCq0ItslL/BdfU+Jf vOnxPDSlkEHt/DdE20D5ZuquvjsdYnCgwy3IvhChvq/YER0jHPpXzQSovx1rwCJkF4x+ QSsZa7yf4C0A63BXKv7j8DsJc1TLi68vHa1W+OuRoKL9rqBevRoTjx/4jeR89N0DM7iT 8EoaM893QpJ3WplDm3Vl6Sc++WfSgCNLYamYVAwPB/U164R9ylYwui1sgTOZ71H8COSJ XMIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Lq4J5ZNH; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-185998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-673062a64f1si2454401a12.166.2024.05.22.02.39.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 02:39:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=Lq4J5ZNH; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-185998-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185998-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BD16BB21FE7 for ; Wed, 22 May 2024 09:39:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71E4D811F8; Wed, 22 May 2024 09:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="Lq4J5ZNH" Received: from out199-7.us.a.mail.aliyun.com (out199-7.us.a.mail.aliyun.com [47.90.199.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9123F8175B for ; Wed, 22 May 2024 09:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.199.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716370748; cv=none; b=IP/cYIqEMWb32VrghQeHJb1NJEiQFQttBsL8Vqnw6WH5+dML9Mc8LQKaajU0n5KubJbbGa63XWXJ5MhMRtFYJEciW9kprlQ4DDcZLozCS4usbvYJRk5C+ekXSMpPdGFo3u3vMAU6BL3rPrhGOUBa1tHn9perqabgVeMTEFYcxgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716370748; c=relaxed/simple; bh=d0id1LwgFHCw2J6KgH62I0Tt8+BJF4ZBNowvWxLwOaE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mWk9Xt7hdRErXvCOq94vHrwN9Gwcae2EWe8h0Uikf0v0Yego6xv5OB23HdKs2LccUBbSBNjl2cFYcNEIfFbGH5racDmuyvaX4lkreuRny2EV5hCPmEKo3RnYD0yLrZd6JmTK6AdVQ/70iVGCKi1Eh7Fp5QwU3eWdkm9mswhDkpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=Lq4J5ZNH; arc=none smtp.client-ip=47.90.199.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1716370728; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=BLQEugnL1kRYNRU+br9+o3u5TxKkPi3pJuyhAveE0vw=; b=Lq4J5ZNHwef65Q2/EN/mE5xJy12kxXhFO3ZNXiMcEnK6xk1bOw81t3teX3Q6WBarmamnXroW+egyQWbWBKOmYUEOX+WJsgGSpZIuJYCZS5DNwnkFbR5xCYlRL7XpA5OETJV2lg0HsNqJENhmyaq1rmGBg10MEgjYW5X8oRIvy8w= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R311e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067113;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0W7-ufZc_1716370726; Received: from 30.97.56.54(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0W7-ufZc_1716370726) by smtp.aliyun-inc.com; Wed, 22 May 2024 17:38:47 +0800 Message-ID: <51ba1fc1-fd77-4601-8d27-459162fd008c@linux.alibaba.com> Date: Wed, 22 May 2024 17:38:46 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mm: drop the 'anon_' prefix for swap-out mTHP counters To: David Hildenbrand , akpm@linux-foundation.org Cc: willy@infradead.org, ying.huang@intel.com, 21cnbao@gmail.com, ryan.roberts@arm.com, ziy@nvidia.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <0e2a6f232e7579a2e4407ecf075531980d97f286.1716367360.git.baolin.wang@linux.alibaba.com> <22ac01a3-ddbb-4114-88cd-ad1a31982dad@redhat.com> From: Baolin Wang In-Reply-To: <22ac01a3-ddbb-4114-88cd-ad1a31982dad@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024/5/22 16:58, David Hildenbrand wrote: > On 22.05.24 10:51, Baolin Wang wrote: >> The mTHP swap related counters: 'anon_swpout' and >> 'anon_swpout_fallback' are >> confusing with an 'anon_' prefix, since the shmem can swap out >> non-anonymous >> pages. So drop the 'anon_' prefix to keep consistent with the old swap >> counter >> names. >> >> Suggested-by: "Huang, Ying" >> Signed-off-by: Baolin Wang >> --- > > Am I daydreaming or did we add the anon_ for a reason and discussed the > interaction with shmem? At least I remember some discussion around that. Do you mean the shmem mTHP allocation counters in previous discussion[1]? But for 'anon_swpout' and 'anon_swpout_fallback', I can not find previous discussions that provided a reason for adding the ‘anon_’ prefix. Barry, any comments? Thanks. [1] https://lore.kernel.org/all/05d0096e4ec3e572d1d52d33a31a661321ac1551.1713755580.git.baolin.wang@linux.alibaba.com/