Pages

Tuesday 19 August 2014

Storage Stress test with VDBENCH

Simulation environment:

1 Storage system (physical storage or software-based storage with protocol of SAN, NAS ...)
1 (or more) testing server.

On server, install vdbench:

Download vdbench : http://www.oracle.com/technetwork/server-storage/vdbench-downloads-1901681.html

This utility require java and csh shell, install it before you can use vdbench.

Stress test template file:

Refer this guide for further testing case (or vdbench home directory for some example): http://www.oracle.com/technetwork/server-storage/vdbench-1901683.pdf

My basic example:

Edit a text file in /home/user/template.vdbench

sd=sd1,lun=/dev/vdb,openflags=o_direct,threads=200
wd=wd1,sd=sd1,xfersize=(1M,70,10M,30),rdpct=70
rd=run1,wd=wd1,iorate=max,elapsed=600,interval=1
With:
sd : storage definition (use any: sd1, sd2 ...sdtest...)
lun=/dev/vdb : i use RAW device (that mounted from storage, create LUN or Volume on Storage system and mount it to testing server. There are many kind of storage if you want to stress, disk, raw device, file system etc.)
threads: maximum number of concurrent outstanding I/O that we want to flush.
wd: workload definition (use any)
xfersize: data transfer size 
(1M,70, 10M, 30): Generate xfersize as a random value between 1 Megabyte and 10 Megabyte with weight for random value is 70%.
rdpct: read percentage (70% is read and 30% is write).
rd: run definition (use name any)
iorate=max: Run an uncontrolled workload. (iorate=100 : Run a workload of 100 I/Os per second)
elapsed: time to run this test (second)
interval: report interval to your screen in second. 

Run command for test:
Change to vdbench directory:
# cd /opt/vdbench

#./vdbench -f /home/user/template.vdbench -o <ouput_directory_for_log>

Watch stressing status on screen.




No comments:

Post a Comment