Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux教程

Sysbench 0.4.12 安裝與效能測試

Sysbench 是模組化、跨平台、多執行緒的效能測試工具,可測試 CPU、磁碟 I/O、排程、記憶體、POSIX 執行緒與資料庫。

安裝

先安裝 MySQL 等相依,解壓後執行 autogen.sh,再 configure、make、make install。若 MySQL 是原始碼安裝,需指定 include 與 lib 路徑。

測試

CPU 可用 --test=cpu;執行緒可用 --test=threads;磁碟可用 --test=fileio;記憶體可用 --test=memory;OLTP 可用 --test=oltp。注意官方參數 mysql-table-engine 才是正確寫法。

Copyright © Linux教程網 All Rights Reserved