-
Notifications
You must be signed in to change notification settings - Fork 13
Home
Shuai Yuan edited this page Jan 23, 2019
·
3 revisions
Welcome to the OpenMP-101 wiki!
- 总核数 = 物理CPU个数 X 每颗物理CPU的核数
- 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数
- 查看物理CPU个数:
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
- 查看每个物理CPU中core的个数(即核数):
cat /proc/cpuinfo| grep "cpu cores"| uniq
- 查看逻辑CPU的个数:
cat /proc/cpuinfo| grep "processor"| wc -l
- 查看CPU信息(型号):
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
- 查看内存信息:
cat /proc/meminfo