Quantcast
Channel: Hardware – Benjr.tw
Viewing all articles
Browse latest Browse all 145

Fio (Windows 版本)

$
0
0

什麼是 Fio ,簡單的來說就是測試儲存裝置 (硬碟,SSD…)的測試工具,詳細請先參考 http://benjr.tw/34632

Fio Windows 版本的下載點是 http://www.bluestop.org/fio/
使用方式是文字介面的,使用方式跟 Linux 一樣,透過下指令方式來操作.

解開的 fio 資料夾有 fio.exe 執行擋,還要搭配 examples 資料夾裏的測試參數來使用.我們來看看 iometer_file_access_server.fio 的內容.

# This job file tries to mimic the Intel IOMeter File Server Access Pattern
[global]
description=Emulation of Intel IOmeter File Server Access Pattern

[iometer]
bssplit=512/10:1k/5:2k/5:4k/60:8k/2:16k/4:32k/4:64k/10
rw=randrw
rwmixread=80
direct=1
size=4g
ioengine=libaio
# IOMeter defines the server loads as the following:
# iodepth=1	Linear
# iodepth=4	Very Light
# iodepth=8	Light
# iodepth=64	Moderate
# iodepth=256	Heavy
iodepth=64

裡面很可惜的是沒有提到如何指定 Disk 的參數,我們必須自己寫入 filename=\\.\PhysicalDrive1:\\.\PhysicalDrive2:\\.\PhysicalDrive3 (跑三顆硬碟),通常 \\.\PhysicalDrive0 是系統碟就不跑,\\.\PhysicalDrive1 就是第二顆硬碟以此類推.

可以移除 ioengine=libaio (windows 預設的是另外一個 windowsaio) ,size=4g (我們跑的是 Raw devices,不需要指定大小),還要指定 runtime=time 時間預設單位為秒.

# This job file tries to mimic the Intel IOMeter File Server Access Pattern
[global]
description=Emulation of Intel IOmeter File Server Access Pattern

[iometer]
bssplit=512/10:1k/5:2k/5:4k/60:8k/2:16k/4:32k/4:64k/10
filename=\\.\PhysicalDrive1:\\.\PhysicalDrive2:\\.\PhysicalDrive3
rw=randrw
rwmixread=80
direct=1
runtime=60	
# IOMeter defines the server loads as the following:
# iodepth=1	Linear
# iodepth=4	Very Light
# iodepth=8	Light
# iodepth=64	Moderate
# iodepth=256	Heavy
iodepth=64

接下來在 windows 下開一個 command line (透過開始 然後鍵入 cmd 就會出現 command Line) ,再來到 fio 資料夾執行

C:\User\Benjr\Desktop\fio iometer_file_access_server.fio

其他參數以及執行結果要怎麼看,請參考 http://benjr.tw/34632


Viewing all articles
Browse latest Browse all 145

Trending Articles