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”

sysbench_cpu的更多相关文章

随机推荐

  1. 在GNU Linux中怎样得到一个进程当前的流量

    /*********************************************************************  * Author  : Samson  * Date   ...

  2. 更改App.config里的值并保存

    using System; using System.Collections.Generic; using System.Configuration; using System.IO; using S ...

  3. vim入门级使用

    1.刚进入是 command mode 命令行模式 2.i  进入插入 insert  mode 模式 在插入模式下只能 输入内容,如果要删除内容,需要切换到命令行模式,移动光标进行删除. 3.esc ...

  4. android kl 文件的作用【转】

    本文转载自:http://blog.csdn.net/u013308744/article/details/49274069 首先看touchscreen的kl文件 # Copyright (c) 2 ...

  5. lightbox2

    http://lokeshdhakar.com/projects/lightbox2/ 简单的demo <html> <head id="head"> &l ...

  6. Bing Maps进阶系列七:Bing Maps功能导航菜单华丽的变身

    Bing Maps进阶系列七:Bing Maps功能导航菜单华丽的变身 Bing Maps Silverlight Control所提供的功能导航是非常强大的,在设计上对扩展的支持非常好,提供了许多用 ...

  7. unpe13e 学习备忘1

    转其他地方.  http://blog.sina.com.cn/s/blog_a43aba560101a2s5.html 运行书本中的程序.1,首先,下载源码:unpv13e.tar.gz2,然后,编 ...

  8. 描述一下ArrayList和LinkedList各自实现和区别

    ArrayList,LinkedList,Vestor这三个类都实现了java.util.List接口,但它们有各自不同的特性,主要如下: 一.同步性 ArrayList,LinkedList是不同步 ...

  9. codeforces round #416 div2

    A:暴力模拟 #include<bits/stdc++.h> using namespace std; int a, b; int main() { scanf("%d%d&qu ...

  10. E20171006-hm

    trace  vt. 跟踪,追踪; 追溯,探索; 探索; 查找;          vi. 沿着一小径或道路前进; 可以追溯的;            n. 痕迹; 痕迹,踪迹; 微量,极少量; [植 ...