全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 13888|回复: 39

[经验] CPU单核和多核VPS测试脚本unixbench5.1.2

[复制链接]
发表于 2010-4-1 12:09:09 | 显示全部楼层 |阅读模式
之前的unixbench 4已经不能用了,wht前些日子推出了unixbench5.1.2性能测试脚本,但是默认的centos执行他总有各种小错误。于是特别做了一个脚本,把容易出错的地方fix了,给大家测试一下,如果有报错,请贴出错误,继续完善此脚本:

ssh登录linux vps控制台,运行下面的1行命令即可(centos版):
  1. wget http://www.CTOHome.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;
复制代码
此脚本会自动下载unixbench测试工具,并自动运行它。 根据机器性能,测试执行完大约需要5-30分钟


Please also note that this 5.1.2 version will make two runs. One run will test only 1 core (1 parallel copy). Another run will test all the available cores (e.g., 16 parallel copies for 8 CPUs with HT).

此版本可以测试CPU单核心和多核心的不同结果



下面的结果是1G内存,P4 2.8,单核,独立服务器结果453分,各位测试一下你的vps,估计性能不会比这个独立服务器差:
  1. ========================================================================
  2.    BYTE UNIX Benchmarks (Version 5.1.2)

  3.    OS: GNU/Linux -- 2.6.18-164.11.1.el5 -- #1 SMP Wed Jan 20 07:39:04 EST 2010
  4.    Machine: i686 (i386)
  5.    Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
  6.    CPU 0: Intel(R) Pentium(R) 4 CPU 2.80GHz (5586.7 bogomips)
  7.           Hyper-Threading, MMX, Physical Address Ext
  8.    11:44:15 up 32 days,  6:13,  1 user,  load average: 0.08, 0.05, 0.01; runlevel 3

  9. ------------------------------------------------------------------------
  10. Benchmark Run: Thu Apr 01 2010 11:44:15 - 12:12:21
  11. 1 CPU in system; running 1 parallel copy of tests

  12. Dhrystone 2 using register variables        4333007.6 lps   (10.0 s, 7 samples)
  13. Double-Precision Whetstone                     1106.9 MWIPS (10.5 s, 7 samples)
  14. Execl Throughput                               2464.0 lps   (29.5 s, 2 samples)
  15. File Copy 1024 bufsize 2000 maxblocks        242615.8 KBps  (30.0 s, 2 samples)
  16. File Copy 256 bufsize 500 maxblocks           73897.0 KBps  (30.0 s, 2 samples)
  17. File Copy 4096 bufsize 8000 maxblocks        488969.8 KBps  (30.0 s, 2 samples)
  18. Pipe Throughput                              366866.1 lps   (10.0 s, 7 samples)
  19. Pipe-based Context Switching                 123646.7 lps   (10.0 s, 7 samples)
  20. Process Creation                               9256.3 lps   (30.0 s, 2 samples)
  21. Shell Scripts (1 concurrent)                   2819.6 lpm   (60.0 s, 2 samples)
  22. Shell Scripts (8 concurrent)                    385.4 lpm   (60.2 s, 2 samples)
  23. System Call Overhead                         403840.8 lps   (10.0 s, 7 samples)

  24. System Benchmarks Index Values               BASELINE       RESULT    INDEX
  25. Dhrystone 2 using register variables         116700.0    4333007.6    371.3
  26. Double-Precision Whetstone                       55.0       1106.9    201.3
  27. Execl Throughput                                 43.0       2464.0    573.0
  28. File Copy 1024 bufsize 2000 maxblocks          3960.0     242615.8    612.7
  29. File Copy 256 bufsize 500 maxblocks            1655.0      73897.0    446.5
  30. File Copy 4096 bufsize 8000 maxblocks          5800.0     488969.8    843.1
  31. Pipe Throughput                               12440.0     366866.1    294.9
  32. Pipe-based Context Switching                   4000.0     123646.7    309.1
  33. Process Creation                                126.0       9256.3    734.6
  34. Shell Scripts (1 concurrent)                     42.4       2819.6    665.0
  35. Shell Scripts (8 concurrent)                      6.0        385.4    642.4
  36. System Call Overhead                          15000.0     403840.8    269.2
  37.                                                                    ========
  38. System Benchmarks Index Score                                         453.7
