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

10 core : 13.0198s

[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”

posted @ 2017-01-17 10:53  苏小北1024  阅读(341)  评论(0编辑  收藏  举报