On Wed, Oct 30, 2024 at 6:29 PM Huang, Ying <ying.huang@xxxxxxxxx> wrote: > > 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. ok. let me add some examples in changelog: cat /sys/kernel/mm/transparent_hugepage/hugepages-64kB/stats/swpin 12809 cat /sys/kernel/mm/transparent_hugepage/hugepages-32kB/stats/swpin 4763 > > -- > Best Regards, > Huang, Ying