CPU 的超线程在bios里面进行设置 centos7 默认已经开启 如果逻辑核数是物理核数的两倍 就是开启了超线程
[root@localhost ~]# cat /proc/cpuinfo | grep \"physical id\" | sort | uniq
physical id : 0
physical id : 1
[root@localhost ~]# cat /proc/cpuinfo | grep \"cores\" | uniq
cpu cores : 10
[root@localhost ~]# cat /proc/cpuinfo | grep \"processor\" | wc -l
40
40 = 10 *2 *2
是开启了超线程