[Devel] [RFC PATCH 0/1]
Dmitry Sepp
dmitry.sepp at virtuozzo.com
Fri Nov 14 15:14:58 MSK 2025
This patch is intended to introduce a basic test set to verify memory.cache
behavior. I've encountered several limitations while running the tests:
- Migration from one group to another is not supported. Page cache size
restrictions of the destination group are not applied.
- Page cache usage accounting seems to be rather lazy/imprecise. I introduced
some "tolerance" of 15% of the maximum allowed page cache size but even
after two seconds the reported current value lies outside of the boundaries
(usually way below), which causes the test to fail.
Dmitry Sepp (1):
selftests: cgroup: test page cache limiting feature
tools/testing/selftests/cgroup/Makefile | 4 +-
tools/testing/selftests/cgroup/test_cache.sh | 254 +++++++++++++++++++
tools/testing/selftests/cgroup/touch_pages.c | 97 +++++++
3 files changed, 354 insertions(+), 1 deletion(-)
create mode 100755 tools/testing/selftests/cgroup/test_cache.sh
create mode 100644 tools/testing/selftests/cgroup/touch_pages.c
--
2.51.0
More information about the Devel
mailing list