<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Andrea Arcangeli <<a href="mailto:aarcange@redhat.com" target="_blank">aarcange@redhat.com</a>> wrote:<br></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The KSM scan keeps running while checking the KSM status in sysfs, but<br>
during the KSM scan the the rmap_items in the stale unstable tree of<br>
the old pass are removed from it and are later reinserted in the new<br>
unstable tree of the current pass, leading to some page_volatile<br>
false positives.<br>
<br>
The fix is stop the KSM scan temporarily while the KSM status is being<br>
read from sysfs.<br>
<br>
For reference here's an instance of the fixed false positives:<br>
<br>
mem.c:255: TFAIL: pages_volatile is not 0 but 1.<br>
mem.c:255: TFAIL: pages_unshared is not 1 but 0.<br>
<br>
Reported-by: Eirik Fuller <<a href="mailto:efuller@redhat.com" target="_blank">efuller@redhat.com</a>><br>
Co-developed-by: Li Wang <<a href="mailto:liwan@redhat.com" target="_blank">liwan@redhat.com</a>><br>
Tested-by: Li Wang <<a href="mailto:liwan@redhat.com" target="_blank">liwan@redhat.com</a>><br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">This email address is valid but I prefer to use the my</div><div class="gmail_default" style="font-size:small">name liwang@ for better remembering :).</div><div class="gmail_default" style="font-size:small">(Anyway this doesn't matter, we can ignore this.)</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Tested-by: Eirik Fuller <<a href="mailto:efuller@redhat.com" target="_blank">efuller@redhat.com</a>><br>
Signed-off-by: Andrea Arcangeli <<a href="mailto:aarcange@redhat.com" target="_blank">aarcange@redhat.com</a>><br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Reviewed-by: Li Wang <<a href="mailto:liwang@redhat.com">liwang@redhat.com</a>></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">@Cryril, I vote for adding this patch in the new release.</div><div class="gmail_default" style="font-size:small">Plz take this into consideration, thanks.</div><div class="gmail_default" style="font-size:small"><br></div></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>