Thursday, 30 May 2013

How to check number of cores per CPU

echo $(($((`cat /proc/cpuinfo | grep 'processor' | sort -n | wc -l`))/$((`cat /proc/cpuinfo | grep "physical id" | sort -n | uniq | wc -l`))))

No comments:

Post a Comment