Whether we choose a computer, or buy a VPS server, although we will be the price as a pilot criteria for selection, but the server configuration still has a lot of factors to determine the quality of the machine. In the old left blog to share and experience a lot of VPS host, there are simple evaluation, we will simply use "Cat/proc/cpuinfo" to view the CPU information.
Including the old left, did not understand the CPU parameters of many details, this is not in this article, detailed on the VPS server in the CPU configuration parameters, so we choose and compare the VPS server can have a reference.
First, CPU check common commands
The code is as follows |
Copy Code |
Cat/proc/cpuinfo
|
Generally we will use this command to view the CPU profile information.
Some of the main parameter meanings:
Processor: ID of the logical processor
CPU cores: Number of cores in the same physical package processor
Siblings: Number of logical processors in the same physical encapsulation processor
Second, see the number of physical CPUs
The code is as follows |
Copy Code |
cat/proc/cpuinfo| grep "Physical ID" | Sort| uniq| Wc-l
|
Third, view the number of logical CPUs
The code is as follows |
Copy Code |
Cat/proc/cpuinfo |grep "Processor" |wc-l
|
Four, view the core number of each CPU
The code is as follows |
Copy Code |
cat/proc/cpuinfo| grep "CPU Cores" | Uniq
|
The code is as follows |
Copy Code |
Cat/proc/cpuinfo |grep Mhz|uniq
|
Six logical CPUs per physical CPU
The code is as follows |
Copy Code |
Cat/proc/cpuinfo | grep "Siblings"
|
Here we need to get a formula calculation:
A-Total Kernel = number of physical CPUs X number of cores per physical CPU
B-Total logical CPUs = number of physical CPUs x number of cores per physical CPU x Hyper-Threading
Here, the old left is sharing several of our common commands in the VPS, used to check the system version and the environment.
First, look at the number of VPS system digits
The code is as follows |
Copy Code |
Uname-a
|
Check to see if it is 64 or 32-bit system.
Second, view the system running time, the number of users
The code is as follows |
Copy Code |
Uptime
|
Third, view the well-known directory file size
The code is as follows |
Copy Code |
Du-sh
|
This is useful to see the size of the files in our current directory to determine whether there are large files.
Four, view the operating system version
The code is as follows |
Copy Code |
Head-n 1/etc/issue
|
The code is as follows |
Copy Code |
Fdisk-l
|
Review the partitions to see if there is a need to mount the data disk.
Summing up, this article, the old left to the common CPU view parameter information, so that we can at least understand that the different vendors can compare the hardware performance between the machines.