Skip to content

RFC mm/damon: fix nr_snapshots semantics and max_nr_snapshots check coverage

Liew Rui Yan damon linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/damon: fix nr_snapshots counting using tried_applied flaginclude/linux/damon.h mm/damon/core.c+6 -81 reply
2/2mm/damon: skip deactivated schemes in watermark checks and add fallback sleepmm/damon/core.c+22 -85 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] mm/damon: fix nr_snapshots semantics and max_nr_snapshots check coverage

Both patches address the DAMOS nr_snapshots/max_nr_snapshots deactivation mechanism.

- Patch 1: fixes the nr_snapshots counting semantics.
- Patch 2: unifies deactivation checks to prevent busy-loop.

Note: Patch 1 should be applied before Patch 2, as damos_is_deactivated() relies on correct nr_snapshots counting.

Liew Rui Yan (2):
mm/damon: fix nr_snapshots counting using tried_applied flag mm/damon: skip deactivated schemes in watermark checks and add
fallback sleep

 include/linux/damon.h |  2 ++
 mm/damon/core.c       | 42 ++++++++++++++++++++++++++----------------
 2 files changed, 28 insertions(+), 16 deletions(-)
Signature · 1 line
2.55.0