最近迷上VPS,购买必考虑性能,如何了解性能,可以参考一下这篇VPS跑分记。跑分差的可以考虑在退款期限内,退款。
问:什么是跑分?
答:跑分是一种用某些以分数体现性能的测试软件测试机器性能的行为。
问:用什么软件对vps进行跑分(即用什么软件对vps进行性能测试)?
答:UnixBench是一款常用的vps性能测试程序,简称UB。Unixbench的主要测试项目有:系统调用、读写、进程、图形化测试、2D、3D、管道、运算、C库等系统基准性能提供测试数据。
如何对vps进行跑分
1.安装UnixBench
登陆VPS后运行以下命令
wget http://www.CTOHome.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;
一般VPS运行以上命令都会自己下载、安装、运行UnixBench,直接等分数出来就好。如果跟本人一样出现
Run: “make all” failed; aborting
并且有以下提示,则说明VPS没有安装好 GCC 模块。
make: gcc: Command not found
DEBIAN运行apt-get install gcc ?#安装GCC
CentOS运行yum install gcc ? ? ??#安装GCC
安装完成后GCC后从新执行上面第一条红色命令,如出现以#号围成的?Unix Bench 字样那就说明跑分行动已经开始,请耐心等待分数,一般需要等10几分钟。
跑分结束出现如下结果:
1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10
1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10
1 x Execl Throughput 1 2 3
1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3
1 x File Copy 256 bufsize 500 maxblocks 1 2 3
1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3
1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10
1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10
1 x Process Creation 1 2 3
1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10
1 x Shell Scripts (1 concurrent) 1 2 3
1 x Shell Scripts (8 concurrent) 1 2 3
2 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10
2 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10
2 x Execl Throughput 1 2 3
2 x File Copy 1024 bufsize 2000 maxblocks 1 2 3
2 x File Copy 256 bufsize 500 maxblocks 1 2 3
2 x File Copy 4096 bufsize 8000 maxblocks 1 2 3
2 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10
2 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10
2 x Process Creation 1 2 3
2 x System Call Overhead 1 2 3 4 5 6 7 8 9 10
2 x Shell Scripts (1 concurrent) 1 2 3
2 x Shell Scripts (8 concurrent) 1 2 3
===================================================================
BYTE UNIX Benchmarks (Version 5.1.2)
System: www: GNU/Linux
OS: GNU/Linux -- 2.6.32-042stab059.7 -- #1 SMP Tue Jul 24 19:12:01 MSK 2012
Machine: i686 (unknown)
Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
CPU 0: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (6799.9 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
CPU 1: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (6799.9 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSCALL/SYSRET, Intel virtualization
16:58:31 up 4 days, 8:07, 2 users, load average: 0.12, 0.03, 0.01; runlevel 2
------------------------------------------------------------------------
Benchmark Run: Sat Apr 20 2013 16:58:31 - 17:26:38
2 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 21501225.5 lps (10.0 s, 7 samples)
Double-Precision Whetstone 3484.1 MWIPS (10.1 s, 7 samples)
Execl Throughput 4253.0 lps (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 732516.8 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 204289.5 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1972223.3 KBps (30.0 s, 2 samples)
Pipe Throughput 1205114.5 lps (10.0 s, 7 samples)
Pipe-based Context Switching 142926.9 lps (10.0 s, 7 samples)
Process Creation 11842.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 8659.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1506.1 lpm (60.0 s, 2 samples)
System Call Overhead 908897.7 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 21501225.5 1842.4
Double-Precision Whetstone 55.0 3484.1 633.5
Execl Throughput 43.0 4253.0 989.1
File Copy 1024 bufsize 2000 maxblocks 3960.0 732516.8 1849.8
File Copy 256 bufsize 500 maxblocks 1655.0 204289.5 1234.4
File Copy 4096 bufsize 8000 maxblocks 5800.0 1972223.3 3400.4
Pipe Throughput 12440.0 1205114.5 968.7
Pipe-based Context Switching 4000.0 142926.9 357.3
Process Creation 126.0 11842.1 939.8
Shell Scripts (1 concurrent) 42.4 8659.2 2042.3
Shell Scripts (8 concurrent) 6.0 1506.1 2510.1
System Call Overhead 15000.0 908897.7 605.9
========
System Benchmarks Index Score 1201.6
------------------------------------------------------------------------
Benchmark Run: Sat Apr 20 2013 17:26:38 - 17:54:45
2 CPUs in system; running 2 parallel copies of tests
Dhrystone 2 using register variables 42077131.5 lps (10.0 s, 7 samples)
Double-Precision Whetstone 6877.6 MWIPS (10.0 s, 7 samples)
Execl Throughput 9352.9 lps (29.7 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1196936.6 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 323131.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3174437.4 KBps (30.0 s, 2 samples)
Pipe Throughput 2351776.0 lps (10.0 s, 7 samples)
Pipe-based Context Switching 232994.2 lps (10.0 s, 7 samples)
Process Creation 20994.6 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 13080.4 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1455.5 lpm (60.1 s, 2 samples)
System Call Overhead 1701362.9 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 42077131.5 3605.6
Double-Precision Whetstone 55.0 6877.6 1250.5
Execl Throughput 43.0 9352.9 2175.1
File Copy 1024 bufsize 2000 maxblocks 3960.0 1196936.6 3022.6
File Copy 256 bufsize 500 maxblocks 1655.0 323131.4 1952.5
File Copy 4096 bufsize 8000 maxblocks 5800.0 3174437.4 5473.2
Pipe Throughput 12440.0 2351776.0 1890.5
Pipe-based Context Switching 4000.0 232994.2 582.5
Process Creation 126.0 20994.6 1666.2
Shell Scripts (1 concurrent) 42.4 13080.4 3085.0
Shell Scripts (8 concurrent) 6.0 1455.5 2425.9
System Call Overhead 15000.0 1701362.9 1134.2
========
System Benchmarks Index Score 2031.2
======= Script description and score comparison: =======
跑分结束鸟博主的VPS只得鸟 1201.6 分,表现较为一般;第二个是并行测试分数2031.2,其实意义我也不大懂,知道的麻烦科普一下。
除了用UnixBench进行综合性能测试之外,我们也能用以下2个小命令进行单项性能测试哦
1.进行硬盘性能测试的命令
dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
结果大于10MB/S为一般,大于50MB/S为优秀
2.进行网速测试的命令
wget 某大型文件,如:
wget?http://sjc.hawkhost.com/100mb.zip
PS.这个数据与下载目标与VPS所在机房之间的网络连接路线有关,与同服务器其他VPS实时多网络的占用达也有关。由于影响因素过多,不确定性大,所以网速测试参考意义较小。
近期评论