linux 中 查看cpu 信息
001、型号
[root@PC1 test]# cat /proc/cpuinfo | grep name | cut -f 2 -d: | uniq -c 6 12th Gen Intel(R) Core(TM) i5-12500H

6: 总核心数
12th:12代处理器
Gen:genunie, 正式版
Intel(R):厂商
002、物理CPU个数
[root@PC1 test]# cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l 1

003、每个物理CPU的逻辑CPU数目
[root@PC1 test]# cat /proc/cpuinfo| grep "cpu cores"| uniq cpu cores : 6

004、逻辑CPU的个数
[root@PC1 test]# cat /proc/cpuinfo | grep "processor" | wc -l 6

005、是否支持超线程
[root@PC1 test]# lscpu | grep "Thread(s) per core:" ##表示不支持, 2表示支持 Thread(s) per core: 1


浙公网安备 33010602011771号