购买了Onexenvps。想看看这个VPS的性能如何。使用的版本是Unixbench 5.1.2。安装和测试结果记录如下。

首先VPS一般不运行X11程序。为了避免编译错误,要修改解压后的Makefile,并注视掉一下两行:

# Comment the line out to disable these tests.
GRAPHIC_TESTS = defined

# Set "GL_LIBS" to the libraries needed to link a GL program.
GL_LIBS = -lGL -lXext -lX11

接下来运行Make,然后就是在当前目录下输入 ./Run 进行测试。测试时前面会有提示sh: 3dinfo: command not found,这是因为没有编译图形测试模块的原因,可以忽略。经过比较漫长的等待,这个内存128MB,10G硬盘的VPS成绩如下:

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.2)

   System: oceanli: GNU/Linux
   OS: GNU/Linux -- 2.6.26-2-xen-amd64 -- #1 SMP Wed Mar 10 00:29:48 UTC 2010
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz (5349.4 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   07:23:03 up 1 day, 15:35,  2 users,  load average: 0.00, 0.00, 0.00; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Wed May 26 2010 07:23:03 - 07:51:13
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       20186580.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3175.8 MWIPS (10.0 s, 7 samples)
Execl Throughput                               2171.6 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        324557.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           85305.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        127489.6 KBps  (30.1 s, 2 samples)
Pipe Throughput                              495082.9 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 127318.8 lps   (10.0 s, 7 samples)
Process Creation                               4499.8 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4026.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    561.6 lpm   (60.0 s, 2 samples)
System Call Overhead                         539137.2 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   20186580.0   1729.8
Double-Precision Whetstone                       55.0       3175.8    577.4
Execl Throughput                                 43.0       2171.6    505.0
File Copy 1024 bufsize 2000 maxblocks          3960.0     324557.9    819.6
File Copy 256 bufsize 500 maxblocks            1655.0      85305.6    515.4
File Copy 4096 bufsize 8000 maxblocks          5800.0     127489.6    219.8
Pipe Throughput                               12440.0     495082.9    398.0
Pipe-based Context Switching                   4000.0     127318.8    318.3
Process Creation                                126.0       4499.8    357.1
Shell Scripts (1 concurrent)                     42.4       4026.9    949.7
Shell Scripts (8 concurrent)                      6.0        561.6    936.1
System Call Overhead                          15000.0     539137.2    359.4
                                                                   ========
System Benchmarks Index Score                                         544.4

Related Posts: