Re: [kvm-unit-tests PATCHv2] unittests.cfg: Increase timeout for apic test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 15, 2020 at 11:59 PM Vitaly Kuznetsov <vkuznets@xxxxxxxxxx> wrote:
>
> Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx> writes:
>
> > We found that on Azure cloud hyperv instance Standard_D48_v3, it will
> > take about 45 seconds to run this apic test.
> >
> > It takes even longer (about 150 seconds) to run inside a KVM instance
> > VM.Standard2.1 on Oracle cloud.
> >
> > Bump the timeout threshold to give it a chance to finish.
> >
> > Signed-off-by: Po-Hsu Lin <po-hsu.lin@xxxxxxxxxxxxx>
> > ---
> >  x86/unittests.cfg | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/x86/unittests.cfg b/x86/unittests.cfg
> > index 872d679..c72a659 100644
> > --- a/x86/unittests.cfg
> > +++ b/x86/unittests.cfg
> > @@ -41,7 +41,7 @@ file = apic.flat
> >  smp = 2
> >  extra_params = -cpu qemu64,+x2apic,+tsc-deadline
> >  arch = x86_64
> > -timeout = 30
> > +timeout = 240
> >
> >  [ioapic]
> >  file = ioapic.flat
>
> AFAIR the default timeout for tests where timeout it not set explicitly
> is 90s so don't you need to also modify it for other tests like
> 'apic-split', 'ioapic', 'ioapic-split', ... ?
>
Hello,
interesting thing is that this apic test is the only one that will timeout.
For Azure cloud hyperv instance Standard_D48_v3 (kernel 5.4 on Bionic):
apic-split - 31.892s
ioapic - 1.187s
ioapic-split - 1.212s
vmx_apic_passthrough_thread - 2.099s
vmx_apic_passthrough_tpr_threshold_test - Failed (KVM: entry failed,
hardware error 0x0)

So I think bumping the timeout just for this test should be enough.
Thanks

> I was thinking about introducing a 'timeout multiplier' or something to
> run_tests.sh for running in slow (read: nested) environments, doing that
> would allow us to keep reasonably small timeouts by default. This is
> somewhat important as tests tend to hang and waiting for 4 minutes every
> time is not great.
>
> --
> Vitaly
>



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux