记录自己安装基于系统的基准测试工具——Unixbench过程

宰父飞翼
2023-12-01

测试环境:

CPU:Kunpeng 920 8Core
MEM:16G
Storage:200G
OS:openEuler 20.03 (LTS-SP3)

1 服务器资源监控工具——Unixbench

1.1 编译安装——Unixbench

  1. 源码编译安装

​ 下载源码:

wget https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz

​ 解压编译:

tar -zxvf v5.1.3.tar.gz
cd byte-unixbench-5.1.3/UnixBench
make

1.2 验证与运行——Unixbench

  1. 运行
./Run

​ 返回结果:

[root@controller UnixBench]# ./Run
make all
make[1]: Entering directory '/root/byte-unixbench-5.1.3/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory '/root/byte-unixbench-5.1.3/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: controller: GNU/Linux
   OS: GNU/Linux -- 4.19.90-2112.8.0.0131.oe1.aarch64 -- #1 SMP Fri Dec 31 19:53:20 UTC 2021
   Machine: aarch64 (aarch64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   17:00:28 up 6 days,  7:49,  2 users,  load average: 1.12, 1.08, 1.02; runlevel 3

------------------------------------------------------------------------
Benchmark Run: Tue Jan 03 2023 17:00:28 - 17:28:31
0 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       38923013.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     4187.3 MWIPS (9.4 s, 7 samples)
Execl Throughput                               4389.1 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        821366.2 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          236828.2 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2151999.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1232123.8 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 106609.2 lps   (10.0 s, 7 samples)
Process Creation                               8948.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   7072.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                   2953.4 lpm   (60.0 s, 2 samples)
System Call Overhead                         837645.4 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   38923013.6   3335.3
Double-Precision Whetstone                       55.0       4187.3    761.3
Execl Throughput                                 43.0       4389.1   1020.7
File Copy 1024 bufsize 2000 maxblocks          3960.0     821366.2   2074.2
File Copy 256 bufsize 500 maxblocks            1655.0     236828.2   1431.0
File Copy 4096 bufsize 8000 maxblocks          5800.0    2151999.8   3710.3
Pipe Throughput                               12440.0    1232123.8    990.5
Pipe-based Context Switching                   4000.0     106609.2    266.5
Process Creation                                126.0       8948.3    710.2
Shell Scripts (1 concurrent)                     42.4       7072.8   1668.1
Shell Scripts (8 concurrent)                      6.0       2953.4   4922.3
System Call Overhead                          15000.0     837645.4    558.4
                                                                   ========
System Benchmarks Index Score                                        1305.6

​ 输出Html格式报告:

byte-unixbench-5.1.3/UnixBench/results/

1.3 其他——Unixbench

  1. Unixbench源码仓库
https://github.com/kdlucas/byte-unixbench/archive/
 类似资料: