To find the number of physical CPUs in Linux:
$ cat /proc/cpuinfo | grep “^physical id” | sort | uniq | wc -l
To find the number of cores per CPU in Linux:
$ cat /proc/cpuinfo | grep “^cpu cores” | uniq
The total number of processors available is the number of physical CPUs multiplied by the number of cores per CPU.
To find the total number of processors:
$ cat /proc/cpuinfo | grep “^processor” | wc -l
$ cat /proc/cpuinfo | grep “^physical id” | sort | uniq | wc -l
To find the number of cores per CPU in Linux:
$ cat /proc/cpuinfo | grep “^cpu cores” | uniq
The total number of processors available is the number of physical CPUs multiplied by the number of cores per CPU.
To find the total number of processors:
$ cat /proc/cpuinfo | grep “^processor” | wc -l
No comments:
Post a Comment