识别物理CPU、Core、逻辑CPU 逻辑CPU个数: # cat /proc/cpuinfo | grep "processor" | wc -l 物理CPU个数: # cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l 每个物理CPU中Core的个数: # cat /proc/cpuinfo | grep "cpu cores" | wc -l 是否为超线程? 如果有两个逻辑CPU具有相同的"core id",那么超线程是打开的。 每个物理CPU中逻辑CPU(可能是core, threads或both)的个数: # cat /proc/cpuinfo | grep "siblings" 最保险的方法是问Intel,有谁比Intel更了解自己的CPU呢?(sorry AMD): http://support.intel.com/support/processors/sb/CS-015477.htm 参考: http://kbase.redhat.com/faq/FAQ_80_8560.shtm 【作者: pengchengzou】
链接:http://pczou.bokee.com/6078183.html
链接:http://pczou.bokee.com/6078183.html
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23650854/viewspace-697941/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23650854/viewspace-697941/