Last update at :2024-05-15,Edit by888u
After purchasing a VPS, we novices always want to know how the performance of the VPS is, but we suffer from the lack of Linux and don’t know how to start. I saw a few big guys’ evaluation websites and posted a bunch of pictures of test data, and I was envious. I have the same mentality, so I searched Baidu and Google like crazy to know how those commands are run and what the parameters mean. What do they mean?
Here I will compile several commonly used Linux VPS and server performance checking commands and tools, which can be used to detect the data of the current vps server and compare the performance between different vps servers. Of course, for most practical users For me, I just want to experience the feeling of test data, but I still won’t delve too deeply into the quality of the data.
First, one-click command to view information
Log in to SSH and use this one-click command to view most of the server information.
wget --no-check-certificate freevps.us/downloads/bench.sh -O - -o /dev/null | bashWith this command, we can see our current VPS, server memory, hard disk, CPU, online time, as well as the download speed and IO hard disk read and write of several nodes.
Second, use the speedtest-cli node to test the speed
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py chmod +x speedtest-cli ./speedtest-cli --server=5726Use speedtest-cli to test the speed of fixed nodes. Here we can select the node ID as needed.
./speedtest-cli --list | grep ChinaUsing this command, you can see all the current Chinese nodes, and then test the speed from the server to the current Chinese node based on the ID.
Third, IO hard disk read and write performance test
dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync;rm testWe can see that there is a big difference in IO values between SSD solid state drives and SATA ordinary hard drives. What is tested here is an SSD solid state drive, which is very fast.
Fourth, CPU detailed parameter information
cat /proc/cpuinfoFifth, Sysstat tool detection
The Sysstat tool is relatively powerful and includes a set of tools for monitoring system performance and efficiency. These tools are important for us to collect system performance data, such as CPU usage, hard disk and network throughput data. The collection and analysis of these data are more important. effect.
1. Installation
yum install sysstat #centos apt-get install sysstat #Debian2. Use
A - sar -u 1 3 #Detect CPU time information. B - sar -r 1 3 #Memory detection situation C - sar -S 1 3 #Burst memory detectionSixth, sysbench tool detection
1. Installation
apt-get install sysbench #debian yum install sysbench #centos2. Use
- A – CPU detection
- IO detection
Summary: The above methods and command tools are all used to detect the internal parameter information of the server configuration. For external performance, such as speed and routing lines, we can use the PING tool or MTR tool to test.
Recommended site searches: host domain name, com domain name registration, US virtual space, Guangdong hosting, vps to ip, how to rent a server, external network ip query, domain name information query, US vps host, filing,
发表评论