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版本升级。

银河麒麟v10服务器arm版,qemu+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)

参考文档

linux内存压力测试之stressapptest

https://github.com/stressapptest/stressapptest

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值