CentOS7 – Sysbench

Loading

作業平臺 CentOS 7 的 yum 沒有包含 sysbench 需要透過 git 下載並編譯原始碼.

[root@localhost ~]# git clone https://github.com/akopytov/sysbench
Cloning into 'sysbench'...
remote: Counting objects: 3313, done.
remote: Total 3313 (delta 0), reused 0 (delta 0), pack-reused 3313
Receiving objects: 100% (3313/3313), 2.33 MiB | 441.00 KiB/s, done.
Resolving deltas: 100% (2281/2281), done.
[root@localhost ~]# cd sysbench/
[root@localhost sysbench]# git status
# On branch 0.5
nothing to commit, working directory clean
[root@localhost sysbench]# git config --list
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=https://github.com/akopytov/sysbench
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.0.5.remote=origin
branch.0.5.merge=refs/heads/0.5

編譯 sysbench 時所需要的套件

[root@localhost sysbench]# yum install libtool
[root@localhost sysbench]# yum install mariadb mariadb-server mysql mysql-devel

開始編譯 sysbench GitHub – https://github.com/akopytov/sysbench

[root@localhost sysbench]# ./autogen.sh
[root@localhost sysbench]# ./configure
[root@localhost sysbench]# make
[root@localhost sysbench]# make install

sysbench 提供 File I/O, CPU , Memory , Threads , Mutex , OLTP 的測試,請參考 https://benjr.tw/8715 , OLTP 測試 (prepare , run , cleanup) 詳細說明請參考 https://benjr.tw/95251

沒有解決問題,試試搜尋本站其他內容

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料