To find the number of CPUs or Cores
There are three options to find the number of CPUs or cores on a unix server:
(1)
cat /proc/cpuinfo
(2)
>grep -i "processor" /proc/cpuinfo | sort -u | wc -l
(3)
egrep -e "core id" -e ^physical /proc/cpuinfo|xargs -l2 echo|sort -u
end
Comments
Post a Comment