[LTP] [PATCH] Unshare KSM pages before setting max_page_sharing
Petr Vorel
pvorel@suse.cz
Mon Dec 2 04:29:36 CET 2019
Hi Martin,
> Setting max_page_sharing is possible only when there are no KSM shared pages
> in the system. Otherwise writing to max_page_sharing SysFS file will fail
> with EBUSY.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Good catch!
BTW at least ksm01 will fail on VM host with running VMs,
but that's another story not related to this patch.
mem.c:251: FAIL: pages_shared is not 1 but 3629.
mem.c:251: FAIL: pages_sharing is not 98302 but 113789.
mem.c:251: FAIL: pages_volatile is not 0 but 12.
mem.c:251: FAIL: pages_unshared is not 1 but 48519.
Kind regards,
Petr
More information about the ltp
mailing list