Try to get the number of cores from /proc/cpuinfo