mm/migrate: add vm counters to track reasons of page migration failure
page migration is a key function in mm core, used by memory compaction,
cma, large order page allocation and PMEM promotion/demotion. And it
could fail due to many reasons, like no enough memory in target node,
page refcount being abnormal etc.
Adding counters into /proc/vmstat will give the detailed info
about why and where it fails, which will help debugging and analyzing.
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Feng Tang <feng.tang@intel.com>
3 files changed