1 <!--#set var="TITLE" value="NFS loadfiles" -->
2 <!--#include virtual="header.html" -->
4 <H1 align="center">iSCSI support</h1>
6 DBENCH has a tiny iSCSI initiator built in, which allow it to log in to a iSCSI target and generate i/o.
9 The iSCSI backend to DBENCH is activated with '-B iscsi'.
12 <H2>iSCSI specific arguments</h2>
13 <H3>--iscsi-target=<iqn-name></h3>
15 This argument specifies the iqn name of the target to connect to.
17 <H3>--iscsi-portal=<ip address></h3>
19 This is the ip address of the target.
21 <H3>--iscsi-port=<port></h3>
23 This is the port of the target. This defaults to 3260 if not specified.
25 <H3>--iscsi-lun=<lun></h3>
27 This specifies which LUN to perform I/O to.
31 <H2>iSCSI loadfiles</h2>
33 The iSCSI loadfiles supports a small subset of all SCSI commands.
34 The current list of supported commands, their flags and their use can always
35 be found in the file <a href="/loadfiles/iscsi.txt">./loadfiles/iscsi.txt</a>
39 <H3>Example loadfile 1</h3>
41 # timestamp TESTUNITREADY sense
42 0.000 TESTUNITREADY 0x00
45 # timestamp READ10 lba #xferlen rd grp sense
46 # if lba is * this means to use a random lba
49 # 3 bits 0xe0 : RDPROTECT
53 0.000 READ10 0 2 0 0 0x00
54 0.000 READ10 2 2 0 0 0x00
55 0.000 READ10 4 2 0 0 0x00
56 0.000 READ10 6 2 0 0 0x00
57 0.000 READ10 * 2 0 0 0x00
59 # timestamp READCAPACITY10 lba pmi(0/1) sense
60 0.000 READCAPACITY10 0 0 0x00
63 <H3>Example loadfile 2</h3>
65 This simple loadfile just reads the same 4kb from the target over and over.
66 This will result in serving data straight out of page-cache and can be used
67 to test how fast the target can push data from page-cache out across the network.
70 0.000 READ10 0 4 0 0 0x00
73 <H3>Example loadfile 3</h3>
75 This simple loadfile reads random 4kb from the target over and over.
76 For a large LUN that can not all fit in page-cache, this would almost always generate a cache-miss and can test how fast the target can read data off stable-storeage and push it across the network. This can also measure how many threads of i/o the target has when accessing stable-storage.
79 0.000 READ10 * 4 0 0 0x00
82 <H3>Example loadfile 3</h3>
84 Throughput test. Read the same 1Mbyte from page-cache over and over. To measure how much data the target can push to the network under the most favorable conditions.
87 0.000 READ10 0 2048 0 0 0x00
95 Run DBENCH with 1 thread of execution and run the loadfile only once. Terminate the run once the end of the loadfile has been reached.
98 dbench -B iscsi --loadfile=iscsi.txt --iscsi-lun=1 --iscsi-portal=10.0.0.71 --iscsi-port=3260 --iscsi-target=iqn.2007-03:mptest --warmup=0 --run-once 1
103 Run DBENCH for 10 seconds with 5 separate threads of execution. When the end of the loadfile is reached, go back to the start and execute it again until time runs out.
106 dbench -B iscsi --loadfile=iscsi.txt --iscsi-lun=1 --iscsi-portal=10.0.0.71 --iscsi-port=3260 --iscsi-target=iqn.2007-03:mptest --warmup=0 --timelimit=10 5
109 <H2>Example output</h2>
111 Running for 5 seconds with load 'iscsi.txt' and minimum warmup 0 secs
112 0 of 10 processes prepared for launch 0 sec
113 10 of 10 processes prepared for launch 0 sec
115 0 2 0.00 MB/sec warmup 1 sec latency 990.887 ms
116 0 2 0.00 MB/sec warmup 2 sec latency 1990.978 ms
117 1 2 1.75 MB/sec warmup 3 sec latency 2991.106 ms
118 2 2 2.62 MB/sec warmup 4 sec latency 3991.251 ms
119 5 3 6.29 MB/sec warmup 5 sec latency 4991.359 ms
120 7 4 6.99 MB/sec warmup 6 sec latency 5991.386 ms
121 8 5 7.49 MB/sec warmup 7 sec latency 6991.471 ms
122 9 5 7.86 MB/sec warmup 8 sec latency 7991.582 ms
123 9 5 6.99 MB/sec warmup 9 sec latency 8991.672 ms
129 Operation Count AvgLat MaxLat
130 --------------------------------------------------
131 READ10 25 4495.180 9349.097
135 <!--#include virtual="footer.html" -->