Skip to content

mm/damon/sysfs-schemes: implement DAMOS tried total bytes file

SeongJae Park damon linux-doc linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] docs-admin-guide-mm-damon-usage-update-for-tried_regions-total_bytes.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5mm/damon/sysfs-schemes: implement DAMOS tried total bytes filemm/damon/sysfs-schemes.c+17 -00 repliesApplied
2/5mm/damon/sysfs: implement a command for updating only schemes tried total bytesmm/damon/sysfs-common.h mm/damon/sysfs-schemes.c mm/damon/sysfs.c+27 -80 repliesApplied
3/5selftests/damon/sysfs: test tried_regions/total_bytes filetools/testing/selftests/damon/sysfs.sh+1 -00 repliesApplied
4/5Docs/ABI/damon: update for tried_regions/total_bytesDocumentation/ABI/testing/sysfs-kernel-mm-damon+11 -20 repliesApplied
5/5Docs/admin-guide/mm/damon/usage: update for tried_regions/total_bytesDocumentation/admin-guide/mm/damon/usage.rst+27 -150 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] mm/damon/sysfs-schemes: implement DAMOS tried total bytes file

Changes from RFC[1]
- Rebase on latest mm-unstable
- Add base-commit

----

The tried_regions directory of DAMON sysfs interface is useful for retrieving monitoring results snapshot or DAMOS debugging. However, for common use case that need to monitor only the total size of the scheme tried regions (e.g., monitoring working set size), the kernel overhead for directory construction and user overhead for reading the content could be high if the number of monitoring region is not small. This patchset implements DAMON sysfs files for efficient support of the use case.

The first patch implements the sysfs file to reduce the user space overhead, and the second patch implements a command for reducing the kernel space overhead.

The third patch adds a selftest for the new file, and following two patches update documents.

[1] https://lore.kernel.org/damon/[email protected]/

SeongJae Park (5):
mm/damon/sysfs-schemes: implement DAMOS tried total bytes file mm/damon/sysfs: implement a command for updating only schemes tried
total bytes
selftests/damon/sysfs: test tried_regions/total_bytes file Docs/ABI/damon: update for tried_regions/total_bytes Docs/admin-guide/mm/damon/usage: update for tried_regions/total_bytes

 .../ABI/testing/sysfs-kernel-mm-damon         | 13 +++++-
 Documentation/admin-guide/mm/damon/usage.rst  | 42 ++++++++++++-------
 mm/damon/sysfs-common.h                       |  2 +-
 mm/damon/sysfs-schemes.c                      | 24 ++++++++++-
 mm/damon/sysfs.c                              | 26 +++++++++---
 tools/testing/selftests/damon/sysfs.sh        |  1 +
 6 files changed, 83 insertions(+), 25 deletions(-)

base-commit: a57d8094e1946e9dbdba0dddf0e10f9f4dceae0d

Signature · 1 line
2.25.1