summaryrefslogtreecommitdiff
path: root/qemu-img.texi
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-07-10 18:09:18 +0200
committerKevin Wolf <kwolf@redhat.com>2016-06-08 10:21:09 +0200
commitd3199a31c7bc72f6bcecbb3ebcc16940a1721e10 (patch)
treeea8bc6df0b3b2f00e8dd871b02d11fa37b6d6f80 /qemu-img.texi
parentb6495fa8493bb56e51506e39a5e575a4404c1cec (diff)
downloadqemu-d3199a31c7bc72f6bcecbb3ebcc16940a1721e10.tar.gz
qemu-d3199a31c7bc72f6bcecbb3ebcc16940a1721e10.tar.bz2
qemu-d3199a31c7bc72f6bcecbb3ebcc16940a1721e10.zip
qemu-img bench: Make start offset configurable
This patch adds an option the specify the offset of the first request made by qemu-img bench. This allows to benchmark misaligned requests. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-img.texi')
-rw-r--r--qemu-img.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/qemu-img.texi b/qemu-img.texi
index c477fbf1c3..9bffad226b 100644
--- a/qemu-img.texi
+++ b/qemu-img.texi
@@ -131,13 +131,14 @@ Skip the creation of the target volume
Command description:
@table @option
-@item bench [-c @var{count}] [-d @var{depth}] [-f @var{fmt}] [-n] [--pattern=@var{pattern}] [-q] [-s @var{buffer_size}] [-t @var{cache}] [-w] @var{filename}
+@item bench [-c @var{count}] [-d @var{depth}] [-f @var{fmt}] [-n] [-o @var{offset}] [--pattern=@var{pattern}] [-q] [-s @var{buffer_size}] [-t @var{cache}] [-w] @var{filename}
Run a simple sequential I/O benchmark on the specified image. If @code{-w} is
specified, a write test is performed, otherwise a read test is performed.
A total number of @var{count} I/O requests is performed, each @var{buffer_size}
-bytes in size, and with @var{depth} requests in parallel.
+bytes in size, and with @var{depth} requests in parallel. The first request
+starts at the position given by @var{offset}.
If @code{-n} is specified, the native AIO backend is used if possible. On
Linux, this option only works if @code{-t none} or @code{-t directsync} is