DAMON development mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/2] selftests/damon: test kdamond refresh_ms
@ 2026-06-29 14:49 SJ Park
  2026-06-29 14:49 ` [PATCH v2 1/2] selftests/damon/_damon_sysfs: support " SJ Park
  2026-06-29 14:49 ` [PATCH v2 2/2] selftests/damon/sysfs_refresh: test " SJ Park
  0 siblings, 2 replies; 3+ messages in thread
From: SJ Park @ 2026-06-29 14:49 UTC (permalink / raw)
  To: Andrew Morton
  Cc: SJ Park, Shuah Khan, damon, linux-kernel, linux-kselftest,
	linux-mm

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/20260602131217.2210912-1-linuxoid@gmail.com
- 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
-- 
2.47.3

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-29 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29 14:49 [PATCH v2 0/2] selftests/damon: test kdamond refresh_ms SJ Park
2026-06-29 14:49 ` [PATCH v2 1/2] selftests/damon/_damon_sysfs: support " SJ Park
2026-06-29 14:49 ` [PATCH v2 2/2] selftests/damon/sysfs_refresh: test " SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox