[Devel] [PATCH hci-8.1 2/3] selftests: cgroup: mark the pages cold before numa_migrate starts

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Fri Nov 13 07:27:55 MSK 2026


> The inactive variants of test_numa_migrate report their pages populated
> before they madvise(MADV_COLD) them. The parent starts the migration as
> soon as 85% of the pages are inactive on the source node, while the
> rest are still being deactivated. memory.numa_migrate takes the size of
> each LRU list as its scan budget when it gets to the list, so the pages
> that become inactive later are not scanned, and up to the 15% that
> verify_stats() tolerates can stay behind. The slower a kernel
> deactivates the pages, the more often the test fails, which made
> inactive_disk_file fail often on coverage kernels.
> 
> Call madvise(MADV_COLD) before reporting the pages populated.
> 
> Fixes: 3842964f4497 ("selftests: cgroup: test numa migration of lruvecs")
> https://virtuozzo.atlassian.net/browse/VSTOR-154520
> Feature: fix selftests
> 
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261113042331.517488-1-eva.kurchatova@virtuozzo.com?part=2




More information about the Devel mailing list