Skip to content

RFC Damos filter cleanup code and implement workingset

Huan Yang damon linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/damos/filter: Add workingset page filterinclude/linux/damon.h mm/damon/core-test.h mm/damon/paddr.c +1 more+58 -170 replies
2/2mm/damos/filter: Damos filter cleanupinclude/linux/damon.h mm/damon/Makefile mm/damon/core.c +5 more+280 -1670 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/2] Damos filter cleanup code and implement workingset

Now damos support filter contains two type.
The first is scheme filter which will invoke each scheme apply, second is scheme action filter, which will filter out unwanted action.

But this implement is scattered in different implementations and hard to reuse or extend.

This patchset clean up those filter code, move into filter.c and add header to expose filter func.(patch 2) And add a new filter "workingset" to protect workingset page.

Do we need this and cleanup it?

Huan Yang (2):
mm/damos/filter: Add workingset page filter
mm/damos/filter: Damos filter cleanup

 include/linux/damon.h    |  62 +-----------------
 mm/damon/Makefile        |   2 +-
 mm/damon/core-test.h     |   7 ++
 mm/damon/core.c          |  93 ++++-----------------------
 mm/damon/filter.c        | 135 +++++++++++++++++++++++++++++++++++++++
 mm/damon/filter.h        | 119 ++++++++++++++++++++++++++++++++++
 mm/damon/paddr.c         |  29 +++------
 mm/damon/reclaim.c       |  48 +++++++++++---
 mm/damon/sysfs-schemes.c |   1 +
 9 files changed, 325 insertions(+), 171 deletions(-)
 create mode 100644 mm/damon/filter.c
 create mode 100644 mm/damon/filter.h
Signature · 1 line
2.34.1