On 21 Jul 2021, at 2:39, Huang Ying wrote: > From: Yang Shi <yang.shi@xxxxxxxxxxxxxxxxx> > > Account the number of demoted pages. > > Add pgdemote_kswapd and pgdemote_direct VM counters showed in > /proc/vmstat. > > [ daveh: > - __count_vm_events() a bit, and made them look at the THP > size directly rather than getting data from migrate_pages() > ] > > Link: https://lkml.kernel.org/r/20210715055145.195411-6-ying.huang@xxxxxxxxx > Signed-off-by: Yang Shi <yang.shi@xxxxxxxxxxxxxxxxx> > Signed-off-by: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> > Signed-off-by: "Huang, Ying" <ying.huang@xxxxxxxxx> > Reviewed-by: Yang Shi <shy828301@xxxxxxxxx> > Reviewed-by: Wei Xu <weixugc@xxxxxxxxxx> > Cc: Michal Hocko <mhocko@xxxxxxxx> > Cc: Zi Yan <ziy@xxxxxxxxxx> > Cc: David Rientjes <rientjes@xxxxxxxxxx> > Cc: Dan Williams <dan.j.williams@xxxxxxxxx> > Cc: David Hildenbrand <david@xxxxxxxxxx> > Cc: Oscar Salvador <osalvador@xxxxxxx> > Cc: Greg Thelen <gthelen@xxxxxxxxxx> > Cc: Keith Busch <kbusch@xxxxxxxxxx> > Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> > --- > include/linux/vm_event_item.h | 2 ++ > mm/vmscan.c | 5 +++++ > mm/vmstat.c | 2 ++ > 3 files changed, 9 insertions(+) > LGTM. Reviewed-by: Zi Yan <ziy@xxxxxxxxxx> — Best Regards, Yan, Zi
Attachment:
signature.asc
Description: OpenPGP digital signature