Commit 419304a9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Stagger ramp-up to avoid large -j from becoming thundering herd

parent fa7b4f2b
...@@ -405,6 +405,9 @@ main(int argc, char * const *argv) ...@@ -405,6 +405,9 @@ main(int argc, char * const *argv)
if (!VTAILQ_EMPTY(&tst_head) && njob < npar) { if (!VTAILQ_EMPTY(&tst_head) && njob < npar) {
start_test(); start_test();
njob++; njob++;
/* Stagger ramp-up */
if (njob < npar)
(void)usleep(random() % 100000L);
i = 1; i = 1;
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment