目录

arm版银河麒麟桌面版v10下stressapptest测试

目录

arm版银河麒麟桌面版v10下stressapptest测试

arm版银河麒麟桌面版v10下stressapptest测试

Stressful Application Test(或 stressapptest,其 unix 名称)是一种内存接口测试。 它试图最大化从处理器和 I/O 到内存的随机流量,目的是创建一个真实的高负载情况,以便测试计算机中的现有硬件设备。它已经在 Google 使用了一段时间,现在它可以在 apache 2.0 许可下使用。

在编译安装stressapptest时,报错,gcc版本太低。

银河麒麟v10桌面版自带的gcc版本为9.3.0。需要将gcc版本升级。

按 中步骤,将gcc版本升级到10.3,即可编译安装stressapptest。

stressapptest下载配置、编译和测试步骤如下:

1 下载地址:https://github.com/stressapptest/stressapptest.git

git clone https://github.com/stressapptest/stressapptest.git

#unzip stressapptest-master.zip #仅在使用下载安装包后安装的情况下,使用解压缩解压缩下载包。git clone时不用

cd stressapptest

2 配置及编译安装
./configure --target=arm-linux --host=arm-linux --prefix=安装路径 CC=交叉编译工具(xxx-gcc)
#  ./configure即可,不用带参数。

make

make install

3 执行测试

./stressapptest -s 20 -M 256 -m 8 -W  # Test 256MB, running 8 "warm copy" threads. Exit after 20 seconds.

-M mbytes : megabytes of ram to test (auto-detect all memory available)

-s seconds : number of seconds to run (20)

-m threads : number of memory copy threads to run (auto-detect to number of CPUs)

-W : Use more CPU-stressful memory copy (false)

-n ipaddr : add a network thread connecting to system at ‘ipaddr’. (none)

–listen : run a thread to listen for and respond to network threads. (0)

-f filename : add a disk thread with tempfile ‘filename’ (none)

-F : don’t result check each transaction, use libc memcpy instead. (false)

参考文档