Re: [PATCH] mm: add per-order mTHP swpin counters

From: Huang, Ying
Date: Wed Oct 30 2024 - 01:29:44 EST


Barry Song <21cnbao@xxxxxxxxx> writes:

> On Wed, Oct 30, 2024 at 4:45 PM Huang, Ying <ying.huang@xxxxxxxxx> wrote:
>>
>> Barry Song <21cnbao@xxxxxxxxx> writes:
>>
>> > From: Barry Song <v-songbaohua@xxxxxxxx>
>> >
>> > This helps profile the sizes of folios being swapped in. Currently,
>> > only mTHP swap-out is being counted.
>>
>> Better to describe the user space interface in patch description?
>>
>
> Do you mean something as below?
>
> The new interface can be found at:
>
> /sys/kernel/mm/transparent_hugepage/hugepages-<size>/stats
> swapin

Yes. Some example output may be even better.

--
Best Regards,
Huang, Ying