标签:linux 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
本文出自 “小小天空” 博客,转载请与作者联系!
标签:linux cpu 查询
原文地址:http://8782795.blog.51cto.com/8772795/1594713