sysbench_cpu

5 core : 25.2848s

[root@jiangyi01.sqa.zmf /home/ahao.mah/ALIOS_QA/tools/sysbench]
#sysbench --num-threads=5 --max-time=100 --test=cpu --cpu-max-prime=50000 run
sysbench 0.5:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 5
Random number generator seed is 0 and will be ignored


Primer numbers limit: 50000

Threads started!


General statistics:
    total time:                          25.2848s
    total number of events:              10000
    total time taken by event execution: 126.3908s
    response time:
         min:                                 12.62ms
         avg:                                 12.64ms
         max:                                 16.26ms
         approx.  95 percentile:              12.64ms

Threads fairness:
    events (avg/stddev):           2000.0000/1.55
    execution time (avg/stddev):   25.2782/0.00

指定5个线程,那么就是会占用5个core

[root@jiangyi01.sqa.zmf /home/ahao.mah]
#pid=`ps axu | grep sysbench | grep -v grep  | awk '{print $2}'`;top -Hp $pid

970272-20170117105056208-481525817.png

970272-20170117105115099-567325042.png

10 core : 13.0198s

970272-20170117105212083-1267698051.png

970272-20170117105229692-1609281203.png

[root@jiangyi01.sqa.zmf /home/ahao.mah/ALIOS_QA/tools/sysbench]
#sysbench --num-threads=10 --max-time=100 --test=cpu --cpu-max-prime=50000 run
sysbench 0.5:  multi-threaded system evaluation benchmark

Running the test with following options:
Number of threads: 10
Random number generator seed is 0 and will be ignored


Primer numbers limit: 50000

Threads started!


General statistics:
    total time:                          13.0198s
    total number of events:              10000
    total time taken by event execution: 130.1298s
    response time:
         min:                                 12.63ms
         avg:                                 13.01ms
         max:                                 20.71ms
         approx.  95 percentile:              17.44ms

Threads fairness:
    events (avg/stddev):           1000.0000/38.30
    execution time (avg/stddev):   13.0130/0.00

--max-requests=指定“total number of events”

970272-20170117105616271-370428097.png

970272-20170117105651427-509427340.png

转载于:https://www.cnblogs.com/muahao/p/6292125.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值