[LTP] [PATCH v2] clock_gettime04: set threshold based on the clock resolution
Cyril Hrubis
chrubis@suse.cz
Wed Mar 30 11:49:00 CEST 2022
Hi!
> Thierically that's right, we only make the resolution as additional value
> to tolerate.
>
> But I'm afraid this is the part we can not guarantee especially for VM.
> As from Eirik's test history, the KVM guest ever failed with "150ms" delay:
> clock_gettime04.c:163: TFAIL: CLOCK_BOOTTIME(vDSO with old kernel spec):
> Difference between successive readings greater than 50 ms (2): 150
I do agree that on VMs all bets about timer precisions are off but I
still think that it makes more sense to run the test with greater deltas
there. As long as the VM has acces to high resolution timers we will
will have smaller delta for these clocks using them.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list