参考:
Linux下 查看CPU信息
1.查看完整CPU信息:
$ cat /proc/cpuinfo
2.查看逻辑cpu个数:
$ cat /proc/cpuinfo |grep "processor"|wc -l
3.查看物理cpu个数:
$ cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
4.查看cores:
$ cat /proc/cpuinfo |grep "cores"|uniq
2017.9
2022-08-10 22:08:12
1.查看完整CPU信息:
$ cat /proc/cpuinfo
2.查看逻辑cpu个数:
$ cat /proc/cpuinfo |grep "processor"|wc -l
3.查看物理cpu个数:
$ cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
4.查看cores:
$ cat /proc/cpuinfo |grep "cores"|uniq
2017.9
下一篇:C#设计模式之工厂