UPSTREAM: mm/damon/core: use pseudo-moving sum for nr_accesses_bp
Let nr_accesses_bp be calculated as a pseudo-moving sum that updated for every sampling interval, using damon_moving_sum(). This is assumed to be useful for cases that the aggregation interval is set quite huge, but the monivoting results need to be collected earlier than next aggregation interval is passed. Link: https://lkml.kernel.org/r/20230915025251.72816-7-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 ace30fb2) Bug:407463672 Change-Id: Ia05dbc5045413e5042d8a3309b7f8b796eb6ace3 Signed-off-by:
daiyang5 <daiyang5@xiaomi.com>
Loading
Please sign in to comment