[LTP] [PATCH v6] cpuset_memory_spread: count only the test file's page cache

Cyril Hrubis chrubis@suse.cz
Mon Nov 2 13:00:22 CET 2026


Hi!
> Instead of measuring the noisy global counters, account for only DATAFILE's
> own page-cache pages: after reading the file, cpuset_mem_hog mmaps it,
> faults every page in and uses move_pages(2) (with a NULL node array, so
> nothing is migrated) to learn the NUMA node each of the file's pages
> resides on. Every page must be accounted -- a per-page error (negative
> status) fails the run -- so a partial measurement cannot pass. It writes
> the per-node totals (in KB) to a result file that the shell reads.

This is a step into right direction, however before that is done, the
old and messy tests should be rewritten into a single C test that uses
the LTP cgroup library, see include/tst_cgroup.h

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list