Skip to content

selftests/damon: test kdamond refresh_ms

SJ Park damon linux-kselftest linux-mm lkml 1 version Applied

Status from this message: [merged mm-stable] selftests-damon-sysfs_refresh-test-kdamond-refresh_ms.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 0 repliesApplied 2/2

Changes in v2 from the cover letter

- v1: https://lore.kernel.org/[email protected]
- Add R-b: from SJ.
- Rebase to latest mm-new.

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2selftests/damon/_damon_sysfs: support kdamond refresh_mstools/testing/selftests/damon/_damon_sysfs.py+8 -10 repliesApplied
2/2selftests/damon/sysfs_refresh: test kdamond refresh_mstools/testing/selftests/damon/Makefile tools/testing/selftests/damon/sysfs_refresh.py+76 -00 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSJ Park
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] selftests/damon: test kdamond refresh_ms

The kdamond 'refresh_ms' sysfs file makes DAMON periodically update its read-only sysfs files (DAMOS stats, tuned monitoring intervals and the kdamond pid) on its own, so users don't have to write update keywords such as 'update_schemes_stats' to the 'state' file. It has no selftest coverage.

The first patch adds refresh_ms support to the _damon_sysfs.py test control module. The second adds a test that sets refresh_ms and confirms a scheme's stats are updated under sysfs without an explicit update request; the test skips on kernels that predate the refresh_ms file.

Tested on current mainline under a DAMON-enabled kernel: the new test passes and the existing DAMON selftests show no new failures.

Changes from v1
- v1: https://lore.kernel.org/[email protected]
- Add R-b: from SJ.
- Rebase to latest mm-new.

Ruslan Valiyev (2):
selftests/damon/_damon_sysfs: support kdamond refresh_ms selftests/damon/sysfs_refresh: test kdamond refresh_ms

 tools/testing/selftests/damon/Makefile        |  1 +
 tools/testing/selftests/damon/_damon_sysfs.py |  9 ++-
 .../testing/selftests/damon/sysfs_refresh.py  | 75 +++++++++++++++++++
 3 files changed, 84 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/damon/sysfs_refresh.py

base-commit: f46247bcce72b9e62868c347711c772657b00ce6

Signature · 1 line
2.47.3