簡(jiǎn)介
IOZone是一個(gè)文件系統(tǒng)的benchmark工具,可以測(cè)試不同的操作系統(tǒng)中文件系統(tǒng)的讀寫性能。
配置流程
1. 配置編譯環(huán)境
安裝 wget 包。
yum install wget -y
2. 獲取源碼
獲取 “iozone3_489” 源碼包
cd /usr/local/src
wget http://www.iozone.org/src/curent/iozone3_489.tar
3. 編譯和安裝
1)解壓軟件包。
tar -xvf iozone3_489.tar
2)進(jìn)入 IOZone的安裝目錄。
cd iozone3_489
3)編譯和安裝 IOZone。
cd src/current
make linux
In -s /usr/local/src/iozone3_489/src/current/iozone/usr/bin/iozone
4. 運(yùn)行和驗(yàn)證
1)執(zhí)行如下命令,查看IOZone版本。
iozone -v
?回顯信息如下,則表示 IOZone安裝成功。
htop 1.0.2 - (C) 2004-2011 Hisham Muhammad
Released under the GNU GPL.
'Iozone' Filesystem Benchmark Program
Version $Revision: 3.489 $
Compiled for 64 bit mode.
Original Author: William Norcott (wnorcott@us.oracle.com)
4 Dunlap Drive
Nashua, NH 03060
Enhancements: Don Capps (capps@iozone.org)
7417 Crenshaw
Plano, TX 75025
Copyright 1991, 1992, 1994, 1998, 1999, 2002 William D. Norcott
License to freely use and distribute this software is hereby granted
by the author, subject to the condition that this copyright notice
remains intact. The author retains the exclusive right to publish
derivative works based on this work, including, but not limited to,
revised versions of this work
Other contributors:
Don Capps (Network Appliance)capps@iozone.org
2)執(zhí)行如下命令,查看IOZone使用情況。
iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls
該命令表示進(jìn)行全面測(cè)試,指定最小的測(cè)試文件為512MB,最大的測(cè)試文件為16GB,測(cè)試read、write和strided read,測(cè)試對(duì)象位于“/mnt”目錄下,測(cè)試輸出生成為xls文件。
參數(shù)說明如下:
-a:表示使用全自動(dòng)模式,生成包括所有測(cè)試操作的報(bào)告。
-n:設(shè)置自動(dòng)模式的最小文件大小,若未指定單位,則表示以KB為單位。
-g:設(shè)置自動(dòng)模式的最大文件大小,若未指定單位,則表示以KB為單位。
-i:用于指定測(cè)試項(xiàng)。
-f:用于指定測(cè)試文件的文件名。
-R:產(chǎn)生Excel到輸出件。
-b:指定輸出到指定文件上。
回顯信息如圖所示,則表示IOzone可以正常使用。
圖1 檢查IOZone使用情況