搜尋本站文章

2011-09-26

認識「SQLIO 公用程式」所使用的參數;SQLIO Disk Subsystem Benchmark Tool

適用環境:
Windows 2000, Windows 2000 Service Pack 2, Windows 2000 Service Pack 3, Windows 2000 Service Pack 4, Windows NT, Windows Server 2003, Windows XP, Windows XP 64-bit


可以使用以下的方式來查詢「SQLIO 公用程式」可用的參數:

sqlio.exe -?




 認識 「SQLIO 公用程式」常用的參數


參數

描述
-o<#outstanding> 設定 I/O 需求的佇列量,增加佇列的深度,將會導致產生更高的輸入量。一般常用的設定值是:8、32與64。
-L<[S|P][i|]>
捕抓磁碟延遲性的相關資訊。在測試系統上,建議設定抓取記錄磁碟延遲性的資料。latencies from (S=system, P=processor) timer。
-k<R|W> 指定為 R(讀取) 或是 W()寫入作業
-s<secs> 指定要執行測試的的持續時間(秒)。對於一般的初步測試,建議設定在 5 到 10 分鐘,可以獲得具備參考價值的數據。

-b<io size(KB)>
設定 I/O 的「區塊(block size)」或「配置單元(allocation unit)」大小。例如:2、4、8、16、32、64 等。

-F<paramfile>
指定<paramfile> 的外部參數檔案之名稱。
-f<stripe factor>
設定 I/O 區塊的磁區模式,可以設定為:random 或 sequential。




認識 param.txt 的參數

檔案 param.txt 應該要與「SQLIO 公用程式」在同一個目錄內。

語法格式:
<Path to test file>    <Number of threads (per test file)>    <Mask >    <Size of test file in MB>

例如:
c:\testfile.dat 2 0x0 100

(1) <Path to test file>:此為測試檔案的完整路徑與檔案名稱。

(2) <Number of threads (per test file)>:建議依據 CPU 的核心數量來設定,請勿設定過多的執行緒。

(3) <Mask >:設定為 0x0。

(4) <Size of test file in MB> :以理想的情形來來看,建議此測試檔案的使用空間,應該要大於儲存設備(或 RAID 控制器)的「快取(cache)」區塊大小。可以考慮設定為「快取」大小的兩到四倍,來執行相關測試作業。




使用「效能監視器」監控以下的效能計數器來進一步觀察:


計數器 描述
Disk Reads/sec & Disk Writes/sec [Disk Reads/sec] 是磁碟讀取操作的平均時間。[Disk Writes/sec] 是磁碟寫入操作的平均時間。
Average Disk/sec Read & Average Disk/sec Write [Avg. Disk sec/Read] 是讀取磁碟資料的平均時間,以秒為單位。[Avg. Disk sec/Write] 是資料寫入磁碟的平均時間,以秒為單位。
Average Disk Bytes/Read & Average Disk Bytes/Write [Avg. Disk Bytes/Read] 是磁碟上的位元組在讀取過程中的平均轉移速率。[Avg. Disk Bytes/Write] 是磁碟上的位元組在寫入過程中的平均轉移速率。
Average Disk Queue Length
[Avg. Disk Queue Length] 是取樣時間內在所選取的磁碟佇列中的讀寫要求平均數目。
Disk Read Bytes/sec & Disk Write Bytes/sec [Disk Read Bytes/sec] 是磁碟上的位元組在讀取過程中的轉移速率。[Disk Write Bytes/sec] 是磁碟上的位元組在寫入過程中的轉移速率。



IOPS
http://en.wikipedia.org/wiki/IOPS

IOPS:Input/Output Operations Per Second, pronounced i-ops,每秒輸入輸出運轉次數。
IOPS is a common performance measurement used to benchmark computer storage devices like hard disk drives (HDD), solid state drives (SSD), and storage area networks (SAN).

As with any benchmark, IOPS numbers published by storage device manufacturers do not guarantee real-world application performance.



檢視檔案:C:\Program Files (x86)\SQLIO\readme.txt。
--02



檢視檔案:C:\Program Files (x86)\SQLIO\Using SQLIO.rtf。

--03


--04





參考資料

SQLIO Disk Subsystem Benchmark Tool
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=20163

Using Microsoft SQLIO to Baseline LOB Application Disk Performance
http://blogs.technet.com/b/lobapps/archive/2010/09/03/using-microsoft-sqlio-to-baseline-lob-application-disk-performance.aspx

SQLIO Tips and Tricks for LOB Disk Performance Testing
http://blogs.technet.com/b/lobapps/archive/2010/09/27/using-sqlio-to-baseline-performance-tips-and-tricks.aspx

FAT 和 NTFS 的預設叢集大小
http://support.microsoft.com/kb/140365/zh-tw

認識「SQLIO 公用程式」;SQLIO Disk Subsystem Benchmark Tool
http://sharedderrick.blogspot.com/2011/09/sqlio-sqlio-disk-subsystem-benchmark_26.html

影片:認識 SQLIO 公用程式
http://sharedderrick.blogspot.com/2011/10/sqlio.html

沒有留言:

張貼留言