stress-ng可以模拟复杂的压力测试,但是兼容stress的参数。
主要参数:
-c N :运行N worker CPU压力测试进程
--cpu-method all :worker从迭代使用30多种不同的压力算法,包括pi, crc16, fft等等
-tastset N:将压力加到指定核心上
-d N:运行N worker HDD write/unlink测试
-i N:运行N worker IO测试
# 示例:运行8 cpu, 4 fork, 5 hdd, 4 io, 50 vm, 10小时 [root@bogon ~]# stress-ng --cpu 8 --cpu-method all --io 4 --vm 50 -d 5 --fork 4 --timeout 36000s stress-ng: info: [16487] dispatching hogs: 8 cpu, 4 fork, 5 hdd, 4 io, 50 vm
评论(0)
暂无评论