@@ -2082,13 +2082,14 @@ (adjmaxload (* maxload (max 1 numcpus))) ;; possible bug where ;; numcpus (or could be ;; maxload) is zero, ;; crude fallback is to ;; at least use 1 - (loadjmp (- first (if (> next (* numcpus 0.7)) + (loadjmp (- first (if (> next (* numcpus 0.7)) ;; could do something with average of first and next? 0 next))) ;; we will force a conservative calculation any time next is large. + (first-next-avg (/ (+ first next) 2)) ;; add some randomness to the time to break any alignment ;; where netbatch dumps many jobs to machines simultaneously (adjwait (min (+ 300 (random 10)) (abs (* (+ (random 10) (/ (- 1000 count) 10) waitdelay)