diff mbox series

[kvm-unit-tests] reduce number of iterations for apic test

Message ID 20201031144052.3982250-1-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] reduce number of iterations for apic test | expand

Commit Message

Paolo Bonzini Oct. 31, 2020, 2:40 p.m. UTC
The test generally fails quite quickly, 1 million iterations is
a lot and, 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.

Reported-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 x86/apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jim Mattson Nov. 2, 2020, 11:35 p.m. UTC | #1
On Sat, Oct 31, 2020 at 7:41 AM Paolo Bonzini <pbonzini@redhat.com> wrote:
>
> The test generally fails quite quickly, 1 million iterations is
> a lot and, 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.
>
> Reported-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
diff mbox series

Patch

diff --git a/x86/apic.c b/x86/apic.c
index 82c6ab2..23508ad 100644
--- a/x86/apic.c
+++ b/x86/apic.c
@@ -437,7 +437,7 @@  static void test_multiple_nmi(void)
     handle_irq(2, multiple_nmi_handler);
     handle_irq(0x44, flush_nmi);
     on_cpu_async(1, kick_me_nmi, 0);
-    for (i = 0; i < 1000000; ++i) {
+    for (i = 0; i < 100000; ++i) {
 	nmi_flushed = false;
 	nmi_received = 0;
 	++cpu0_nmi_ctr1;