1. 首页 > ITPUX技术网 > 正文

LinuxCPU查询、超线程查询

LinuxCPU查询、超线程查询

查看物理CPU数量:
cat /proc/cpuinfo| grep “physical id”| sort| uniq| wc -l
查看逻辑的:
cat /proc/cpuinfo| grep processor|sort|uniq|wc -l

查看正常情况下的CPU逻辑数量:1颗物理CPU逻辑上是12core

grep “siblings” /proc/cpuinfo|uniq

grep “cpu cores” /proc/cpuinfo|uniq

查看是否具有相同core_id 有相同的则说明开启了超线程
grep ‘core id’ /proc/cpuinfo

本文由风哥教程整理发布,仅用于学习测试使用,转载注明出处:http://www.fgedu.net.cn/10327.html

联系我们

在线咨询:点击这里给我发消息

微信号:itpux-com

工作日:9:30-18:30,节假日休息