暂无图片
暂无图片
2
暂无图片
暂无图片
暂无图片
MySQL_sysbench压测详细使用
2067
14页
17次
2020-09-11
10墨值下载
MySQL
sysbench
详细使用
一、简介
Sysbench
是一种全能测试工具,开源软件。支持
MySQL
、操作系统和硬件的测试。它可
以根据影响数据库服务性能的各种因素来评估系统的性能。
mysql
mysqlslap
sysbench
I/O
CPU
,内,线
mutex
互斥
OLTP
等基测试是最
MySQL
压测具之
一。
二、
sysbench
安装
1
下载
https://dev.mysql.com/downloads/benchmarks.html
2
依赖包安装
环境:
CentOS7.8
MySQL8.0.20
[root@testupdate yum.repos.d]# yum -y install make automake libtool
pkgconfig libaio-devel vim-common
[root@testupdate yum.repos.d]# yum -y install openssl-devel
3
、安装
安装报错:
[root@testupdate sysbench-0.4.12.14]# ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake -c --foreign --add-missing'
./autogen.sh: running `autoconf'
configure.ac:49: error: possibly undefined macro: AC_LIB_PREFIX
If this token and others are legitimate, please use
m4_pattern_allow.
See the Autoconf documentation.
Can't execute autoconf
[root@testupdate sysbench-0.4.12.14]#
解决:注释掉报错的函数
[root@testupdate sysbench-0.4.12.14]# cat configure.ac | grep
AC_LIB_PREFIX
AC_LIB_PREFIX()
[root@testupdate sysbench-0.4.12.14]# vim configure.ac
[root@testupdate sysbench-0.4.12.14]#
再次执行:
[root@testupdate sysbench-0.4.12.14]# ./autogen.sh
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake -c --foreign --add-missing'
./autogen.sh: running `autoconf'
Libtoolized with: libtoolize (GNU libtool) 2.4.2
Automade with: automake (GNU automake) 1.13.4
Configured with: autoconf (GNU Autoconf) 2.69
[root@testupdate sysbench-0.4.12.14]#
配置、编译及安装:
./configure && make && make install
检查:
[root@testupdate sysbench-0.4.12.14]# sysbench --version
sysbench 0.4.12.10
[root@testupdate sysbench-0.4.12.14]#
三、压力测试
第一种:
CPU
cpu
性能测试)
1
、简介
sysbench
cpu
测试是在指定时间内,循环进行素数计算。
测试方法:
of 14
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文档被以下合辑收录

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