GithubHelp home page GithubHelp logo

sysbench-bin's Introduction

Sysbench

About

This repo contains sysbench binary version (CentoOS 7) along with lua scrips which MariaDB performance team uses for performance testings.

Building sysbench from the source

Commands below applies to the CentOS 7. Sysbench will be linked with MariaDB libraries (not MySQL).

Install operating system support packages:

yum -y install make automake libtool pkgconfig libaio-devel
yum -y install openssl-devel zlib-devel

Setup MariaDB repo (See Amazon Linux below):

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
sudo yum -y install MariaDB-shared MariaDB-devel    # this will also install MariaDB-client MariaDB-common 

For Amazon Linux setup the repo using old way:

sudo tee /etc/yum.repos.d/mariadb.repo<<EOF
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/centos7-amd64/
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF

Clone and build sysbench:

sudo yum install git
mkdir tools 
git clone https://github.com/hgxl64/sysbench-1.x-mariadb
cd sysbench-1.x-mariadb
./autogen.sh
./configure  --with-mysql-includes=/usr/include/mysql   --with-mysql-libs=/usr/lib64/ --disable-shared --enable-static

make 
sudo make install
/usr/local/bin/sysbench --version

Known issues

You might experience 'unsupported encoding' error:

[1024] Generic Error: unsupported encoding 4

Please check all possible locations for my.cnf and check if the character set was set to anything from UTF8. The last resort is to use โ€˜SET NAMES utf8โ€™ as the first statement in the sysbench Lua file.

sysbench-bin's People

Contributors

hgxl64 avatar mariadb-dmitryvolkov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.