How to check the CPU configuration of linux vps and understand the parameters

888u

Last update at :2024-04-26,Edit by888u

When we buy a vps, we are more concerned about the cost of the product, the speed and the service stability of the merchant. But many times we are confused as to why the prices of similar products are so different. This requires us to compare the products and understand the configuration information of different products. Avoid buying a product with poor configuration at a high price.

This time we will look at the CPU first. Let’s take LVMLA’s $12 annual vps as an example to briefly explain how to check the CPU.

1. Check the common commands of CPU

cat /proc/cpuinfo

The meaning of several main parameters:

processor: ID of the logical processor

model name: CPU model

cpu cores: Number of cores in the same physical package processor

Siblings: Number of logical processors in the same physical package processor

2. Check the number of physical CPUs

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

3. Check the number of logical CPUs

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

4. View the number of cores in each CPU

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

5. Check the CPU frequency

cat /proc/cpuinfo |grep MHz|uniq

6. Logical CPU in each physical CPU

cat /proc/cpuinfo | grep "siblings"

Here we need to get a formula to calculate:

A - Total number of cores = Number of physical CPUs X Number of cores per physical CPU

B - Total number of logical CPUs = Number of physical CPUs X Number of cores per physical CPU X Number of hyperthreads


Here, we share a few more commonly used commands in VPS.

1. Check the number of bits of the VPS system, such as 32-bit or 64-bit

uname -a

2. Check the system running time and number of users

uptime

3. Check the current directory size

du-sh

This can help us see if there are large files.

4. Check the operating system version

head -n 1 /etc/issue

5. View disk partitions

fdisk -l

Check the partition status to see if a data disk needs to be mounted.

6. Check memory usage

free -h

7. Check the progress

topp

Recommended site searches: query IP, how to rent a server, free all-purpose space application, online IP query, Hong Kong IP, domain name registration query, online store virtual host, US server defense, public network IP, domain name query registration Information inquiry,

How to check the CPU configuration of linux vps and understand the parameters

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码