[LTP] [PATCH] Unshare KSM pages before setting max_page_sharing

Petr Vorel pvorel@suse.cz
Wed Dec 4 11:46:55 CET 2019


Hi,

> > 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.

> I'm aware of other KSM tests failing but the failures are rare and quite
> random so they'll be tricky to debug. The snippet you've sent looks like
> interference from another process running on the same VM but the
> failures I see in OpenQA look like some sort of race condition in kernel
> itself.
Yep, my failures are for sure different. I run the test on my workstation
(KVM host), after start of about 15 VMs. Before test was ok.
I haven't tested, but it should be ok when running on KVM guests.

Kind regards,
Petr


More information about the ltp mailing list