-<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>dbench</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="dbench.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>dbench — a benchmark tool</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">dbench [OPTIONS] <num-procs></code> </p></div><div class="cmdsynopsis"><p><code class="command">dbench</code> [-B --backend=<dbench backend>] [-c --loadfile=<filename>] [-D --directory=<string>] [-F --fsync] [-R --target-rate=<double>] [-s --sync] [-S --sync-dir] [-t --timelimit=<integer>] [-T --tcp-options=<string>] [--run-once] [--fake-io] [--scsi=<scsi-device>] [--server=<hostname>] [--export=<string>] [--protocol=<string>] [--clients-per-process=<integer>] [--trunc-io=<integer>] [--stat-check] [--skip-cleanup] [--per-client-results] [--iscsi-portal=<ip-address>] [--iscsi-target=<iqn name>] [--iscsi-lun=<LUN>] [-? --help] [--usage]</p></div></div><div class="refsect1" lang="en"><a name="id2479666"></a><h2>DESCRIPTION</h2><p>
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>dbench</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="dbench.1"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>dbench — a benchmark tool</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="command">dbench [OPTIONS] <num-procs></code> </p></div><div class="cmdsynopsis"><p><code class="command">dbench</code> [-B --backend=<dbench backend>] [-c --loadfile=<filename>] [-D --directory=<string>] [-F --fsync] [-R --target-rate=<double>] [-s --sync] [-S --sync-dir] [-t --timelimit=<integer>] [-T --tcp-options=<string>] [--run-once] [--fake-io] [--scsi=<scsi-device>] [--server=<hostname>] [--export=<string>] [--protocol=<string>] [--clients-per-process=<integer>] [--trunc-io=<integer>] [--stat-check] [--skip-cleanup] [--per-client-results] [--iscsi-portal=<ip-address>] [--iscsi-port=<port>] [--iscsi-target=<iqn name>] [--iscsi-lun=<LUN>] [-? --help] [--usage]</p></div></div><div class="refsect1" lang="en"><a name="id2479674"></a><h2>DESCRIPTION</h2><p>
dbench is a utility to benchmark a system based on client workload
profiles.
- </p></div><div class="refsect1" lang="en"><a name="id2479677"></a><h2>STANDARD OPTIONS</h2><div class="refsect2" lang="en"><a name="id2479683"></a><h3>-B --backend=<dbench backend></h3><p>
+ </p></div><div class="refsect1" lang="en"><a name="id2479685"></a><h2>STANDARD OPTIONS</h2><div class="refsect2" lang="en"><a name="id2479691"></a><h3>-B --backend=<dbench backend></h3><p>
The backend type specifies which kind of commandset and what kind of
tests that dbench will perform. The backend type specifies which
kind of loadfile that can be used.
</p><p>
There are currently five types of backends : "fileio", "sockio", "nfs", "scsi"and "iscsi". The default is "fileio" which uses a CIFS style loadfile.
- </p></div><div class="refsect2" lang="en"><a name="id2479701"></a><h3>-c --loadfile=<filename></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479709"></a><h3>-c --loadfile=<filename></h3><p>
This specifies the name of the loadfile to use. The loadfile describes
the sequence and timing of operations that dbench will issue.
- </p></div><div class="refsect2" lang="en"><a name="id2479713"></a><h3>-D --directory=<string></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479721"></a><h3>-D --directory=<string></h3><p>
This controls which directory that dbench will use as the root for when
running the loadfile. This defaults to "." which refers to the current
directory for the "fileio" and "sockio" backends and the root of the
export for the "nfs" backend.
- </p></div><div class="refsect2" lang="en"><a name="id2479727"></a><h3>-R --target-rate=<double></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479735"></a><h3>-R --target-rate=<double></h3><p>
By default dbench will try to replay the loadfile and keep the same
rate as the original application the loadfile was captured from.
Using this option it is possible to run the load file faster/slower
</p><p>
By setting this limit to something very large, such as 999999.99 you can
effectively tell dbench to "run this loadfile as fast as possible".
- </p></div><div class="refsect2" lang="en"><a name="id2479757"></a><h3>-t --timelimit=<integer></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479765"></a><h3>-t --timelimit=<integer></h3><p>
How long to run the test for.
- </p></div><div class="refsect2" lang="en"><a name="id2479766"></a><h3>--run-once</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479774"></a><h3>--run-once</h3><p>
Only run the loadfile once and stop when the end of the loadfile is
reached.
</p><p>
The default for dbench is to wrap the loadfile when the end is
reached and continue running the loadfile over and over until the
timelimit is reached.
- </p></div><div class="refsect2" lang="en"><a name="id2479783"></a><h3>--clients-per-process=<integer></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479791"></a><h3>--clients-per-process=<integer></h3><p>
By default dbench will fork one child process for each client emulated.
Using this option dbench will run multiple emulated clients inside
each process.
This is useful for testing how performance differs between the case
of n processes with one thread of I/O each and one process with n threads
of I/O.
- </p></div><div class="refsect2" lang="en"><a name="id2479801"></a><h3>--skip-cleanup</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479810"></a><h3>--skip-cleanup</h3><p>
Do not cleanup and delete all temporary files in the clients work
directory when the test ends.
- </p></div><div class="refsect2" lang="en"><a name="id2479812"></a><h3>--per-client-results</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2479820"></a><h3>--per-client-results</h3><p>
When the test is finished print a latency report for each inidvidual
client in addition to the aggregated report over all clients.
- </p></div></div><div class="refsect1" lang="en"><a name="id2479825"></a><h2>FILEIO OPTIONS</h2><div class="refsect2" lang="en"><a name="id2479830"></a><h3>-F --fsync</h3><p>
+ </p></div></div><div class="refsect1" lang="en"><a name="id2479833"></a><h2>FILEIO OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528486"></a><h3>-F --fsync</h3><p>
This option only apply to the "fileio" backend.
</p><p>
This will make dbench perform a fsync() to the file after each write
operation.
- </p></div><div class="refsect2" lang="en"><a name="id2528493"></a><h3>-s --sync-open</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528500"></a><h3>-s --sync-open</h3><p>
This option only apply to the "fileio" backend.
</p><p>
This makes dbench override the loadfile and use O_SYNC for all
file open operations.
- </p></div><div class="refsect2" lang="en"><a name="id2528508"></a><h3>-S --sync-dir</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528516"></a><h3>-S --sync-dir</h3><p>
This option only apply to the "fileio" backend.
</p><p>
Call fsync() on the directory after each "unlink", "rmdir" or "rename"
operation. This emulates how the linux kernel nfs daemon syncs
directories after performing directory modifying operations.
- </p></div><div class="refsect2" lang="en"><a name="id2528525"></a><h3>--fake-io</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528533"></a><h3>--fake-io</h3><p>
This option only apply to the "fileio" backend.
</p><p>
Do not do any file read/write operations at all.
- </p></div><div class="refsect2" lang="en"><a name="id2528540"></a><h3>--stat-check</h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528547"></a><h3>--stat-check</h3><p>
This option only apply to the "fileio" backend.
</p><p>
After each create/mkdir/rmdir/rename operation, immediately try to
is correct. I.e. Verify that immediately after we have created an
object that stat() will succeed and that immediately after we have
deleted an object that stat() will fail.
- </p></div></div><div class="refsect1" lang="en"><a name="id2528560"></a><h2>SOCKIO OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528566"></a><h3>-T --tcp-options=<string></h3><p>
+ </p></div></div><div class="refsect1" lang="en"><a name="id2528568"></a><h2>SOCKIO OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528573"></a><h3>-T --tcp-options=<string></h3><p>
This option only apply to the "sockio" backend.
- </p></div></div><div class="refsect1" lang="en"><a name="id2528577"></a><h2>NFS OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528583"></a><h3>--server=<hostname></h3><p>
+ </p></div></div><div class="refsect1" lang="en"><a name="id2528585"></a><h2>NFS OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528591"></a><h3>--server=<hostname></h3><p>
This option only apply to the "nfs" backend.
</p><p>
This option is mandatory when the "nfs" backend is used.
</p><p>
This specifies the host-name or ip-address of the server to test.
- </p></div><div class="refsect2" lang="en"><a name="id2528602"></a><h3>--export=<string></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528610"></a><h3>--export=<string></h3><p>
This option only apply to the "nfs" backend.
</p><p>
This option is mandatory when the "nfs" backend is used.
</p><p>
This specifies the nfs-export on the server to do i/o to.
- </p></div><div class="refsect2" lang="en"><a name="id2528621"></a><h3>--protocol=<string></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528629"></a><h3>--protocol=<string></h3><p>
This option only apply to the "nfs" backend.
</p><p>
This specifies whether "tcp" or "udp" is to be used. Default is "tcp".
- </p></div><div class="refsect2" lang="en"><a name="id2528636"></a><h3>--trunc-io=<integer></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528644"></a><h3>--trunc-io=<integer></h3><p>
This option only apply to the "nfs" backend.
</p><p>
Some NFS server may have limitations on how large READ/WRITE I/Os they
accept preventing some loadfiles from running. Using this option will
override the length specified in the loadfile and make dbench never
issuing any READ/WRITE operations larger than this.
- </p></div></div><div class="refsect1" lang="en"><a name="id2528656"></a><h2>SCSI OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528662"></a><h3>--scsi=<scsi-device></h3><p>
+ </p></div></div><div class="refsect1" lang="en"><a name="id2528664"></a><h2>SCSI OPTIONS</h2><div class="refsect2" lang="en"><a name="id2528669"></a><h3>--scsi=<scsi-device></h3><p>
This option only apply to the "scsi" backend.
</p><p>
This option is mandatory when the "scsi" backend is used.
</p><p>
This specifies the device node of the scsi-device we want to run the loadfile on. Example: --scsi=/dev/sda
- </p></div></div><div class="refsect1" lang="en"><a name="id2528683"></a><h2>iSCSI OPTIONS</h2><p>
+ </p></div></div><div class="refsect1" lang="en"><a name="id2528691"></a><h2>iSCSI OPTIONS</h2><p>
Dbench contains a primitive iSCSI initiator, allowing it to perform I/O
to some iSCSI targets.
- </p><div class="refsect2" lang="en"><a name="id2528694"></a><h3>--iscsi-portal=<ip-address></h3><p>
+ </p><div class="refsect2" lang="en"><a name="id2528702"></a><h3>--iscsi-portal=<ip-address></h3><p>
This option only apply to the "iscsi" backend.
</p><p>
This option is mandatory when the "iscsi" backend is used.
</p><p>
This specifies the host-name or ip-address of the target to test.
- </p></div><div class="refsect2" lang="en"><a name="id2528714"></a><h3>--iscsi-target=<iqn name></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528721"></a><h3>--iscsi-port=<tcp port></h3><p>
+ This option only apply to the "iscsi" backend.
+ </p><p>
+ This option is optional when the "iscsi" backend is used.
+ If not used the tcp port defaults to 3260.
+ </p><p>
+ This specifies the tcp port to connect to on the target.
+ </p></div><div class="refsect2" lang="en"><a name="id2528742"></a><h3>--iscsi-target=<iqn name></h3><p>
This option only apply to the "iscsi" backend.
</p><p>
This option is mandatory when the "iscsi" backend is used.
</p><p>
This specifies the iscsi iqn name of the target to test.
- </p></div><div class="refsect2" lang="en"><a name="id2528733"></a><h3>--iscsi-lun=<LUN></h3><p>
+ </p></div><div class="refsect2" lang="en"><a name="id2528761"></a><h3>--iscsi-lun=<LUN></h3><p>
This option only apply to the "iscsi" backend.
</p><p>
This option is mandatory when the "iscsi" backend is used.
</p><p>
This specifies the LUN of the target to test.
- </p></div></div><div class="refsect1" lang="en"><a name="id2528753"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
+ </p></div></div><div class="refsect1" lang="en"><a name="id2528781"></a><h2>COPYRIGHT/LICENSE</h2><div class="literallayout"><p><br>
Copyright (C) Andrew Tridgell 2008<br>
Copyright (C) Ronnie Sahlberg 2008<br>
<br>