BACKPORT: mm/damon/core: introduce nr_accesses_bp
Add yet another representation of the access rate of each region, namely nr_accesses_bp. It is just same to the nr_accesses but represents the value in basis point (1 in 10,000), and updated at once in every aggregation interval. That is, moving_accesses_bp is just nr_accesses * 10000. This may seems useless at the moment. However, it will be useful for representing less than one nr_accesses value that will be needed to make moving sum-based nr_accesses. Link: https://lkml.kernel.org/r/20230915025251.72816-6-sj@kernel.org Signed-off-by:SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendanhiggins@google.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> (cherry picked from commit 80333828) [daiyang5: Resolved minor conflict in mm/damon/core.c ] Bug:407463672 Change-Id: Iaf9573e21475b1f3455fa602f86d316aa56b29ca Signed-off-by:
daiyang5 <daiyang5@xiaomi.com>
Loading
Please sign in to comment