jobd.pl: change default number of parallel jobs
commite97dedeca850e65359b46ef7105432d4bcb5149b
authorKyle J. McKay <mackyle@gmail.com>
Tue, 6 Mar 2018 21:39:23 +0000 (6 13:39 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 6 Mar 2018 21:39:23 +0000 (6 13:39 -0800)
tree1a26de143ca3bd738688b2c6cbd0888700793f46
parent5ab19a876587b2f5676c00cc00b230e693d81592
jobd.pl: change default number of parallel jobs

The limiting factor tends not to be CPU when the number of CPU cores
available increases, but rather the random access speed of the hard
disk.  Having a large number of parallel jobs can actually reduce
performance due to hard-disk thrashing.

Nevertheless, there is a period of just waiting for network activity
while doing mirror updates that does not cause disk thrashing at all.

Therefore scale back on the default number of parallel jobs as the
number of detected CPU cores increases and cap the maximum default
to no more than sixteen.

Of course any explicitly set value will continue to be used, this
change only affects the default if no value is specified explicitly.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/jobd.pl