Example of a Linux server looking at CPU configuration information

Source: Internet
Author: User
Tags vps vps server
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

Model NAME:CPU Models

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

Check CPU Frequency

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

View Disk Partitions

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.