How to check under linux cpu information

The linux cpuinfo cpu information can be read from a file.

Excuting an order:

# cat  /proc/cpuinfo

 

We generally see is a logical processor cores.

It is counted from 0, for example, see here is the 31

We generally say that this machine is 32 cores, said the actual logic core.

 

In fact, for a more detailed description of some of the cpu should.

This machine is a virtual machine, we look at the more detailed information on the physical machine. 

among them

cpu model name is the name, type, frequency

cpu Mhz is the actual frequency

Reference numeral cpu of a single physical id.

Cores cpu physical core of logical cores which cpu

siblings cpu single logical audit

 

Excuting an order:

#

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

Check the machine a total of several cpu, this is two.

 

Excuting an order:

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

View single physical core number of cpu

 

 

Excuting an order:

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

View the total number of logical cores

 

 

Implementation of the top command, and then press 1

You can view all the logical cores load.

 

Guess you like

Origin www.cnblogs.com/sucretan2010/p/11330184.html