发布网友 发布时间:2022-04-21 11:42
共1个回答
热心网友 时间:2022-07-01 08:52
1. 查看cpu型号
cat /proc/cpuinfo | grep "model name" | uniq
2. 查看cpu物理个数
cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
3.使用PyCPUID模块
import pycpuid
print "has SSE2:", pycpuid.HAS_SSE2
print "all availabe features:", pycpuid.features()
print pycpuid.vendor(1)
print "brand string:", pycpuid.brand_string()
4. 查看内存信息(显示插槽个数和每个插槽里内存条的大小)
dmidecode -t memory | grep Size
5. 查看内存条厂家
dmidecode -t memory | grep Manufacturer