[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ec9d8eb8-a390-40ad-94a1-e65863cb9e76@linux.alibaba.com>
Date: Wed, 24 Apr 2024 11:49:08 +0800
From: Baolin Wang <baolin.wang@...ux.alibaba.com>
To: Lance Yang <ioworker0@...il.com>
Cc: 21cnbao@...il.com, akpm@...ux-foundation.org, david@...hat.com,
hughd@...gle.com, linux-kernel@...r.kernel.org, linux-mm@...ck.org,
ryan.roberts@....com, shy828301@...il.com, wangkefeng.wang@...wei.com,
willy@...radead.org, ying.huang@...el.com, ziy@...dia.com
Subject: Re: [RFC PATCH 5/5] mm: shmem: add anonymous share mTHP counters
On 2024/4/23 19:22, Lance Yang wrote:
> On Tue, Apr 23, 2024 at 5:46 PM Lance Yang <ioworker0@...il.com> wrote:
>>
>> On 2024/4/23 09:17, Barry Song wrote:
>> [...]
>>>> diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h
>>>> index 26b6fa98d8ac..67b9c1acad31 100644
>>>> --- a/include/linux/huge_mm.h
>>>> +++ b/include/linux/huge_mm.h
>>>> @@ -270,6 +270,8 @@ enum mthp_stat_item {
>>>> MTHP_STAT_ANON_SWPOUT,
>>>> MTHP_STAT_ANON_SWPOUT_FALLBACK,
>>>> MTHP_STAT_ANON_SWPIN_REFAULT,
>>>> + MTHP_STAT_SHMEM_ANON_ALLOC,
>>>> + MTHP_STAT_SHMEM_ANON_ALLOC_FALLBACK,
>
> Seems like you forgot to add the FILE_FALLBACK_CHARGE counter
> in this patch :)
>
> IIUC, you've excluded the THP_FILE_FALLBACK_CHARGE counter
> for PTE-mapped mTHP that size < PMD in patch3.
Yes, will add in next version.
Powered by blists - more mailing lists