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 _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
