Commit 5a8bcac5 authored by SeongJae Park's avatar SeongJae Park Committed by Suren Baghdasaryan
Browse files

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: default avatarSeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
(cherry picked from commit ace30fb2)

Bug:407463672

Change-Id: Ia05dbc5045413e5042d8a3309b7f8b796eb6ace3
Signed-off-by: default avatardaiyang5 <daiyang5@xiaomi.com>
parent a32703d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment