lunux中cpuinfo中信息详解
转自: http://icooke.blog.51cto.com/4123148/757555 http://desert.blog.51cto.com/779694/200270 http://www.arjiu.com/archives/462.html 自己的cpu是两颗四核的cpu未使用超线程 ,总共8核8线程 。 判断依据: 1.具有相同core id的cpu是同一个core的超线程。 2.具有相同physical id的cpu是同一颗cpu封装的线程或者cores。 英文版: 1.Physical id and core id are not necessarily consecutive but they are unique. Any cpu with the same core id are hyperthreads in the same core. 2.Any cpu with the same physical id are threads or cores in the same physical socket. echo "logical CPU number:" #逻辑CPU个数 cat /proc/cpuinfo | grep "processor" | wc -l echo "physical CPU number:" #物理CPU个数: cat