View linux cpu cores

1. Check the number of CPU

cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l

2. Check the number of each physical CPU core containing

cat /proc/cpuinfo |grep "cpu cores"|uniq|wc -l

3. Check the number of threads per CPU core contained

cat /proc/cpuinfo |grep "processor"|wc -l

4. The number of cpu core number of threads supported by the number of per cpu cpu * * contains the number of threads per core contains so

1. Check the number of CPU

cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -l

2. Check the number of each physical CPU core containing

cat /proc/cpuinfo |grep "cpu cores"|uniq|wc -l

3. Check the number of threads per CPU core contained

cat /proc/cpuinfo |grep "processor"|wc -l

4. The number of cpu core number of threads supported by the number of per cpu cpu * * contains the number of threads per core contains so

Guess you like

Origin www.cnblogs.com/isanshou/p/11388789.html