<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 29, 2020 at 2:55 PM Jan Stancek <<a href="mailto:jstancek@redhat.com">jstancek@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
----- Original Message -----<br>
> Timer tests often fail on sleep overrun when LTP is running inside a VM.<br>
> The main cause is usually that the VM doesn't get enough CPU time to wake up<br>
> the test process in time. Disable oversleep tests if tst_is_virt() detects<br>
> any hypervisor.<br>
<br>
> BTW, systemd-detect-virt can't detect the PowerPC LPAR hypervisor.<br>
<br>
Same with virt-what. We could (in separate patch) add check for<br>
'pseries_platform' (powerpc-utils) output:<br></blockquote><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small">+1 that makes sense to me.</span></div><div><span class="gmail_default" style="font-size:small"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
# pseries_platform<br>
PowerVM pSeries LPAR<br>
<br>
# pseries_platform<br>
PowerNV Host<br>
<br>
# pseries_platform<br>
Power KVM pSeries Guest<br>
<br>
>  <br>
> +     /*<br>
> +      * Running tests in VM may cause timing issues, disable upper bound<br>
> +      * checks if LTP_VM_ENV is set to non-zero.<br>
> +      */<br>
> +     virt_env = tst_is_virt(VIRT_ANY);<br>
<br>
The comment still mentions LTP_VM_ENV. Other than that, I don't have major<br>
objections. Maybe somebody would like to run strict checks on VMs too, but<br>
that's something we could add later with an env. variable.<br>
<br>
<br>
-- <br>
Mailing list info: <a href="https://lists.linux.it/listinfo/ltp" rel="noreferrer" target="_blank">https://lists.linux.it/listinfo/ltp</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>