2011-01-11 17:43:32 iteye_15514 阅读数 19

主机迷昨天入手了HostEstate的Access款,安装完cPanel,就来做下性能测试吧。

UnixBench是一款不错的Linux下的VPS性能测试软件,使用方法也很简单。首先是UnixBench的安装和使用

UnixBench 4.10 下载地址:http://deak17.googlecode.com/files/unixbench-4.1.0-wht.tar.gz

下面是通过ssh安装和使用UnixBench来做测试。

wget http://deak17.googlecode.com/files/unixbench-4.1.0-wht.tar.gz
tar xzf unixbench-4.1.0-wht.tar.gz
cd unixbench-4.1.0-wht-2/
make

如果出现下面错误
make: gcc: Command not found
make: *** [pgms/arithoh] Error 127

出现下面错误可能是由于没有安装gcc,所以运行下面命令安装下gcc就可以了。

yum install make gcc

如果遇到 Error: Please install /usr/bin/time. 错误提示

centos/fedora 下运行

yum install time

ubuntu/debian 下运行

apt-get install time

最后运行

./Run /*切记是Run不是run或者RUN哦

以下是运行后显示的内容:


 

分数有439,还算是不错的。。。

顺便提一句,猫猫主机http://www.maohost.com正在酝酿中,随时可能上线,希望到时各位主机小盆友支持捧场。

探针:http://www.maohost.com/i.php

CPU信息被屏蔽了,所以看不到。

机房测试IP:74.63.205.206

文件下载测试:

50MB File: http://limestonenetworks.com/test50.zip 100MB File: http://limestonenetworks.com/test100.zip 500MB File: http://limestonenetworks.com/test500.zip官方网站:http://hostestate.com



主机迷Q群:73574131(感谢cruise童鞋提供) ,欢迎加入讨论
转载请注明: 转载自使用UnixBench测试HostEstate的Access款性能

 

2018-04-18 13:51:50 weixin_37272286 阅读数 979

通常,在我们需要采购新设备、或者准备升级设备的时候,总是希望对设备进行一系列的性能评估,除了直接看硬件参数,比较理性、简单的方法就是能有一个测试软件来为我们的硬件系统平台打个分,然后我们就可以根据这个数量化的结果来进行决策。这种方式对于个人或者一些小团队而言,更显得方便而又重要,因为个人和小团队都不太可能找设备供应商拿到足够的售前支持,或者去做专业的评估,而这种“跑个分”的方式不失为是一种既省成本又有效的办法。

恰好,最近刚完成了工作室里的服务器维护,其中有一台老旧的 Dell R410 重装了新系统,刚配置好环境,可以用来演示一下 UnixBench 的使用方法。

UnixBench 的安装

我第一次接触 UnixBench 的时候,并不知道有一键安装脚本,当时的教程是需要下载源码包,然后需要自己修改配置文件然后编译,受限于当时的能力水平,没有顺利编译完成,后来由于这个事情不太紧急,就不了了之了。最近偶然看到一篇文章,里面讲解了如何使用一件安装脚本,尝试了一下,方法的确比较简单,几乎不用什么操作就可以完成,以下将介绍以下该方法。

# 下载一键安装脚本
wget http://teddysun.com/wp-content/uploads/unixbench.sh
# 为脚本添加执行权限
chmod +x unixbench.sh
# 运行脚本 脚本运行会先检查依赖,会自动完成安装,这里需要 root 权限
sudo bash ./unixbench.sh

完成上述步骤,基准测试将自动开始。

测试

测试开始后,软件会自动进行各项测试,并为其评分,测试完成后,将会输出一个测试报表结果,以我的 Dell R410,配置为 E5507 16G内存,146G SAS Raid 0为例,结果如下:

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: WosDevServer: GNU/Linux
   OS: GNU/Linux -- 4.4.0-119-generic -- #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 1: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 2: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 3: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 4: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 5: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 6: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4522.0 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   CPU 7: Intel(R) Xeon(R) CPU E5507 @ 2.27GHz (4521.8 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
   09:42:18 up 16:37,  1 user,  load average: 0.58, 0.14, 0.05; runlevel 5

------------------------------------------------------------------------
Benchmark Run: Wed Apr 18 2018 09:42:18 - 10:10:35
8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       22890258.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2974.5 MWIPS (9.9 s, 7 samples)
Execl Throughput                               2009.3 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        356519.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           99637.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        962479.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                              511868.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 123716.9 lps   (10.0 s, 7 samples)
Process Creation                               3374.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   6240.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   3324.5 lpm   (60.0 s, 2 samples)
System Call Overhead                         509821.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   22890258.0   1961.5
Double-Precision Whetstone                       55.0       2974.5    540.8
Execl Throughput                                 43.0       2009.3    467.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     356519.6    900.3
File Copy 256 bufsize 500 maxblocks            1655.0      99637.7    602.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     962479.7   1659.4
Pipe Throughput                               12440.0     511868.4    411.5
Pipe-based Context Switching                   4000.0     123716.9    309.3
Process Creation                                126.0       3374.2    267.8
Shell Scripts (1 concurrent)                     42.4       6240.7   1471.9
Shell Scripts (8 concurrent)                      6.0       3324.5   5540.8
System Call Overhead                          15000.0     509821.0    339.9
                                                                   ========
System Benchmarks Index Score                                         768.0

------------------------------------------------------------------------
Benchmark Run: Wed Apr 18 2018 10:10:35 - 10:38:54
8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables      181646934.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    23770.7 MWIPS (9.9 s, 7 samples)
Execl Throughput                              17323.7 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        622988.4 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          167131.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1762630.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                             4066846.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                1014461.5 lps   (10.0 s, 7 samples)
Process Creation                              43249.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  40928.1 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   5324.5 lpm   (60.0 s, 2 samples)
System Call Overhead                        3115517.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  181646934.4  15565.3
Double-Precision Whetstone                       55.0      23770.7   4322.0
Execl Throughput                                 43.0      17323.7   4028.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     622988.4   1573.2
File Copy 256 bufsize 500 maxblocks            1655.0     167131.8   1009.9
File Copy 4096 bufsize 8000 maxblocks          5800.0    1762630.6   3039.0
Pipe Throughput                               12440.0    4066846.5   3269.2
Pipe-based Context Switching                   4000.0    1014461.5   2536.2
Process Creation                                126.0      43249.7   3432.5
Shell Scripts (1 concurrent)                     42.4      40928.1   9652.9
Shell Scripts (8 concurrent)                      6.0       5324.5   8874.1
System Call Overhead                          15000.0    3115517.6   2077.0
                                                                   ========
System Benchmarks Index Score                                        3702.0



======= Script description and score comparison completed! =======

为了进行对比,我同时也在我的开发机上运行了一个虚拟机进行测试,虚拟机设置了单核 CPU,2G 内存,测试结果如下:

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: ubuntu: GNU/Linux
   OS: GNU/Linux -- 4.4.0-119-generic -- #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (6411.1 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   10:45:37 up 2 min,  1 user,  load average: 0.22, 0.07, 0.02; runlevel 5

------------------------------------------------------------------------
Benchmark Run: Wed Apr 18 2018 10:45:37 - 11:13:49
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       40453839.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2933.5 MWIPS (9.9 s, 7 samples)
Execl Throughput                               5999.9 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        818195.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          246488.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1618077.0 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1298128.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 218737.5 lps   (10.0 s, 7 samples)
Process Creation                              15710.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                  10794.3 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1405.5 lpm   (60.0 s, 2 samples)
System Call Overhead                        1217286.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   40453839.7   3466.5
Double-Precision Whetstone                       55.0       2933.5    533.4
Execl Throughput                                 43.0       5999.9   1395.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     818195.6   2066.2
File Copy 256 bufsize 500 maxblocks            1655.0     246488.8   1489.4
File Copy 4096 bufsize 8000 maxblocks          5800.0    1618077.0   2789.8
Pipe Throughput                               12440.0    1298128.5   1043.5
Pipe-based Context Switching                   4000.0     218737.5    546.8
Process Creation                                126.0      15710.1   1246.8
Shell Scripts (1 concurrent)                     42.4      10794.3   2545.8
Shell Scripts (8 concurrent)                      6.0       1405.5   2342.5
System Call Overhead                          15000.0    1217286.8    811.5
                                                                   ========
System Benchmarks Index Score                                        1435.0



======= Script description and score comparison completed! =======

由于虚拟机仅配置了单核 CPU,因此这里只有 1 parallel 单线程测试,并没有上面服务器中的多线程测试。我们可以从两份结果对比得出,由于不同世代的 CPU 技术差异,这里的 I5-4570 的单核表现与 XEON-E5507相比几乎是性能翻倍。

评估

以上的测试给出的分数,我们可以作为评估的依据,但实际决策中,还需要考虑其他的情况。如服务器的安放、稳定性以及一起其他的功能,比如 Dell 的服务器支持 iDrac 远程控制,可以通过网络控制服务器开关、重启以及监控设备运行情况等。如果单从运算性能看,可能会组装一台 i5 的电脑性能更好,但如遇停电、或者死机的情况,没有远程控制维护服务器,那么就需要考虑其他的处理方案。

小结

本篇文章介绍了如何安装及使用 UnixBench,以及简单介绍了如何以一种比较低成本的方式来评估设备情况,希望能对大家有所帮助。

参考资料

《基于Linux系统的性能测试》
《Linux性能测试工具-UnixBench–安装以及结果分析》

2011-01-07 14:35:05 cm333666 阅读数 27

UnixBench是一款不错的Linux下的VPS性能测试软件,现在说一下具体用法。

# wget  http://www.CTOHome.com/linux-vps-pack/unixbench.sh;sh ./unixbench.sh;816/

 

其实下载完,就会自动安装运行的

这儿演示,再执行一遍:

# chmod 777 unixbench.sh

# ./unixbench.sh

--2011-01-07 14:36:03--  http://www.ctohome.com/linux-vps-pack/unixbench-5.1.2.tar.gz
正在解析主机 www.ctohome.com... 67.220.216.187
Connecting to www.ctohome.com|67.220.216.187|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:139571 (136K) [application/octet-stream]
Saving to: `unixbench-5.1.2.tar.gz.1'

100%[===================================================================================>] 139,571      123K/s   in 1.1s   

2011-01-07 14:36:04 (123 KB/s) - `unixbench-5.1.2.tar.gz.1' saved [139571/139571]

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirrors.163.com
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Setting up Install Process
Package gcc-4.1.2-48.el5.x86_64 already installed and latest version
No package gcc-c available.
Package autoconf-2.59-12.noarch already installed and latest version
Package gcc-c++-4.1.2-48.el5.x86_64 already installed and latest version
Package time-1.7-27.2.2.x86_64 already installed and latest version
Nothing to do
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make all
make[1]: Entering directory `/backup/www.ctohome.com/unixbench-5.1.2'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/backup/www.ctohome.com/unixbench-5.1.2'
sh: 3dinfo: command not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.2                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   December 22, 2007                  johantheghost at yahoo period com

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: localhost: GNU/Linux
   OS: GNU/Linux -- 2.6.18-164.el5 -- #1 SMP Thu Sep 3 03:28:30 EDT 2009
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz (3990.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   CPU 1: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz (3990.2 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   10:47:28 up  1:06,  1 user,  load average: 1.24, 0.37, 0.12; runlevel 5

------------------------------------------------------------------------
Benchmark Run: 浜? 1鏈?07 2011 10:47:28 - 11:15:21
2 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       11429612.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2248.4 MWIPS (9.9 s, 7 samples)
Execl Throughput                               3345.7 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        454418.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          134428.8 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1082446.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                              843689.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 100694.8 lps   (10.0 s, 7 samples)
Process Creation                               8972.9 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5917.3 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1280.5 lpm   (60.0 s, 2 samples)
System Call Overhead                         734308.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   11429612.6    979.4
Double-Precision Whetstone                       55.0       2248.4    408.8
Execl Throughput                                 43.0       3345.7    778.1
File Copy 1024 bufsize 2000 maxblocks          3960.0     454418.9   1147.5
File Copy 256 bufsize 500 maxblocks            1655.0     134428.8    812.3
File Copy 4096 bufsize 8000 maxblocks          5800.0    1082446.3   1866.3
Pipe Throughput                               12440.0     843689.5    678.2
Pipe-based Context Switching                   4000.0     100694.8    251.7
Process Creation                                126.0       8972.9    712.1
Shell Scripts (1 concurrent)                     42.4       5917.3   1395.6
Shell Scripts (8 concurrent)                      6.0       1280.5   2134.2
System Call Overhead                          15000.0     734308.6    489.5
                                                                   ========
System Benchmarks Index Score                                         822.7

------------------------------------------------------------------------
Benchmark Run: 浜? 1鏈?07 2011 11:15:21 - 11:43:12
2 CPUs in system; running 2 parallel copies of tests

Dhrystone 2 using register variables       22911474.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4508.2 MWIPS (9.9 s, 7 samples)
Execl Throughput                               6876.9 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        190007.7 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           54173.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        501719.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1692313.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 527157.8 lps   (10.0 s, 7 samples)
Process Creation                              22121.0 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   9119.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   1355.3 lpm   (60.1 s, 2 samples)
System Call Overhead                        1404391.5 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   22911474.0   1963.3
Double-Precision Whetstone                       55.0       4508.2    819.7
Execl Throughput                                 43.0       6876.9   1599.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     190007.7    479.8
File Copy 256 bufsize 500 maxblocks            1655.0      54173.5    327.3
File Copy 4096 bufsize 8000 maxblocks          5800.0     501719.8    865.0
Pipe Throughput                               12440.0    1692313.4   1360.4
Pipe-based Context Switching                   4000.0     527157.8   1317.9
Process Creation                                126.0      22121.0   1755.6
Shell Scripts (1 concurrent)                     42.4       9119.2   2150.8
Shell Scripts (8 concurrent)                      6.0       1355.3   2258.8
System Call Overhead                          15000.0    1404391.5    936.3
                                                                   ========
System Benchmarks Index Score                                        1143.6

 


======= Script. description and score comparison: =======

http://www.ctohome.com/FuWuQi/c5/172.html


You have mail in /var/spool/mail/root

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8183550/viewspace-683435/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8183550/viewspace-683435/

2015-04-28 10:58:00 badiaoxi3712 阅读数 62

一.准备工作

1.首先使用root用户登陆.
2.运行Unixbeanch需要GCC的支持,在安装Unixbeanch之前,需要先安装GCC,在Debian中,直接执行如下命令:


复制代码
代码如下:

apg-get install gcc

二.下载Unixbeanch

去Unixbeanch的GoogleCode页面上下载最新版本即可,在本例中,我们下载后缀名为tar.gz的最新版本.

下载页面地址:

http://code.google.com/p/byte-unixbench/downloads/list

进入页面后,点击一个版本的链接,即可进入下载界面,复制出下载地址,执行wget命令下载即可,示例如下(后文以unixbench-5.1.2.tar.gz为例):


复制代码
代码如下:

wget http://byte-unixbench.googlecode.com/files/unixbench-5.1.2.tar.gz

下载完成后,通过tar命令解压:


复制代码
代码如下:

tar zxvf unixbench-5.1.2.tar.gz

三.运行Unixbeanch

解压完成后,在当前目录下得到unixbench-5.1.2目录.进入它.


复制代码
代码如下:

cd unixbench-5.1.2

接着运行:


复制代码
代码如下:

./Run

如不出意外,即可看到Unixbench的启动画面和相关信息,接下来等它完成即可.

四.意外情况

如执行./Run命令后,出现如下错误:


复制代码
代码如下:

gcc -o ./pgms/ubgears -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/ubgears.c -lGL -lXext -lX11
./src/ubgears.c:51:19: error: GL/gl.h: No such file or directory
./src/ubgears.c:52:20: error: GL/glx.h: No such file or directory
./src/ubgears.c:129: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'view_rotx'
...省略
./src/ubgears.c:632: error: 'GL_RENDERER' undeclared (first use in this function)
./src/ubgears.c:633: error: 'GL_VERSION' undeclared (first use in this function)
./src/ubgears.c:634: error: 'GL_VENDOR' undeclared (first use in this function)
./src/ubgears.c:635: error: 'GL_EXTENSIONS' undeclared (first use in this function)
./src/ubgears.c:643: warning: implicit declaration of function 'glXDestroyContext'
make: *** [pgms/ubgears] Error 1</p> <p>**********************************************
Run: "make all" failed; aborting

基本上是少安装了两个图形库导致的,在Debian下,执行如下命令安装完即可:


复制代码
代码如下:

apt-get install libxext-dev libgl1-mesa-dev

另外,如果使用centos的童鞋不幸入此,可执行如下命令解决此问题:


复制代码
代码如下:

yum install -y SDL-devel mesa-libGL-devel


安装unixbench提示: Can't locate Time/HiRes.pm解决方法


若安装unixbench工具时提示以下错误:

Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./Run line 6. BEGIN failed--compilation aborted at ./Run line 6.

可能系统缺少“HiRes.pm”组件,或程序路径问题。

解决方法如下:


“.pm”实际上是Perl的包,只需安装对应的软件包


代码如下:

yum install -y perl-Time-HiRes

安装成功即可。


转载于:https://www.cnblogs.com/BuildingHome/p/4540497.html

2018-06-14 17:14:00 weixin_30727835 阅读数 17

 

 

1,下载  wget http://soft.laozuo.org/scripts/UnixBench5.1.3.tgz

[root@VM_0_15_centos test]# 
[root@VM_0_15_centos test]# wget http://soft.laozuo.org/scripts/UnixBench5.1.3.tgz
--2018-06-14 16:19:15--  http://soft.laozuo.org/scripts/UnixBench5.1.3.tgz
Resolving soft.laozuo.org (soft.laozuo.org)... 104.236.158.75
Connecting to soft.laozuo.org (soft.laozuo.org)|104.236.158.75|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://soft.laozuo.org/scripts/UnixBench5.1.3.tgz [following]
--2018-06-14 16:19:16--  https://soft.laozuo.org/scripts/UnixBench5.1.3.tgz
Connecting to soft.laozuo.org (soft.laozuo.org)|104.236.158.75|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 143259 (140K) [application/octet-stream]
Saving to: ‘UnixBench5.1.3.tgz’

100%[===================================================================================================================>] 143,259      178KB/s   in 0.8s   

2018-06-14 16:19:17 (178 KB/s) - ‘UnixBench5.1.3.tgz’ saved [143259/143259]

[root@VM_0_15_centos tmp]# chmod 777 UnixBench5.1.3.tgz #解压
[root@VM_0_15_centos tmp]# ll
total 168
-rw-r--r-- 1 root root 504 Jun 5 15:18 cvm_init.log
-rw-r--r-- 1 root root 109 Jun 5 15:18 gpu_init.log
-rw-r--r-- 1 root root 140 Jun 5 15:18 net_affinity.log
-rw-r--r-- 1 root root 26 Jun 5 15:18 nv_gpu_conf.log
-rw-r--r-- 1 root root 154 Jun 5 15:18 setRps.log
drwx------ 3 root root 4096 Jun 5 17:13 systemd-private-f6d6c8ba83254f30889c0ee298bc76ca-ntpd.service-Eej4BN
-rwxrwxrwx 1 root root 143259 Jun 30 2017 UnixBench5.1.3.tgz
-rw------- 1 root root 2113 Jun 14 14:59 yum_save_tx.2018-06-14.14-59.1IElgP.yumtx
[root@VM_0_15_centos tmp]# tar -zxvf UnixBench5.1.3.tgz
UnixBench/
UnixBench/README
UnixBench/src/
UnixBench/src/looper.c
UnixBench/src/time-polling.c

………………

………………

UnixBench/Makefile
UnixBench/USAGE

 

[root@VM_0_15_centos tmp]# ll
total 172
-rw-r--r-- 1 root root 504 Jun 5 15:18 cvm_init.log
-rw-r--r-- 1 root root 109 Jun 5 15:18 gpu_init.log
-rw-r--r-- 1 root root 140 Jun 5 15:18 net_affinity.log
-rw-r--r-- 1 root root 26 Jun 5 15:18 nv_gpu_conf.log
-rw-r--r-- 1 root root 154 Jun 5 15:18 setRps.log
drwx------ 3 root root 4096 Jun 5 17:13 systemd-private-f6d6c8ba83254f30889c0ee298bc76ca-ntpd.service-Eej4BN
drwxr-xr-x 6 root root 4096 Jan 18 2011 UnixBench
-rwxrwxrwx 1 root root 143259 Jun 30 2017 UnixBench5.1.3.tgz
-rw------- 1 root root 2113 Jun 14 14:59 yum_save_tx.2018-06-14.14-59.1IElgP.yumtx
[root@VM_0_15_centos tmp]# cd UnixBench/
[root@VM_0_15_centos UnixBench]# ll
total 136
-rw-r--r-- 1 root root 9578 Jan 18 2011 Makefile
drwxr-xr-x 2 root root 4096 Jan 18 2011 pgms
-rw-r--r-- 1 root root 17753 Jan 18 2011 README
drwxr-xr-x 2 root root 4096 Jan 18 2011 results
-rwxr-xr-x 1 root root 57798 Jan 18 2011 Run
drwxr-xr-x 2 root root 4096 Jan 18 2011 src
drwxr-xr-x 2 root root 4096 Jan 18 2011 tmpdir
-rw-r--r-- 1 root root 17890 Jan 18 2011 USAGE
-rw-r--r-- 1 root root 4622 Jan 18 2011 WRITING_tmpS

 

 

2,修改配置文件,将Makefile中的   GRAPHIC_TESTS = defined 整行注释掉,这样可以不进行图形界面的测试

[root@VM_0_15_centos UnixBench]# vi Makefile 

 

3,make

[root@VM_0_15_centos UnixBench]# make
Checking distribution of files
./pgms  exists
./src  exists
./tmpdir  exists
./results  exists
gcc -o ./pgms/arithoh -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Darithoh ./src/arith.c
gcc -o ./pgms/register -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum='register int' ./src/arith.c
gcc -o ./pgms/short -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=short ./src/arith.c
gcc -o ./pgms/int -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=int ./src/arith.c
gcc -o ./pgms/long -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=long ./src/arith.c
gcc -o ./pgms/float -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=float ./src/arith.c
gcc -o ./pgms/double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -Ddatum=double ./src/arith.c
gcc -o ./pgms/hanoi -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/hanoi.c
gcc -o ./pgms/syscall -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/syscall.c
./src/syscall.c: In function ‘main’:
./src/syscall.c:93:21: warning: null argument where non-null required (argument 2) [-Wnonnull]
                     execl("/bin/true", (char *) 0);
                     ^
gcc -o ./pgms/context1 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/context1.c
gcc -o ./pgms/pipe -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/pipe.c
gcc -o ./pgms/spawn -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/spawn.c
gcc -o ./pgms/execl -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/execl.c
In file included from ./src/execl.c:34:0:
./src/big.c: In function ‘getwork’:
./src/big.c:452:11: warning: variable ‘c’ set but not used [-Wunused-but-set-variable]
     char  c;
           ^
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c
gcc -o ./pgms/dhry2 -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1.o ./src/dhry_2.o
cd ./src; rm -f dhry_1.o dhry_2.o
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_1.c -o dhry_1_reg.o
cd ./src; gcc -c -DTIME -Wall -pedantic -ansi -DREG=register -DHZ= -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall dhry_2.c -o dhry_2_reg.o
gcc -o ./pgms/dhry2reg -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/dhry_1_reg.o ./src/dhry_2_reg.o
cd ./src; rm -f dhry_1_reg.o dhry_2_reg.o
gcc -o ./pgms/looper -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/looper.c
gcc -o ./pgms/fstime -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall ./src/fstime.c
gcc -o ./pgms/whetstone-double -DTIME -Wall -pedantic -ansi -O2 -fomit-frame-pointer -fforce-addr -ffast-math -Wall -DDP -DUNIX -DUNIXBENCH ./src/whets.c -lm
[root@VM_0_15_centos UnixBench]#

 

4,执行测试

[root@VM_0_15_centos UnixBench]# ./Run 
make all
make[1]: Entering directory `/tmp/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./tmpdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory `/tmp/UnixBench'
sh: 3dinfo: command not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com


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

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: VM_0_15_centos: GNU/Linux
   OS: GNU/Linux -- 3.10.0-693.el7.x86_64 -- #1 SMP Tue Aug 22 21:09:27 UTC 2017
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5-26xx v3 (4788.9 bogomips)
          Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   16:23:27 up 9 days,  1:05,  2 users,  load average: 0.21, 0.14, 0.11; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Thu Jun 14 2018 16:23:27 - 16:51:39
1 CPU in system; running 1 parallel copy of tmps

Dhrystone 2 using register variables       27236987.7 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3608.1 MWIPS (9.9 s, 7 samples)
Execl Throughput                               4255.2 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        730865.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          236248.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1524676.7 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1490548.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 319147.8 lps   (10.0 s, 7 samples)
Process Creation                              13927.6 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5121.3 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    672.4 lpm   (60.1 s, 2 samples)
System Call Overhead                        2287267.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   27236987.7   2333.9
Double-Precision Whetstone                       55.0       3608.1    656.0
Execl Throughput                                 43.0       4255.2    989.6
File Copy 1024 bufsize 2000 maxblocks          3960.0     730865.2   1845.6
File Copy 256 bufsize 500 maxblocks            1655.0     236248.9   1427.5
File Copy 4096 bufsize 8000 maxblocks          5800.0    1524676.7   2628.8
Pipe Throughput                               12440.0    1490548.0   1198.2
Pipe-based Context Switching                   4000.0     319147.8    797.9
Process Creation                                126.0      13927.6   1105.4
Shell Scripts (1 concurrent)                     42.4       5121.3   1207.8
Shell Scripts (8 concurrent)                      6.0        672.4   1120.6
System Call Overhead                          15000.0    2287267.9   1524.8
                                                                   ========
System Benchmarks Index Score                                        1298.1

[root@VM_0_15_centos UnixBench]# 

 

 

 

 

 

结果分析:

 

转载于:https://www.cnblogs.com/BH8ANK/p/9183980.html

jmeter使用入门

阅读数 4

没有更多推荐了,返回首页