Commit 01d11e7
committed
contest: vm: rework the subsequent VM launch delay
We wait for system to calm down before launching VMs, this
is primarily meant as a way to avoid launching tests while
other trees are still building their kernel. However, the
placement of the delay means that it delays every single
virtual machine launch.
This makes the "thread_spawn_delay" kinda pointless as it
does the same thing. Rework the logic a little bit.
Have "thread_spawn_delay" as a single long wait / delay
before we launch the _first_ additional VM. Lower the
wait ival for the loadavg check for the extra VMs.
This should let us set the initial wait longer to let
the smaller test sets finish before we start kicking off
extra workers for larger sets.
Signed-off-by: Jakub Kicinski <[email protected]>1 parent bb9bc15 commit 01d11e7
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
338 | 339 | | |
339 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
340 | 345 | | |
341 | 346 | | |
342 | 347 | | |
343 | 348 | | |
344 | 349 | | |
345 | | - | |
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
| |||
0 commit comments