码迷,mamicode.com
首页 > 其他好文 > 详细

sysbench的简单安装

时间:2019-08-25 00:46:53      阅读:66      评论:0      收藏:0      [点我收藏+]

标签:执行   init   generator   ali   pre   rip   ef6   https   initial   

1. 下载

可以到网站上面找 我用到的这个是201908最新的

wget https://src.fedoraproject.org/repo/pkgs/sysbench/sysbench-1.0.17.tar.gz/sha512/95a6bb7ec9b0fb111bf2844e110b8fb51c006fd68b5bac75c1b80e2ed18e839d6f07f79d55fb5adef67b41d00f67bbf659d129d1cb593d4fd118092b15431815/sysbench-1.0.17.tar.gz

2. 解压缩

tar -zxvf sysbench-1.0.17.tar.gz

3. 执行安装

 cd sysbench-1.0.17/

./autogen.sh

./configure --without-mysql

make && make install

4. 简单测试内存读写性能

[root@CentOS76 sysbench-1.0.17]# sysbench --test=memory --memory-block-size=8k --memory-total-size=12G run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
sysbench 1.0.17 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Running memory speed test with the following options:
  block size: 8KiB
  total size: 12288MiB
  operation: write
  scope: global

Initializing worker threads...

Threads started!

Total operations: 1572864 (1022885.10 per second)

12288.00 MiB transferred (7991.29 MiB/sec)


General statistics:
    total time:                          1.5351s
    total number of events:              1572864

Latency (ms):
         min:                                    0.00
         avg:                                    0.00
         max:                                    1.10
         95th percentile:                        0.00
         sum:                                 1250.26

Threads fairness:
    events (avg/stddev):           1572864.0000/0.00
    execution time (avg/stddev):   1.2503/0.00

 

sysbench的简单安装

标签:执行   init   generator   ali   pre   rip   ef6   https   initial   

原文地址:https://www.cnblogs.com/jinanxiaolaohu/p/11406639.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!