Cap threads at 8 to avoid problems with too many threads on CPUs that misreport core number