First, CPU, memory, hard drive detection
Cat/proc/cpuinfo (view CPU information) Cat/proc/meminfo (view memory information) DF-LH (view hard disk information)
This command can see whether the VPS CPU information we have purchased is the same as the official standard, and sometimes it tells us the difference from the actual detection.
Second, HDD IO performance test
DD If=/dev/zero of=test bs=64k count=4k oflag=dsyncdd if=/dev/zero of=test bs=8k count=256k Conv=fdatasync
In the "VPS Performance test Tool three: DD hard disk Read and write command" has described in detail the use of this command and specific performance comparison.
Third, wget download test
wget http://cachefly.cachefly.net/100mb.test
Test download speed.
Four, ping and top test
After we get the IP of the VPS, we can use the third-party ping tool to ping the test speed, or ping the test on our local machine, can be the speed of the reactor machine, if we do Chinese site, general Ping in 250 acceptable, also some machine ping speed is relatively high, But the speed of opening is good. So ping can only be a reference.
We can also use the top command to test CPU usage (Extended read: Detect MySQL load too high and workaround (detailed ssh top command))
In short, through the above 5 methods and reference commands can basically test the performance of this machine comparison.
To generate a file:
DD If=/dev/zero of=tmp.5g bs=1g count=5
Explain the parameters used here.
If=file : Specifies the input file, which is read from the callout input if not specified. The designation here as/dev/zero is a pseudo-file of Linux, which can generate a continuous null stream (binary 0) of=file : Specifies the output file, if not specified, outputs to the standard output bs=bytes : The number of bytes per read and write, You can use units K, M, G, and so on. In addition, the input and output can be specified in IBS, OBS, if using BS, it means that both IBS and OBS are using this parameter count=blocks: number of blocks read, block size is specified by IBS (for input parameters only)
Linux Host VPS Simple performance test