Linux系统性能测试工具sysbench

时间:2025-01-28 13:06:50

1、CPU性能测试

sysbench --test=cpu --cpu-max-prime= --num-threads= run

2、内存性能测试

sysbench --test=memory --num-threads= --memory-block-size= --memory-total-size=2G run

3、磁盘I/O性能测试

sysbench --test=fileio --num-threads= --file-rw-ratio= --file-total-size=500M --file-test-mode=rndrw prepare
sysbench --test=fileio --num-threads= --file-rw-ratio= --file-total-size=500M --file-test-mode=rndrw run