Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp492556lqd; Wed, 24 Apr 2024 08:20:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV94fq5iLVhgfzvQa83qRW2Mt4asTjIOPAdcvB9KRocSHPzQQTOtcRZ1zQCYd9H+5wC1xNZsKUkve2MjfPVPMjGamg3EPQD6ebKxbSPGA== X-Google-Smtp-Source: AGHT+IGjGWlFVzGcI+gbT7MlPDWeP99p6jVAm39cwslZ2lpescQuqL03J+ijROnBvrfZ63nnwz21 X-Received: by 2002:a05:6102:1257:b0:47b:d7fc:7 with SMTP id p23-20020a056102125700b0047bd7fc0007mr2496287vsg.25.1713972031665; Wed, 24 Apr 2024 08:20:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713972031; cv=pass; d=google.com; s=arc-20160816; b=QWFFDFtJqp11HL4b2ik7fLMAIfcgO11KKMWDMw4Tq79I0Z+QcsURC0298GyiRmlBtz uM/FvPuB/Eyif/z4VJu3V6sFqwRl7GQjRMXse6pILr7B6G0x02KaPJk2lYxe+DxQftvZ I6pluMWq6I3iEdupWBa29ToxEmHYAxg+vxOBSVScmdXNaYzrEE8f28lGvOOFP/8szkWg zCBki9bVcR3D8ybWnWOml0GjJFXvRuRtLgcKqvSyXdsOiRL+no1YYKX1oWomcPUP9Tdi gMvGRFmBrBnDc/QWlgWBlIRgujyF4NEbrZxCDLtsVBCvj/cm9DPjkB1CIXTrQBSdc4Mg SYNA== 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 :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=0DXKz8U7qzIUinpq3w8p/KZ/1/h+0ICPKDWkhHfBBzM=; fh=3HmV1loo5HEqEWnB7/ilB7qndtQg1taz5qT1ZEnep34=; b=HJaQIBGGpXKimxKdJGEz6MqCtZ5Z/t4AGIfGm3Jwu12Fn2NqB+coIghDacgCeK7RyA lx+3Yk3snX/iR0ZX8Yj2VH5mJQbamfxbpdNkv5IF7CUtMUcN+hZKfyxtiE6S8BKfhLpG rvblHo+XE7f/Ajvbf5m1KkvO/t4IUam3nl4UFiJ0m5GLMvsIr2y9Izj9a2K2/Pk+Es0O 4+Z0rIhqtlAbQbHoc9KCyDFLcaHzSnLd7WmX7cGCt14wHRaKqxwwcnUVVWL2nW96oOKc TFpwxLab4p4sTyONsLYuo2nfCXgdkxgbI5mmmU1G9HZ8+KzeGeU7s/Mt6kbKFWF1XYt+ YBkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-157180-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r9-20020ab058c9000000b007ed23349cbesi1412682uac.143.2024.04.24.08.20.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 08:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157180-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-157180-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 604521C2475B for ; Wed, 24 Apr 2024 15:20:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6A5415FA6B; Wed, 24 Apr 2024 15:20:21 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAB7115ECC1 for ; Wed, 24 Apr 2024 15:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972021; cv=none; b=RU2vxg17RRHFoEyUJR3FtzcWGX9uVSdlAjFAV1VmfoObaqzQs4IJaCkxWzheuXTBB2AfoijDYhv4ApuMXId7/aFqNUAiMw/3NTUgc5IDntRW16j5o+CJrtch2hcBML+oB0gyWngYUlW0BBofykMJguge/gMsPIqqPtVDFLODo30= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713972021; c=relaxed/simple; bh=nwgezUI4IzzCaVHCCJcYkE9hKNW1UZyxciId9pUKDkM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d3apZV9KwpkiYcYlnKHU3dOUI4U1QXtUCSeXr7oMn/LoaNdkFEQknfwCkHq49Z2T/2Jdu/cG8k+zPqfWRkbezc3fmnbCbTWpJYmgXpXdzqoJUY7bZHs/ud2eJWkx/wmAYDQIr0x7nNQTYa6g+eVk82AqpRlY0UlsbYM1vlOFGWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 8E0741063; Wed, 24 Apr 2024 08:20:45 -0700 (PDT) Received: from [10.1.25.156] (XHFQ2J9959.cambridge.arm.com [10.1.25.156]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E21C53F73F; Wed, 24 Apr 2024 08:20:16 -0700 (PDT) Message-ID: <11455268-d522-4b3a-8961-892e42cc50f0@arm.com> Date: Wed, 24 Apr 2024 16:20:15 +0100 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 0/2] mm: introduce per-order mTHP split counters Content-Language: en-GB To: David Hildenbrand , Lance Yang , akpm@linux-foundation.org Cc: 21cnbao@gmail.com, baolin.wang@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20240424135148.30422-1-ioworker0@gmail.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 24/04/2024 16:00, David Hildenbrand wrote: > On 24.04.24 15:51, Lance Yang wrote: >> Hi all, >> >> At present, the split counters in THP statistics no longer include >> PTE-mapped mTHP. Therefore, we want to introduce per-order mTHP split >> counters to monitor the frequency of mTHP splits. This will assist >> developers in better analyzing and optimizing system performance. >> >> /sys/kernel/mm/transparent_hugepage/hugepages-/stats >>          split_page >>          split_page_failed >>          deferred_split_page >> >> Thanks, >> Lance >> --- >> >> Lance Yang (2): >>   mm: add per-order mTHP split counters >>   mm: add docs for per-order mTHP split counters >> >>   Documentation/admin-guide/mm/transhuge.rst | 16 ---------------- > > We really have to start documenting these, and what the sementics are. I think the diffstat is backwards; the series definitely adds more lines than it removes. And patch 2 is adding 16 lines of docs, not removing them. How are you generating this? `git format-patch` should do it correctly for you. > > E.g., is split_page_failed contained in split_page? Is deferred_split_page > contained in split_page? > > But also: just don't call it "split_page". Drop the "_page". > > split > split_failed > split_deferred I guess we are back in "should we be consistent with the existing vmstats" territory, which uses split_page/split_page_failed/deferred_split_page But here, I agree that dropping _page is nicer. > > ? >