Buildroot stress-ng Linux系统压力测试

本文介绍如何使用stress-ng工具对Linux系统进行压力测试。通过具体示例展示了如何针对CPU和矩阵运算进行测试,并提供了运行结果反馈。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/**********************************************************************
 *            Buildroot stress-ng Linux系统压力测试
 * 说明:
 *     之前有使用lmbench对整板进行一些测试,如果相对某一部分专门进行测试,
 * 就可以参考使用stree-ng来进行处理。
 *
 *                                2018-6-25 深圳 宝安西乡 曾剑锋
 *********************************************************************/

一、参考文档:
    1. Stress-ng
        http://kernel.ubuntu.com/~cking/stress-ng/
    2. stress-ng.pdf
        http://kernel.ubuntu.com/~cking/stress-ng/stress-ng.pdf
    3. stress-ng
        https://wiki.ubuntu.com/Kernel/Reference/stress-ng

二、使用示例:
    [buildroot@root ~]#  stress-ng --cpu 0 --tz -t 60
    stress-ng: info:  [9331] dispatching hogs: 2 cpu
    stress-ng: info:  [9331] cache allocate: using built-in defaults as unable to determine cache details
    stress-ng: info:  [9331] cache allocate: default cache size: 2048K
    stress-ng: info:  [9331] successful run completed in 60.05s (1 min, 0.05 secs)
    stress-ng: info:  [9331] cpu:
    stress-ng: info:  [9331]     imx_thermal_zone   57.57 °C
    [buildroot@root ~]#  stress-ng --matrix 1 -t 1m
    stress-ng: info:  [9490] dispatching hogs: 1 matrix
    stress-ng: info:  [9490] cache allocate: using built-in defaults as unable to determine cache details
    stress-ng: info:  [9490] cache allocate: default cache size: 2048K
    stress-ng: info:  [9490] successful run completed in 60.00s (1 min, 0.00 secs)

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值