复制代码
下面的结果是768M内存,Xeon(R) CPU  E5520  @ 2.27GHz, 但核心, openvz VPS结果,各位测试一下你的xen vps,对比一下:
  1. ========================================================================
  2.    BYTE UNIX Benchmarks (Version 5.1.2)

  3.    OS: GNU/Linux -- 2.6.18-164.11.1.el5.028stab068.5 -- #1 SMP Mon Mar 15 19:26:36 MSK 2010
  4.    Machine: i686 (i386)
  5.    Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
  6.    CPU 0: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz (4533.6 bogomips)
  7.           Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
  8.    11:56:17 up 18:33,  1 user,  load average: 0.79, 0.25, 0.08; runlevel 3

  9. ------------------------------------------------------------------------
  10. Benchmark Run: Thu Apr 01 2010 11:56:17 - 12:55:27
  11. 1 CPU in system; running 1 parallel copy of tests

  12. Dhrystone 2 using register variables        9508912.5 lps   (10.0 s, 7 samples)
  13. Double-Precision Whetstone                     1984.0 MWIPS (9.6 s, 7 samples)
  14. Execl Throughput                               3507.5 lps   (29.5 s, 2 samples)
  15. File Copy 1024 bufsize 2000 maxblocks        404781.5 KBps  (30.0 s, 2 samples)
  16. File Copy 256 bufsize 500 maxblocks          122954.5 KBps  (30.0 s, 2 samples)
  17. File Copy 4096 bufsize 8000 maxblocks        569243.2 KBps  (30.1 s, 2 samples)
  18. Pipe Throughput                              892678.4 lps   (10.0 s, 7 samples)
  19. Pipe-based Context Switching                 250202.8 lps   (10.0 s, 7 samples)
  20. Process Creation                              11860.2 lps   (30.0 s, 2 samples)
  21. Shell Scripts (1 concurrent)                   3343.4 lpm   (60.0 s, 2 samples)
  22. Shell Scripts (8 concurrent)                    493.8 lpm   (60.0 s, 2 samples)
  23. System Call Overhead                         769732.0 lps   (10.0 s, 7 samples)

  24. System Benchmarks Index Values               BASELINE       RESULT    INDEX
  25. Dhrystone 2 using register variables         116700.0    9508912.5    814.8
  26. Double-Precision Whetstone                       55.0       1984.0    360.7
  27. Execl Throughput                                 43.0       3507.5    815.7
  28. File Copy 1024 bufsize 2000 maxblocks          3960.0     404781.5   1022.2
  29. File Copy 256 bufsize 500 maxblocks            1655.0     122954.5    742.9
  30. File Copy 4096 bufsize 8000 maxblocks          5800.0     569243.2    981.5
  31. Pipe Throughput                               12440.0     892678.4    717.6
  32. Pipe-based Context Switching                   4000.0     250202.8    625.5
  33. Process Creation                                126.0      11860.2    941.3
  34. Shell Scripts (1 concurrent)                     42.4       3343.4    788.5
  35. Shell Scripts (8 concurrent)                      6.0        493.8    822.9
  36. System Call Overhead                          15000.0     769732.0    513.2
  37.                                                                    ========
  38. System Benchmarks Index Score                                         735.7
复制代码
vps测试执行了1个小时,但是居然比独立服务器分数高得多,  这不是误导么

[ 本帖最后由 美国VPS 于 2010-4-1 13:08 编辑 ]
 楼主| 发表于 2010-4-1 12:15:55 | 显示全部楼层
运行时间超过20分钟了,资源限制严格的vps,不要测试了,免得机房说你资源占用太多而找茬
发表于 2010-4-1 12:46:33 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2010-4-1 12:53:09 | 显示全部楼层
原帖由 Rey 于 2010-4-1 12:46 发表
装过,但每次到make都提示错误。。。楼主怎么装的?



ssh登录linux vps控制台,运行下面的1行命令即可(centos版):

  1. wget http://www.CTOHome.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;
复制代码
发表于 2010-4-1 12:53:54 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2010-4-1 13:05:05 | 显示全部楼层
WHT上有人说测试时间越长,说明机器硬件配置越好
发表于 2010-4-1 13:06:04 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2010-4-1 13:06:55 | 显示全部楼层
楼主用的自家的
 楼主| 发表于 2010-4-1 13:10:33 | 显示全部楼层
我觉得burst的512 vps能有300分以上
发表于 2010-4-1 13:18:50 | 显示全部楼层

回复 9# 的帖子

测试中,等会报告
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-3 20:27 , Processed in 0.070950 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表