Skip to content

Conversation

psafont
Copy link
Member

@psafont psafont commented Jul 3, 2025

On very busy systems, the wait may take much longer than expected. Instead of hard-coding the expected value, wait once to estimate the time aded to the delays, and then use it to compare the times.

Also change to use Mtime.Spans instead of using integers.

I've tested this locally on unit-tests, and @ydirson has tested this on his system that usually needs a patch to disable these tests because they run on an cpu-overprovisioned xen system

@psafont psafont marked this pull request as draft July 3, 2025 13:30
@psafont psafont force-pushed the dev/paus/delays branch from e94b693 to 16fc5d6 Compare July 3, 2025 16:07
@psafont psafont force-pushed the dev/paus/delays branch from 16fc5d6 to ea5e94c Compare July 4, 2025 10:58
@psafont psafont marked this pull request as ready for review July 4, 2025 11:13
On very busy systems, the wait may take much longer than expected. Instead of
hard-coding the expected value, wait once to estimate the time aded to the
delays, and then use it to compare the times.

Also change to use Mtime.Spans instead of using integers.

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont force-pushed the dev/paus/delays branch from ea5e94c to c725281 Compare July 7, 2025 10:45
@psafont psafont added this pull request to the merge queue Jul 7, 2025
Merged via the queue into xapi-project:master with commit ce39acf Jul 7, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants