Re: [PATCH] KVM: selftests: memslot_perf_test: make host wait timeout configurable
From: Mayuresh Chitale
Date: Tue Apr 07 2026 - 06:18:39 EST
On Thu, Apr 2, 2026 at 11:50 PM Maciej S. Szmigiero
<mail@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On 2.04.2026 12:29, Mayuresh Chitale wrote:
> > When memslot_perf_test is run on qemu, sometimes the RW subtest fails
> > due to sigalarm, indicating that the guest sync did not finish within
> > the expected duration of 10 seconds. Since the current timeout value is
> > itself a bump up from the original 2s, making the host timeout value
> > configurable via a new command line parameter. Now the test can be
> > invoked with '-a' argument to run the test with a suitable host timeout
> > value.
> >
> > Signed-off-by: Mayuresh Chitale <mayuresh.chitale@xxxxxxxxxxxxxxxx>
> > ---
>
> Out of curiosity: which KVM-enabled setup takes more than 10 seconds
> to run that RW test?
> Does it have like, multiple levels of nesting?
No. It was run on the Qemu Risc-V Virt machine.
>
> When I wrote that test I calibrated it on a mid-range x86 machine,
> where one iteration took on the order of 0.01 s.
>
> 10 s time limit per iteration is already three orders of magnitude
> slower than that.
>
> Otherwise, the patch looks sensible to me.
>
> Thanks,
> Maciej
>