sysbench的安装与简单使用
安装 简单 使用 SysBench
2023-09-27 14:24:17 时间
1. 下载sysbench的文件
https://codeload.github.com/akopytov/sysbench/zip/1.0.15
2. 放进linux机器以及进行解压缩
unzip
3.生成configure 文件
./autogen.sh
4. 安装
./configure --prefix=/usr/local/sysbench --without-mysql --不适用mysql
make
make install
ln /usr/local/sysbench/bin/sysbench /usr/bin/sysbench
5. 进行检查测试
sysbench --test=fileio --file-num=10 --file-total-size=1G --file-block-size=4096 --file-test-mode=seqwr --file-io-mode=sync prepare sysbench --test=fileio --file-num=10 --file-total-size=1G --file-block-size=4096 --file-test-mode=seqwr --file-io-mode=sync run sysbench --test=fileio --file-num=10 --file-total-size=1G --file-block-size=4096 --file-test-mode=seqwr --file-io-mode=sync cleanup
6. 对有无快照的虚拟机 进行 随机读写测试, 命令
sysbench --test=fileio --num-threads=16 --file-total-size=3G --file-test-mode=rndrw prepare sysbench --test=fileio --num-threads=16 --file-total-size=3G --file-test-mode=rndrw run sysbench --test=fileio --num-threads=16 --file-total-size=3G --file-test-mode=rndrw cleanup
三个快照的结果
File operations: reads/s: 114.27 writes/s: 75.92 fsyncs/s: 430.55 Throughput: read, MiB/s: 1.79 written, MiB/s: 1.19 General statistics: total time: 10.4033s total number of events: 4411 Latency (ms): min: 0.00 avg: 36.51 max: 5962.82 95th percentile: 87.56 sum: 161035.85 Threads fairness: events (avg/stddev): 275.6875/129.27 execution time (avg/stddev): 10.0647/0.15
一个快照的结果
File operations: reads/s: 146.95 writes/s: 97.80 fsyncs/s: 508.59 Throughput: read, MiB/s: 2.30 written, MiB/s: 1.53 General statistics: total time: 10.2125s total number of events: 5647 Latency (ms): min: 0.00 avg: 28.01 max: 4115.60 95th percentile: 71.83 sum: 158148.92 Threads fairness: events (avg/stddev): 352.9375/166.15 execution time (avg/stddev): 9.8843/0.15
相关文章
- 机器学习笔记一-----------------Prophet(时间序列模型)的安装及简单例程
- 【转】NoSQL初探之人人都爱Redis:(1)Redis简介与简单安装
- jenkins简单安装及配置(Windows环境)
- windows下安装redis
- Fedora 19的U盘安装 以及简单配置
- Redis7.0 编译安装以及简单创建Cluster测试服务器的方法
- VM PowerCli的简单安装和使用学习
- Vagrant 安装Oracle19c RAC测试环境的简单学习
- Windows下 OpenSSL的安装与简单使用
- VSCODE安装以及使用Python运行调试代码的简单记录
- python pip包安装以及几个包的简单用法
- Windows 安装 docker 以及1709的简单使用
- Docker 安装私有镜像库的简单使用
- rpm安装软件(需管理员权限)
- golang微服务实践:分布式链路追踪系统-jaeger安装与简单使用
- Hybris安装和各个Extention简单介绍.
- Oracle 12c Windows安装、介绍及简单使用(图文)
- CentOS 7.0 使用 yum 安装 MariaDB 与 MariaDB 的简单配置
- 聊一聊git和github(git安装使用和简单介绍,附加视频教程)
- IPython和IPython Notebook的安装和简单应用
- Python CentOS7上安装pip3的推荐的简单方法
- 【短视频运营】短视频剪辑 ① ( 下载软件 | 安装软件 | 简单使用 )
- maven安装jar包到本地仓库