$ echo "CPU threads: $(grep -c processor /proc/cpuinfo)" To view use the cat command and more command as follows: The lscpu command gathers CPU architecture information from sysfs, /proc/cpuinfo and other sources. The following line indicates that I have two physical CPUs: CPU socket(s): 2 Use /proc/cpuinfo to find out how many CPUs are there in Linux Total threads: 16 (CPU core * Thread per core ).CPU model/make: AMD RyEight-Core Processor.$ lscpu | egrep 'Model name|Socket|Thread|NUMA|CPU\(s\)' How to display information about the CPU on Linux Let us see all commands and examples in details. You can use one of the following command to find the number of physical CPU cores including all cores on Linux: How do you check how many CPUs are there in Linux system?
0 Comments
Leave a Reply. |