( 2/23/2022 3:51 PM, Huang, Ying S:
Baolin Wang <baolin.wang(a)linux.alibaba.com>
writes:
> ANBZ: #80
>
> Add page promotion throttle statistic, which can be used to check
> how many cold pages were trying to be prmoted to DRAM, and help
> to tuning the latency threhold.
Can this be calculated via the following formula?
numa_hint_faults - pgpromote_candidate
They are not same. Since numa_hint_faults will not contain file page
promotion statistics, while the should_numa_migrate_memory() will
check the file pages latency before promotion. Here some statistics I
observed:
pgpromote_candidate 3890100
pgpromote_cold_throttle 50342001
numa_hint_faults 35341839
Then how about adding a counter for unmapped pages
accesses we
checked?
And I think these kind of counters are for debugging only at least
for
now. Should we merge them formally?
Do you have an example about how to use this new counter or similar
one?