1. 程式人生 > >系統技術非業餘研究 » sysbench(系統性能基準)介紹

系統技術非業餘研究 » sysbench(系統性能基準)介紹

SysBench is a modular, cross-platform and multi-threaded benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load.
Current features allow to test the following system parameters:
* cpu效能
* file I/O performance
* scheduler performance
* mutex的效能
* memory allocation and transfer speed, 支援hugepage
* POSIX threads implementation performance
* database server performance (OLTP benchmark) 支援mysql,pgsql, oracle

從原始碼來看這個專案做的非常的模組化。 sysbench提供了諸如讀取配置, 建立執行緒, 日誌, 計時和模組化框架,支援的測試模式都是通過外掛方式加入到框架去的。

使用者很容易擴充套件相應的模組, 通常模組只需要關注自己要實現的測試功能,其他的事情由框架來做,很大的方便使用者自己編寫特定的測試模組。其他的如多執行緒什麼的都無需自己去考慮。

在資料庫的驅動方面,目前提供了mysql,pgsql, oracle的驅動。在資料庫抽象方面也是模組的,使用者自己也能容易加入自己的資料庫支援。

作為一個輕量級別的bench工具,在系統的系統測量方面,可以瞭解到對系統執行產生很大影響的效能,如記憶體,cpu,磁碟,鎖,執行緒排程,資料庫等方面的資訊,是一個得心應手的工具。

在ubuntu下可以用apt-get install sysbench來安裝,具體的使用參看 man sysbench。

玩的開心!

Post Footer automatically generated by wp-posturl plugin for wordpress.

No related posts.