Re: [PATCH -mm 10/21] mm, THP, swap: Support to count THP swapin and its fallback

From: Huang\, Ying
Date: Tue Apr 17 2018 - 20:39:23 EST


Randy Dunlap <rdunlap@xxxxxxxxxxxxx> writes:

> On 04/16/18 19:02, Huang, Ying wrote:
>> From: Huang Ying <ying.huang@xxxxxxxxx>
>>
>> 2 new /proc/vmstat fields are added, "thp_swapin" and
>> "thp_swapin_fallback" to count swapin a THP from swap device as a
>> whole and fallback to normal page swapin.
>>
>> Signed-off-by: "Huang, Ying" <ying.huang@xxxxxxxxx>
>> Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx>
>> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx>
>> Cc: Michal Hocko <mhocko@xxxxxxxx>
>> Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
>> Cc: Shaohua Li <shli@xxxxxxxxxx>
>> Cc: Hugh Dickins <hughd@xxxxxxxxxx>
>> Cc: Minchan Kim <minchan@xxxxxxxxxx>
>> Cc: Rik van Riel <riel@xxxxxxxxxx>
>> Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>
>> Cc: Zi Yan <zi.yan@xxxxxxxxxxxxxx>
>> ---
>> include/linux/vm_event_item.h | 2 ++
>> mm/huge_memory.c | 4 +++-
>> mm/page_io.c | 15 ++++++++++++---
>> mm/vmstat.c | 2 ++
>> 4 files changed, 19 insertions(+), 4 deletions(-)
>>
>
> Hi,
> Please also update Documentation/vm/transhuge.rst.

Thanks for reminding! Will do that.

Best Regards,
Huang, Ying