The method in Linux to see the number of physical CPU the number of checks and the number of logical CPU

  • 2020-05-15 03:25:46
  • OfStack

Total audit = number of physical CPU, number of physical X, number of physical CPU

Total logical CPU number = physical CPU number X number X hyperthreads per physical CPU kernel

View the number of physical CPU

cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l

Check the number of core (that is, the audit) in each physical CPU

cat /proc/cpuinfo| grep "cpu cores"| uniq

See the number of logical CPU

cat /proc/cpuinfo| grep "processor"| wc -l

View CPU information (model number)

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

View the memory information

# cat /proc/meminfo


Related articles: