opencloudos-aarch64可以使用的vdbench

opencloudos-aarch64可以使用的vdbench

前言

vdbench是一个I/O工作负载生成器,通常用于验证数据完整性和测试存储性能。它可以运行在windows、linux环境,可用于测试文件系统或块设备基准性能。很多大型的测试都是采用这个工具进行测试的,能过模拟很多不同的负载

vdbench采用java编写的,能够比较好的支持跨平台,但是内部引用的库是会挑系统平台的,默认的zip包里面就没有带aarch64的库,需要自己获取源码,然后在aarch64上编译库文件,然后再放到zip包里面,本篇结尾的资源就是提供的这个包

问题现象

安装基本软件

1
yum install java-1.8.0-openjdk

解压

1
unzip vdbench50407.zip -d vdbench50407

执行测试

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[root@172 ~]# ./vdbench50407/vdbench -t


Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Vdbench distribution: vdbench50407 Tue June 05 9:49:29 MDT 2018
For documentation, see 'vdbench.pdf'.

08:17:47.598 Created output directory '/root/output'
08:17:47.653 input argument scanned: '-f/tmp/parmfile'
08:17:47.690 Starting slave: /root/vdbench50407/vdbench SlaveJvm -m localhost -n localhost-10-220930-08.17.47.589 -l localhost-0 -p 5570
08:17:47.716
08:17:47.716 File /root/vdbench50407/linux/aarch64.so does not exist.
08:17:47.716 This may be an OS that a shared library currently
08:17:47.716 is not available for. You may have to do your own compile.
08:17:47.716 t: java.lang.UnsatisfiedLinkError: Can't load library: /root/vdbench50407/linux/aarch64.so
08:17:47.716
08:17:47.716 Loading of shared library /root/vdbench50407/linux/aarch64.so failed.
08:17:47.716 There may be issues related to a cpu type not being
08:17:47.716 acceptable to Vdbench, e.g. MAC PPC vs. X86
08:17:47.716 Contact me at the Oracle Vdbench Forum for support.
08:17:47.716
08:17:48.219
08:17:48.219 Failure loading shared library

可以看到关键的信息

1
Can't load library: /root/vdbench50407/linux/aarch64.so

这个就是缺少的库文件

使用修改好的包

解压

1
[root@172 ~]# unzip vdbench50407-opencloudos-aarch64.zip

执行测试

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[root@172 ~]# ./vdbench50407/vdbench -t


Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Vdbench distribution: vdbench50407 Tue June 05 9:49:29 MDT 2018
For documentation, see 'vdbench.pdf'.

08:19:32.437 input argument scanned: '-f/tmp/parmfile'
08:19:32.475 Starting slave: /root/vdbench50407/vdbench SlaveJvm -m localhost -n localhost-10-220930-08.19.32.370 -l localhost-0 -p 5570
08:19:32.676 All slaves are now connected
08:19:34.003 Starting RD=rd1; I/O rate: 100; elapsed=5; For loops: None

Sep 30, 2022 interval i/o MB/sec bytes read resp read write read write resp queue cpu% cpu%
rate 1024**2 i/o pct time resp resp max max stddev depth sys+u sys
08:19:35.102 1 67.0 0.07 1024 47.76 0.074 0.058 0.088 0.12 0.29 0.048 0.0 17.1 4.7
08:19:36.013 2 110.0 0.11 1024 55.45 0.046 0.037 0.056 0.09 0.15 0.026 0.0 11.5 1.0
08:19:37.011 3 91.0 0.09 1024 47.25 0.069 0.054 0.083 0.11 0.15 0.033 0.0 9.0 1.0
08:19:38.010 4 108.0 0.11 1024 51.85 0.061 0.046 0.077 0.15 0.74 0.072 0.0 7.1 2.0
08:19:39.026 5 90.0 0.09 1024 57.78 0.062 0.051 0.076 0.22 0.30 0.042 0.0 7.1 1.0
08:19:39.058 avg_2-5 99.8 0.10 1024 53.13 0.059 0.046 0.073 0.22 0.74 0.048 0.0 8.6 1.3
08:19:39.849 Vdbench execution completed successfully. Output directory: /root/output

可以看到可以正常运行了

资源地址

vdbench50407-opencloudos-aarch64.zip下载地址:

链接: https://pan.baidu.com/s/1YdPWJnhdl3XTZZIhAX6NIA?pwd=gwm3 提取码: gwm3