Detailed explanation of viewing CPU configuration information on Linux servers. Let’s take a look.

888u

Last update at :2024-06-24,Edit by888u

Whether we are choosing a computer or purchasing a VPS server, although we will use price as the leading condition as the selection criterion, the configuration of the server still has a big factor in determining the quality of the machine. I have shared and experienced many VPS hosts on Snail Blog, and also conducted simple reviews. We will simply use "cat /proc/cpuinfo" to check the CPU information.

Including Snail, no one, including Snail, has understood many detailed parameters of CPU parameters. This is not in this article. The answers to the CPU configuration parameters in VPS servers are compiled in detail, so that we can have some information when choosing and comparing VPS servers. A reference.

First, common commands for CPU check

cat /proc/cpuinfo

Generally we will use this command to view the general information of the CPU.

The meaning of several main parameters:

processor: ID of the logical processor

model name: CPU model

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

siblings: the number of logical processors in the same physical package processor

Second, check the number of physical CPUs

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

Third, check the number of logical CPUs

cat /proc/cpuinfo |grep \\”processor\\”|wc -l

Fourth, check the number of cores in each CPU

cat /proc/cpuinfo| grep \\”cpu cores\\”| uniq

Fifth, check the CPU frequency

cat /proc/cpuinfo |grep MHz|uniq

Sixth, 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, Snail is sharing a few commands we commonly use in VPS to check the system version and environment.

First, check the number of digits of the VPS system

uname -a

Check whether it is a 64-bit or 32-bit system.

Second, check the system running time and number of users

uptime

Third, check the file size of well-known directories

du -sh

This is more useful to check the size of the files in our current directory to determine whether there are large files.

Fourth, check the operating system version

head -n 1 /etc/issue

Fifth, check the disk partition

fdisk -l

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

To summarize, in this article, Snail has compiled parameter information for commonly used CPUs, so that we can at least understand and compare the hardware performance between machines from different vendors.

Recommended site searches: Ministry of Industry and Information Technology domain name registration, dynamic IP dial-up server, US server rental, domain name registration platform, free asp space, Dalian virtual host, which foreign server rental is the best, website registration domain name query, Hong Kong cloud server 10 yuan a year, http proxy ip

Detailed explanation of viewing CPU configuration information on Linux servers. Let’s take a look.

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