On Thu, Apr 1, 2021 at 11:35 AM Dave Hansen <dave.han...@linux.intel.com> wrote:
>
>
> From: Yang Shi <yang....@linux.alibaba.com>
>
> Account the number of demoted pages into reclaim_state->nr_demoted.
>
> 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()
> ]
>
> Signed-off-by: Yang Shi <yang....@linux.alibaba.com>
> Signed-off-by: Dave Hansen <dave.han...@linux.intel.com>
> Reviewed-by: Yang Shi <shy828...@gmail.com>
> Cc: Wei Xu <weix...@google.com>
> Cc: David Rientjes <rient...@google.com>
> Cc: Huang Ying <ying.hu...@intel.com>
> Cc: Dan Williams <dan.j.willi...@intel.com>
> Cc: David Hildenbrand <da...@redhat.com>
> Cc: osalvador <osalva...@suse.de>

These counters can be more useful if they are per-node.

Reviewed-by: Wei Xu <weix...@google.com>

Reply via email to