zoukankan      html  css  js  c++  java
  • 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”

  • 相关阅读:
    如何以nobody用户执行命令?
    记一次全站代理切换----血的教训
    tomcat十大安全优化措施
    paramiko模块使用
    日志分析 第七章 安装grafana
    日志分析 第六章 安装elasticsearch
    日志分析 第五章 安装logstash
    日志分析 第四章 安装filebeat
    IO多路复用及ThreadingTCPServer源码阅读
    socket编程--socket模块介绍
  • 原文地址:https://www.cnblogs.com/muahao/p/6292125.html
Copyright © 2011-2022 走看看