fio.git
18 months agotest: make t0014.fio time_based
Vincent Fu [Wed, 5 Oct 2022 22:34:41 +0000 (18:34 -0400)]
test: make t0014.fio time_based

Make the job time_based to ensure we run for long enough to obtain the
expected log lines. If the device is too fast fio will consume 100G
and write fewer than the expected log lines.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: improve run-fio-tests.py file open method
Vincent Fu [Wed, 5 Oct 2022 20:53:20 +0000 (13:53 -0700)]
test: improve run-fio-tests.py file open method

We have several instances where we try to open a file and fail the test
if accessing the file fails. Encapsulate all of this within a single
method to reduce code duplication.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: fix t/run-fio-tests.py style issues identified by pylint
Vincent Fu [Wed, 5 Oct 2022 20:46:40 +0000 (13:46 -0700)]
test: fix t/run-fio-tests.py style issues identified by pylint

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: add basic tests for trimwrite workloads
Vincent Fu [Wed, 5 Oct 2022 19:14:25 +0000 (12:14 -0700)]
test: add basic tests for trimwrite workloads

We have some tests for randtrimwrite; it's easy enough to reuse the code
to test trimwrite workloads.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: fix style issues in run-fio-tests.py
Vincent Fu [Wed, 5 Oct 2022 19:13:43 +0000 (12:13 -0700)]
test: fix style issues in run-fio-tests.py

Fix some style issues identified by pylint.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: check all offsets touched for randtrimwrite
Vincent Fu [Wed, 5 Oct 2022 00:20:09 +0000 (17:20 -0700)]
test: check all offsets touched for randtrimwrite

Make sure that all of the offsets are touched for the randtrimwrite test
when randommap is enabled.

This exposes a problem where mixed ddir workloads that use a random map
may not have all blocks touched when the different data directions use
different block sizes. Resolve this for now by setting the same block
size for all data directions for the job named bs.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: clean up randtrimwrite test
Vincent Fu [Tue, 4 Oct 2022 21:10:17 +0000 (14:10 -0700)]
test: clean up randtrimwrite test

Simplify the job file by putting write_bw_log in the [global] section.

Rename check_seq to the clearer check_trimwrite since it makes sure that
trims are followed by writes.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agoMerge branch 'master' of https://github.com/bvanassche/fio
Jens Axboe [Tue, 4 Oct 2022 20:25:09 +0000 (14:25 -0600)]
Merge branch 'master' of https://github.com/bvanassche/fio

* 'master' of https://github.com/bvanassche/fio:
  Android: Enable the 'sg' engine
  Android: Fix the build of the 'sg' engine

18 months agoAndroid: Enable the 'sg' engine
Bart Van Assche [Tue, 4 Oct 2022 19:22:00 +0000 (12:22 -0700)]
Android: Enable the 'sg' engine

Make it possible to use the 'sg' engine on Android. This engine has been
verified on Android by running fio --verify=md5 on top of a scsi_debug
instance.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
18 months agoAndroid: Fix the build of the 'sg' engine
Bart Van Assche [Tue, 4 Oct 2022 19:22:00 +0000 (12:22 -0700)]
Android: Fix the build of the 'sg' engine

Fix the following compiler error:

engines/sg.c:1337:46: error: argument type 'void' is incomplete
                                snprintf(msgchunk, MAXMSGCHUNK, " %02x", hdr->sbp[i]);

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
18 months agorandtrimwrite: fix corner case with variable block sizes
Vincent Fu [Mon, 3 Oct 2022 17:42:41 +0000 (10:42 -0700)]
randtrimwrite: fix corner case with variable block sizes

When we have variable block sizes it's possible to finish a trim + write
pair and then have the next (smaller length) trim operation have a
different start offset but the same end offset as the previous pair of
trim and write operations. This would fool fio into believing that it
had already completed a trim + write pair when it actually completed
only the trim.

Resolve this problem by comparing start offsets instead of end offsets.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agorandtrimwrite: fix offsets for corner case
Vincent Fu [Fri, 30 Sep 2022 23:54:57 +0000 (16:54 -0700)]
randtrimwrite: fix offsets for corner case

For randtrimwrite, we decide whether to issue a trim or a write based on
whether the end offsets for the most recent trim and write commands
match.  If they don't match that means we just issued a new trim and the
next operation should be a write. If they *do* match that means we just
completed a trim + write pair and the next command should be a trim.

This works fine for sequential workloads but for random workloads it's
possible to complete a trim + write pair and then have the randomly
generated offset for the next trim command match the previous offset. If
that happens we need to alter the offset for the last write operation in
order to ensure that we issue a write operation the next time through.

It feels dirty to change the meaning of last_pos[DDIR_WRITE] in this way
but hopefully the long comment in the code will be sufficient warning.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agotest: test job for randtrimwrite
Vincent Fu [Fri, 30 Sep 2022 19:48:56 +0000 (12:48 -0700)]
test: test job for randtrimwrite

This test exposes a problem with randtrimwrite when norandommap is
enabled.

Currently we check to see if the last write and last trim ended at the
same position. If so, we decide that the next operation should be a
trim. This is ok in most cases but if norandommap is enabled, it could
happen by chance that we just finished a trim + write on an offset and
randomly chose that same offset again. This would fool fio into thinking
that it already finished a trim + write pair when it actually issued
only a trim operation.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agorandtrimwrite: write at same offset as trim
Vincent Fu [Thu, 29 Sep 2022 23:58:17 +0000 (16:58 -0700)]
randtrimwrite: write at same offset as trim

We need to do a little bit more to make sure that the writes land on the
offsets that were trimmed.

We only have a single random seed for offsets. So we need to just use
the offset from trim commands when issuing writes.

When we have variable block sizes we need to make sure that the trim and
write commands are the same size.

When randommap is enabled we have to let it adjust the block size for
trim commands to make sure that the trim command does not touch any
blocks that have already been touched.

For sizes of write commands just use the size of the trim command.

Fixes: c16dc793a3c45780f67ce65244b6e91323dee014 "Add randtrimwrite data
direction"

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agoengines/io_uring: add fixedbufs support for io_uring_cmd
Anuj Gupta [Mon, 3 Oct 2022 03:31:52 +0000 (09:01 +0530)]
engines/io_uring: add fixedbufs support for io_uring_cmd

This patch enables fixedbufs support for io_uring_cmd. This has already
been done in t/io_uring, just do it here as well.

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20221003033152.314763-1-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
18 months agoAdd randtrimwrite data direction
Jens Axboe [Wed, 28 Sep 2022 15:11:41 +0000 (09:11 -0600)]
Add randtrimwrite data direction

This works like trimwrite, except we use random offsets for the trim
location rather than sequential ones.

Suggested-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
18 months agot/io_uring: get rid of useless read barriers
Jens Axboe [Wed, 28 Sep 2022 13:28:58 +0000 (07:28 -0600)]
t/io_uring: get rid of useless read barriers

We don't need a read barrier when we have acquire semantics on reading
the CQ ring tail.

We also don't need acquire semantics on the SQ ring head, unless we're
using SQPOLL. A syscall transition will have happened for !SQPOLL.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
18 months agodoc: build manpage from fio_doc.rst instead of fio_man.rst
Vincent Fu [Tue, 27 Sep 2022 14:43:49 +0000 (07:43 -0700)]
doc: build manpage from fio_doc.rst instead of fio_man.rst

Sphinx prints warnings when it encounters duplicate labels. In HOWTO.rst
are labels for int, irange, and bool. We include HOWTO.rst in both
fio_doc.rst and fio_man.rst. Since labels must be unique across all
files, Sphinx prints warnings for these labels.

For an unknown reason, Sphinx previously did not issue warnings for the
duplicate labels mentioned above until 5.2.0. But Sphinx 5.2.1 is now
installed for the macOS 11 image in GitHub Actions. So now we see Sphinx
warnings when building documentation in GitHub Actions.

Our CI treats Sphinx warnings as test failures. So our macOS builds are
marked as failures.

Resolve this problem by eliminating the separate fio_man.rst file and
just building the manpage from the largely equivalent fio_doc.rst.

Successful build with 5.1.1: https://github.com/axboe/fio/actions/runs/3106980788/jobs/5034529793
Failed build with 5.2.1: https://github.com/axboe/fio/actions/runs/3129974184/jobs/5079696775

Link: https://github.com/sphinx-doc/sphinx/pull/10781
Link: https://github.com/sphinx-doc/sphinx/issues/10870
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agoarm64: ensure CPU clock retrieval issues isb()
Jens Axboe [Thu, 22 Sep 2022 16:03:51 +0000 (10:03 -0600)]
arm64: ensure CPU clock retrieval issues isb()

This prevents counter value speculation, which will otherwise cause
issues with the CPU clock.

Link: https://github.com/axboe/fio/issues/1472
Signed-off-by: Jens Axboe <axboe@kernel.dk>
18 months agoconfigure: change grep -P to grep -E
Vincent Fu [Mon, 19 Sep 2022 13:34:13 +0000 (09:34 -0400)]
configure: change grep -P to grep -E

grep -P is not supported on FreeBSD. So use grep -E when we check
whether the value provided for --seed-buckets is a number or not.

Reported-by: Rebecca Cran <rebecca@bsdio.com>
Link: https://lore.kernel.org/fio/26076f36-54d5-ca6e-0b96-a7371b1c5e49@bsdio.com/T/#t
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
18 months agogettime: cleanups
Vincent Fu [Wed, 14 Sep 2022 17:50:52 +0000 (10:50 -0700)]
gettime: cleanups

Fix a comment and get rid of the extra new lines in the debug print.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agoMerge branch 'fix-example-disk-zone-profile' of github.com:cvubrugier/fio
Vincent Fu [Thu, 15 Sep 2022 15:02:49 +0000 (11:02 -0400)]
Merge branch 'fix-example-disk-zone-profile' of github.com:cvubrugier/fio

* 'fix-example-disk-zone-profile' of github.com:cvubrugier/fio:
  examples: fix bandwidth logs generation in disk-zone-profile.fio
  examples: set zonemode to strided in disk-zone-profile.fio

19 months agoMerge branch 'master' of github.com:uniontech-lilinjie/fio
Vincent Fu [Thu, 15 Sep 2022 14:53:24 +0000 (10:53 -0400)]
Merge branch 'master' of github.com:uniontech-lilinjie/fio

* 'master' of github.com:uniontech-lilinjie/fio:
  fix spelling error

19 months agobackend: number of ios not as expected for trimwrite
Ankit Kumar [Tue, 13 Sep 2022 10:45:27 +0000 (16:15 +0530)]
backend: number of ios not as expected for trimwrite

number_ios should be twice for trimwrite, just like size or
io_size. Update the documentation for "rw=trimwrite" to explain the
changes.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Reviewed-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/r/20220913104527.18734-2-ankit.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agofix spelling error
lilinjie [Tue, 13 Sep 2022 10:35:20 +0000 (18:35 +0800)]
fix spelling error

Signed-off-by: lilinjie <lilinjie@uniontech.com>
19 months agostat: fix comment about memory consumption
Vincent Fu [Mon, 12 Sep 2022 14:43:17 +0000 (10:43 -0400)]
stat: fix comment about memory consumption

We changed from unsigned int to uint64_t for the latency frequency
counters. Reflect this in the comment describing how much memory the
latency frequency counters require.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agoexamples: fix bandwidth logs generation in disk-zone-profile.fio
Christophe Vu-Brugier [Mon, 12 Sep 2022 12:17:49 +0000 (14:17 +0200)]
examples: fix bandwidth logs generation in disk-zone-profile.fio

Because the job name is set to "/dev/sdb", the bandwidth logs are
written to /dev/sdb_bw.1.log which is unexpected.

This commit changes the job name to "disk-zone-profile" so that the
bandwidth logs are written to "disk-zone-profile_bw.1.log".

Moreover, the `log_offset` option is enabled to log the I/O
offset. This is required to plot the HDD zones.

Signed-off-by: Christophe Vu-Brugier <christophe.vu-brugier@seagate.com>
19 months agoexamples: set zonemode to strided in disk-zone-profile.fio
Christophe Vu-Brugier [Mon, 12 Sep 2022 12:13:04 +0000 (14:13 +0200)]
examples: set zonemode to strided in disk-zone-profile.fio

This fixes the following error:

    # fio disk-zone-profile.fio
    fio: --zonemode=none and --zonesize are not compatible.

Signed-off-by: Christophe Vu-Brugier <christophe.vu-brugier@seagate.com>
19 months agoMerge branch 'rpma-add-support-for-libpmem2-to-the-librpma-engine' of https://github...
Jens Axboe [Tue, 6 Sep 2022 12:58:48 +0000 (06:58 -0600)]
Merge branch 'rpma-add-support-for-libpmem2-to-the-librpma-engine' of https://github.com/ldorau/fio

* 'rpma-add-support-for-libpmem2-to-the-librpma-engine' of https://github.com/ldorau/fio:
  rpma: add support for libpmem2 to librpma engine in GPSPM mode
  rpma: add support for libpmem2 to librpma engine in APM mode
  rpma: simplify server_cmpl_process()

19 months agoMerge branch 'ci-build-the-librpma-fio-engine' of https://github.com/ldorau/fio
Jens Axboe [Tue, 6 Sep 2022 12:57:16 +0000 (06:57 -0600)]
Merge branch 'ci-build-the-librpma-fio-engine' of https://github.com/ldorau/fio

* 'ci-build-the-librpma-fio-engine' of https://github.com/ldorau/fio:
  ci: remove the unused travis-install-pmdk.sh file
  ci: build the librpma fio engine

19 months agoci: remove the unused travis-install-pmdk.sh file
Lukasz Dorau [Tue, 6 Sep 2022 12:17:40 +0000 (14:17 +0200)]
ci: remove the unused travis-install-pmdk.sh file

Remove the unused travis-install-pmdk.sh file.
The libpmem and libpmem2 libraries are installed from packages.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
19 months agoci: build the librpma fio engine
Lukasz Dorau [Tue, 6 Sep 2022 12:11:43 +0000 (14:11 +0200)]
ci: build the librpma fio engine

Install the librpma library and two required packges
(libpmem2-dev and libprotobuf-c-dev) to have
the librpma fio engine built.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
19 months agorpma: add support for libpmem2 to librpma engine in GPSPM mode
Kacper Stefanski [Thu, 24 Feb 2022 14:59:03 +0000 (15:59 +0100)]
rpma: add support for libpmem2 to librpma engine in GPSPM mode

Add support for libpmem2 to librpma fio engine in the GPSPM mode.

Signed-off-by: Kacper Stefanski <kacper.stefanski@intel.com>
19 months agorpma: add support for libpmem2 to librpma engine in APM mode
Kacper Stefanski [Sun, 13 Feb 2022 23:02:23 +0000 (00:02 +0100)]
rpma: add support for libpmem2 to librpma engine in APM mode

Add support for libpmem2 to librpma fio engine in the APM mode.

Signed-off-by: Kacper Stefanski <kacper.stefanski@intel.com>
19 months agorpma: simplify server_cmpl_process()
Lukasz Dorau [Mon, 28 Feb 2022 14:25:53 +0000 (15:25 +0100)]
rpma: simplify server_cmpl_process()

Simplify the code of the server_cmpl_process() function.

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
19 months agot/io_uring: enable support for registered buffers for passthrough
Jens Axboe [Sat, 3 Sep 2022 17:02:10 +0000 (11:02 -0600)]
t/io_uring: enable support for registered buffers for passthrough

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agot/io_uring: properly detect numa nodes for passthrough mode
Jens Axboe [Sat, 3 Sep 2022 17:01:19 +0000 (11:01 -0600)]
t/io_uring: properly detect numa nodes for passthrough mode

We need to use a different path for the char nodes. With this, my
setup correctly detects the nodes for all devices:

submitter=0, tid=4746, file=/dev/ng0n1, node=6
submitter=1, tid=4747, file=/dev/ng1n1, node=6
submitter=2, tid=4748, file=/dev/ng2n1, node=6
submitter=3, tid=4749, file=/dev/ng3n1, node=6
submitter=4, tid=4750, file=/dev/ng4n1, node=4
submitter=5, tid=4751, file=/dev/ng5n1, node=4
submitter=6, tid=4752, file=/dev/ng6n1, node=4
submitter=7, tid=4753, file=/dev/ng7n1, node=4
submitter=8, tid=4754, file=/dev/ng8n1, node=4
submitter=9, tid=4755, file=/dev/ng9n1, node=4
submitter=10, tid=4756, file=/dev/ng10n1, node=4
submitter=12, tid=4758, file=/dev/ng12n1, node=10
submitter=11, tid=4757, file=/dev/ng11n1, node=4
submitter=13, tid=4759, file=/dev/ng13n1, node=10
[...]

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoMerge branch 'fix/howto-spelling' of https://github.com/scop/fio
Jens Axboe [Sat, 3 Sep 2022 14:49:37 +0000 (08:49 -0600)]
Merge branch 'fix/howto-spelling' of https://github.com/scop/fio

* 'fix/howto-spelling' of https://github.com/scop/fio:
  HOWTO: spelling fixes

19 months agoMerge branch 'doc/showcmd-usage' of https://github.com/scop/fio
Jens Axboe [Sat, 3 Sep 2022 14:49:16 +0000 (08:49 -0600)]
Merge branch 'doc/showcmd-usage' of https://github.com/scop/fio

* 'doc/showcmd-usage' of https://github.com/scop/fio:
  doc: fix --showcmd usage

19 months agoMerge branch 'fix/help-terse-version-5' of https://github.com/scop/fio
Jens Axboe [Sat, 3 Sep 2022 14:48:45 +0000 (08:48 -0600)]
Merge branch 'fix/help-terse-version-5' of https://github.com/scop/fio

* 'fix/help-terse-version-5' of https://github.com/scop/fio:
  init: include 5 in --terse-version help

19 months agodoc: fix --showcmd usage
Ville Skyttä [Sat, 3 Sep 2022 06:12:55 +0000 (09:12 +0300)]
doc: fix --showcmd usage

It does not take an argument, but operates on the job files and other
arguments given on the command line.

Thanks-to: Koichi Murase <myoga.murase@gmail.com>
Signed-off-by: Ville Skyttä <ville.skytta@upcloud.com>
19 months agoHOWTO: spelling fixes
Ville Skyttä [Sat, 3 Sep 2022 05:54:03 +0000 (08:54 +0300)]
HOWTO: spelling fixes

Signed-off-by: Ville Skyttä <ville.skytta@upcloud.com>
19 months agoinit: include 5 in --terse-version help
Ville Skyttä [Sat, 3 Sep 2022 05:49:16 +0000 (08:49 +0300)]
init: include 5 in --terse-version help

Thanks-to: Koichi Murase <myoga.murase@gmail.com>
Signed-off-by: Ville Skyttä <ville.skytta@upcloud.com>
19 months agoMerge branch 'fiopr_windows_log_compression_storage_fixes' of https://github.com...
Jens Axboe [Fri, 2 Sep 2022 23:29:45 +0000 (17:29 -0600)]
Merge branch 'fiopr_windows_log_compression_storage_fixes' of https://github.com/PCPartPicker/fio

* 'fiopr_windows_log_compression_storage_fixes' of https://github.com/PCPartPicker/fio:
  Fix log compression storage on windows

19 months agoFix log compression storage on windows
aggieNick02 [Fri, 2 Sep 2022 23:19:43 +0000 (18:19 -0500)]
Fix log compression storage on windows

Set the file open mode to be binary instead of text when dealing with
compressed log files. This fixes log compression storage not working on
windows, and lets the test added in PR
https://github.com/axboe/fio/pull/1458
pass on windows.

Signed-off-by: Nick Neumann <nick@pcpartpicker.com>
19 months agoMerge branch 'fiopr_compressfixes' of https://github.com/PCPartPicker/fio
Jens Axboe [Thu, 1 Sep 2022 18:03:23 +0000 (12:03 -0600)]
Merge branch 'fiopr_compressfixes' of https://github.com/PCPartPicker/fio

* 'fiopr_compressfixes' of https://github.com/PCPartPicker/fio:
  Fix fio silently dropping log entries when using log_compression

19 months agoFix fio silently dropping log entries when using log_compression
aggieNick02 [Thu, 1 Sep 2022 17:26:45 +0000 (12:26 -0500)]
Fix fio silently dropping log entries when using log_compression

This fixes issue 1457: https://github.com/axboe/fio/issues/1457

The fix is to just add a workqueue_flush to iolog_flush so that any log
chunks being compressed in the workqueue get flushed before we compress
and write the entries in the current active logs. Without this, log
entries in the workqueue can be omitted or be written out of order.

We also add a new test that ensures the log file has the right number of
entries in the correct order when using log_compression, both with and
without the store_log_compressed option.

There is still some cleanup to do with respect to the current
documentation and comments for the log_compression option, as it does
not affect the size of chunks, but instead is effectively a boolean that
controls whether chunks are compressed and removed. I'll leave that for
a separate PR.

Signed-off-by: Nick Neumann <nick@pcpartpicker.com>
19 months agot/io_uring: minor optimizations to IO init fast path
Jens Axboe [Thu, 1 Sep 2022 14:34:32 +0000 (08:34 -0600)]
t/io_uring: minor optimizations to IO init fast path

1) Only read SQ ring head at the start of prep, we don't need to read
   it at every iteration.
2) Initialize SQ ring index at init time, rather than in the fast path.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agot/io_uring: take advantage of new io_uring setup flags
Jens Axboe [Thu, 1 Sep 2022 00:44:52 +0000 (18:44 -0600)]
t/io_uring: take advantage of new io_uring setup flags

Set COOP_TASKRUN, SINGLE_ISSUER, and DEFER_TASKRUN if they are available
on the host.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agot/io_uring: unify getting of the offset
Jens Axboe [Thu, 1 Sep 2022 00:40:14 +0000 (18:40 -0600)]
t/io_uring: unify getting of the offset

Move it into a helper, and use it from all three methods. This also fixes
an issue with the aio method not honoring random IO or not.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoengines/io_uring: set single issuer and defer taskrun
Jens Axboe [Wed, 31 Aug 2022 20:14:29 +0000 (14:14 -0600)]
engines/io_uring: set single issuer and defer taskrun

If available, set these two flags as well. SINGLE_ISSUER tells the kernel
that it can expect that it's just a single task issuing requests, and
DEFER_TASKRUN tells the kernel that we're fine with deferring task_work
runs until we reap events.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoengines/io_uring: set COOP_TASKRUN for ring setup
Jens Axboe [Wed, 31 Aug 2022 19:45:32 +0000 (13:45 -0600)]
engines/io_uring: set COOP_TASKRUN for ring setup

If available, this will generally improve performance quite a bit.
Fio can easily use it, we just need to set the flag.
IORING_SETUP_COOP_TASKRUN tells the kernel that the application doesn't
need to get rescheduled to handle task_work, it's fine to defer this
to when we transition anyway.

For a QD=8 random read workload, this increases performance from
680K to 870K IOPS.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoMerge branch 'master' of https://github.com/bvanassche/fio
Jens Axboe [Wed, 31 Aug 2022 00:19:30 +0000 (18:19 -0600)]
Merge branch 'master' of https://github.com/bvanassche/fio

* 'master' of https://github.com/bvanassche/fio:
  Merge os-android.h into os-linux.h
  Split os-android.h
  Linux: Use the byte order functions from <asm/byteorder.h>
  Remove two casts from os-linux.h

19 months agoMerge os-android.h into os-linux.h
Bart Van Assche [Wed, 24 Aug 2022 22:05:42 +0000 (15:05 -0700)]
Merge os-android.h into os-linux.h

Reduce code duplication by merging the os-android.h and os-linux.h
header files. The only functional change in this patch is that
FIO_HAVE_SGIO is now defined in the Android build and hence that the sg
I/O engine is enabled for Android.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
19 months agoSplit os-android.h
Bart Van Assche [Wed, 24 Aug 2022 21:55:51 +0000 (14:55 -0700)]
Split os-android.h

Move the shared memory emulation into a new header file in preparation
of merging the Linux and Android operating system header files.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
19 months agoLinux: Use the byte order functions from <asm/byteorder.h>
Bart Van Assche [Wed, 24 Aug 2022 22:05:32 +0000 (15:05 -0700)]
Linux: Use the byte order functions from <asm/byteorder.h>

Prepare for the unification of the Linux and Android header files by
switching to the <asm/byteorder.h> functions for Linux.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
19 months agoRemove two casts from os-linux.h
Bart Van Assche [Wed, 24 Aug 2022 21:54:39 +0000 (14:54 -0700)]
Remove two casts from os-linux.h

This patch prepares for merging the os-linux.h and os-android.h header files.
While CPU_CLR() and CPU_SET() are defined as statement expressions in
the Linux header files, these macros have been defined as statements in
the Android header files. Remove the '(void)' casts to prevent the
introduction of a build error when merging the Linux and Android header
files.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
19 months agoFio 3.32 fio-3.32
Jens Axboe [Tue, 30 Aug 2022 16:51:13 +0000 (10:51 -0600)]
Fio 3.32

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agobackend: revert bad memory leak fix
Jens Axboe [Tue, 30 Aug 2022 16:48:18 +0000 (10:48 -0600)]
backend: revert bad memory leak fix

This essentially reverts the commit mentioned in the fixes line, as it
causes crashes with using a trigger timeout + command.

Fixes: 807473c36e10 ("fixed memory leak detected by ASAN")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agotest: add tests for lfsr and norandommap
Vincent Fu [Tue, 30 Aug 2022 13:59:55 +0000 (09:59 -0400)]
test: add tests for lfsr and norandommap

t0021 checks whether the lfsr random generator actually touches every
offset.

t0022 checks whether fio touches offsets more than once when
norandommap=1.

We should have automated tests for basic functionality to detect
problems early.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agotest: get 32-bit Ubuntu 22.04 build working
Vincent Fu [Mon, 29 Aug 2022 19:15:56 +0000 (15:15 -0400)]
test: get 32-bit Ubuntu 22.04 build working

Ubuntu 22.04 no longer has i386 builds for the packages libibverbs and
librdmacm. So stop trying to install those packages for the 32-bit
build.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agotest: use Ubuntu 22.04 for 64-bit tests
Vincent Fu [Mon, 29 Aug 2022 18:24:16 +0000 (14:24 -0400)]
test: use Ubuntu 22.04 for 64-bit tests

On 22.04 there was a conflict among libunwind-14-dev, libunwind-dev, and
libunwind8 that was resolved by removing libunwind-14-dev.

The 32-bit Ubuntu setup steps require more attention to get them to work
on 22.04. Stay on 20.04 for now and figure it out later.

Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) libunwind-14-dev:amd64 < 1:14.0.0-1ubuntu1 @ii K Ib >
Broken libunwind-14-dev:amd64 Breaks on libunwind-dev:amd64 < none -> 1.3.2-2build2 @un puN >
  Considering libunwind-dev:amd64 -1 as a solution to libunwind-14-dev:amd64 2
Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libunwind-14-dev : Breaks: libunwind-dev but 1.3.2-2build2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agotest: add some tests for seq and rand offsets
Vincent Fu [Mon, 29 Aug 2022 15:30:30 +0000 (11:30 -0400)]
test: add some tests for seq and rand offsets

t/jobs/t0019.fio is a seq read test
t/jobs/t0020.fio is a rand read test

We don't have any automated tests which make sure that sequential access
patterns are actually sequential and that random access patterns are not
sequential. Add these two tests to help detect the possibility that
these features could break.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agot/io_uring: remove duplicate definition of gettid()
Jens Axboe [Fri, 26 Aug 2022 20:14:44 +0000 (14:14 -0600)]
t/io_uring: remove duplicate definition of gettid()

With a recent change, we now include os.h through nvme.h, and this
can cause a duplicate gettid() definition:

t/io_uring.c:499:12: error: redefinition of ‘gettid’
 static int gettid(void)
            ^~~~~~
In file included from t/../engines/../os/os.h:39,
                 from t/../engines/../thread_options.h:5,
                 from t/../engines/../fio.h:18,
                 from t/../engines/nvme.h:10,
                 from t/io_uring.c:38:
t/../engines/../os/os-linux.h:147:19: note: previous definition of
‘gettid’ was here
 static inline int gettid(void)
                   ^~~~~~

Include os.h directly to make it clear that we use it, and remove the
gettid() definition from io_uring.c.

Reported-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agotest: add basic test for io_uring ioengine
Vincent Fu [Thu, 25 Aug 2022 19:08:33 +0000 (12:08 -0700)]
test: add basic test for io_uring ioengine

We should have a quick smoke test for the io_uring ioengine to
automatically detect breakage.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agot/io_uring: fix 64-bit cast on 32-bit archs
Jens Axboe [Fri, 26 Aug 2022 13:52:54 +0000 (07:52 -0600)]
t/io_uring: fix 64-bit cast on 32-bit archs

gcc complains that:

t/io_uring.c: In function ‘init_io_pt’:
t/io_uring.c:618:52: error: left shift count >= width of type [-Werror=shift-count-overflow]
  618 |   sqe->user_data |= ((unsigned long)s->clock_index << 32);
      |                                                    ^~

we're shifting more than the size of the type. Cast to a 64-bit value
so that it'll work on 32-bit as well.

Fixes: 7d04588a7663 ("t/io_uring: add support for async-passthru")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agot/io_uring: add support for async-passthru
Anuj Gupta [Fri, 26 Aug 2022 11:33:06 +0000 (17:03 +0530)]
t/io_uring: add support for async-passthru

This patch adds support for async-passthru in t/io_uring. User needs to
specify -u1 option in the command

Example commandline:
t/io_uring -b512 -d128 -c32 -s32 -p0 -F1 -B0 -O0 -n1 -u1 /dev/ng0n1

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20220826113306.4139-3-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agot/io_uring: prep for including engines/nvme.h in t/io_uring
Anuj Gupta [Fri, 26 Aug 2022 11:33:05 +0000 (17:03 +0530)]
t/io_uring: prep for including engines/nvme.h in t/io_uring

Change page_size and cal_clat_percentiles name to something different
as these are indirectly picked from engines/nvme.h (fio.h and stat.h)

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20220826113306.4139-2-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoengines/io_uring: delete debug code
Jens Axboe [Thu, 25 Aug 2022 17:19:34 +0000 (11:19 -0600)]
engines/io_uring: delete debug code

This was inadvertently introduced by a previous commit, get rid
of it.

Fixes: 1816895b788e ("engines/io_uring: pass back correct error value when interrupted")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoMerge branch 'master' of https://github.com/kraj/fio
Jens Axboe [Thu, 25 Aug 2022 02:09:29 +0000 (20:09 -0600)]
Merge branch 'master' of https://github.com/kraj/fio

* 'master' of https://github.com/kraj/fio:
  io_uring: Replace pthread_self with s->tid

19 months agoio_uring: Replace pthread_self with s->tid
Khem Raj [Thu, 25 Aug 2022 01:08:53 +0000 (18:08 -0700)]
io_uring: Replace pthread_self with s->tid

__init_rand64 takes 64bit value and srand48 takes unsigned 32bit value,
pthread_t is opaque type and some libcs ( e.g. musl ) do not define them
in plain old data types and ends up with errors

| t/io_uring.c:809:32: error: incompatible pointer to integer conversion passing 'pthread_t' (aka 'struct __pthread *') to parameter of type 'uint64_t' (aka 'unsigned long') [-Wint-conver
sion]
|         __init_rand64(&s->rand_state, pthread_self());
|                                       ^~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 months agoMerge branch 'master' of https://github.com/bvanassche/fio
Jens Axboe [Wed, 24 Aug 2022 21:52:34 +0000 (15:52 -0600)]
Merge branch 'master' of https://github.com/bvanassche/fio

* 'master' of https://github.com/bvanassche/fio:
  Enable CPU affinity support on Android

19 months agoEnable CPU affinity support on Android
Bart Van Assche [Wed, 24 Aug 2022 20:42:29 +0000 (13:42 -0700)]
Enable CPU affinity support on Android

This patch enables the --cpumask=, --cpus_allowed= and
--cpus_allowed_policy= fio options.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
19 months agoengines/io_uring: pass back correct error value when interrupted
Jens Axboe [Wed, 24 Aug 2022 18:01:39 +0000 (12:01 -0600)]
engines/io_uring: pass back correct error value when interrupted

Running with an io_uring engine and using a USR1 signal to show
current status will end up terminating the job with:

fio: pid=91726, err=-4/file:ioengines.c:320, func=get_events, error=Unknown error -4
sfx: (groupid=0, jobs=1): err=-4 (file:ioengines.c:320, func=get_events, error=Unknown error -4): pid=91726: Wed Aug 24 11:59:51 2022

Ensure that the return value is set correctly based on the errno.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
19 months agoMerge branch 'sigbreak-wait' of github.com:bjpaupor/fio
Vincent Fu [Tue, 23 Aug 2022 21:09:25 +0000 (17:09 -0400)]
Merge branch 'sigbreak-wait' of github.com:bjpaupor/fio

* 'sigbreak-wait' of github.com:bjpaupor/fio:
  Add wait for handling SIGBREAK

19 months agoRevert "Fix multithread issues when operating on a single shared file"
Vincent Fu [Tue, 23 Aug 2022 16:38:51 +0000 (12:38 -0400)]
Revert "Fix multithread issues when operating on a single shared file"

This reverts commit acbda87c34c743ff2d9e125d9539bcfbbf49eb75.

This commit introduced a lot of unintended consequences for
create_serialize=0. The aim of the commit can be accomplished with a
combination of filesize and io_size.

Fixes: https://github.com/axboe/fio/issues/1442
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agoRevert "Minor style fixups"
Vincent Fu [Tue, 23 Aug 2022 16:38:20 +0000 (12:38 -0400)]
Revert "Minor style fixups"

This reverts commit 48f8268e88629d408ffd09b1601ad13366bd4ce1.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
19 months agoAdd wait for handling SIGBREAK
Brandon Paupore [Fri, 5 Aug 2022 17:57:27 +0000 (12:57 -0500)]
Add wait for handling SIGBREAK

When closing a command prompt window or terminating it using something
like the taskkill command, each child process (such as a running FIO
workload) is sent a SIGBREAK signal. Once those child processes have
responded to that signal, Windows terminates them if they're still
executing.

This change has the main thread to wait for others to exit when handling
a SIGBREAK signal, such that each job will still have time to wrap-up
and give stats before the entire program terminates.

Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
20 months agoMerge branch 'clarify-io-errors' of https://github.com/Hi-Angel/fio
Jens Axboe [Wed, 17 Aug 2022 01:54:17 +0000 (19:54 -0600)]
Merge branch 'clarify-io-errors' of https://github.com/Hi-Angel/fio

* 'clarify-io-errors' of https://github.com/Hi-Angel/fio:
  doc: clarify that I/O errors may go unnoticed without direct=1
  doc: get rid of trailing whitespace

20 months agodoc: clarify that I/O errors may go unnoticed without direct=1
Konstantin Kharlamov [Tue, 16 Aug 2022 16:10:38 +0000 (19:10 +0300)]
doc: clarify that I/O errors may go unnoticed without direct=1

Fixes: https://github.com/axboe/fio/issues/1443

Reported-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
20 months agotest: fix hash for t0016
Vincent Fu [Mon, 15 Aug 2022 15:40:58 +0000 (11:40 -0400)]
test: fix hash for t0016

I used the wrong hash for t0016 in the original commit. Fix it to refer
to the hash that fixed the issue in this tree.

Fixes: de31fe9a ("testing: add test for slat + clat = tlat")
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
20 months agotest: add latency test using posixaio ioengine
Vincent Fu [Mon, 15 Aug 2022 15:34:43 +0000 (11:34 -0400)]
test: add latency test using posixaio ioengine

Make sure that mean(slat) + mean(clat) = mean(total lat).

Tests 15 and 16 use the libaio and null ioengines, respectively. Both of
those ioengines have commit hooks. Add this new test using the posixaio
ioengine which does not have a commit hook so that we can better cover
the possible ways that latency is calcualted.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
20 months agodoc: get rid of trailing whitespace
Konstantin Kharlamov [Tue, 16 Aug 2022 16:14:13 +0000 (19:14 +0300)]
doc: get rid of trailing whitespace

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
20 months agodoc: update fio doc for xnvme engine
Ankit Kumar [Tue, 16 Aug 2022 05:38:21 +0000 (11:08 +0530)]
doc: update fio doc for xnvme engine

- Elaborate about the various sync, async and admin
  interfaces.
- add missing io_uring_cmd async backend entry.
- xnvme ioengine doesn't support file stat.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Link: https://lore.kernel.org/r/20220816053821.440-3-ankit.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
20 months agoengines/xnvme: fix segfault issue with xnvme ioengine
Ankit Kumar [Tue, 16 Aug 2022 05:38:20 +0000 (11:08 +0530)]
engines/xnvme: fix segfault issue with xnvme ioengine

fix segfault when xnvme ioengine is called without thread=1.
The segfault happens because td->io_ops_data is accessed at
two locations xnvme_fioe_cleanup and xnvme_fioe_iomem_free,
during the error handling call.

Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com>
Link: https://lore.kernel.org/r/20220816053821.440-2-ankit.kumar@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
20 months agoREADME: link to GitHub releases for Windows
Vincent Fu [Mon, 15 Aug 2022 14:37:57 +0000 (10:37 -0400)]
README: link to GitHub releases for Windows

Note that Windows installers are now available as releases on GitHub.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
20 months agoMerge branch 's3_crypto' of github.com:hualongfeng/fio
Vincent Fu [Thu, 11 Aug 2022 19:39:02 +0000 (15:39 -0400)]
Merge branch 's3_crypto' of github.com:hualongfeng/fio

20 months agoioengines: merge filecreate, filestat, filedelete engines to fileoperations.c
Friendy.Su@sony.com [Mon, 8 Aug 2022 08:35:50 +0000 (08:35 +0000)]
ioengines: merge filecreate, filestat, filedelete engines to fileoperations.c

file operation engines have similar structure, implement them
in one file.

Signed-off-by: friendy-su <friendy.su@sony.com>
20 months agodoc: Add usage and example about s3 storage class and crypto
Feng, Hualong [Thu, 28 Jul 2022 01:47:48 +0000 (01:47 +0000)]
doc: Add usage and example about s3 storage class and crypto

There add option usage about s3 storage class
`http_s3_storage_class` and
s3 SSE server side encryption
`http_s3_sse_customer_key` and
`http_s3_sse_customer_algorithm`

And add example file in example folder.

Signed-off-by: Feng, Hualong <hualong.feng@intel.com>
20 months agoengines/http: Add s3 crypto options for s3
Feng, Hualong [Wed, 20 Jul 2022 01:41:35 +0000 (09:41 +0800)]
engines/http: Add s3 crypto options for s3

Server-side encryption is about protecting data at rest.
(https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html)

When we want to test server-side encryption, we need to specify
server-side encryption with customer-provided encryption keys (SSE-C).
The two option **http_s3_sse_customer_key** and
**http_s3_sse_customer_algorithm** is for server-side encryption.

Signed-off-by: Feng, Hualong <hualong.feng@intel.com>
20 months agoengines/http: Add storage class option for s3
Feng, Hualong [Wed, 20 Jul 2022 04:01:35 +0000 (12:01 +0800)]
engines/http: Add storage class option for s3

Amazon S3 offers a range of storage classes that you can choose from
based on the data access, resiliency, and cost requirements of your
workloads. (https://aws.amazon.com/s3/storage-classes/)

For example, we have **STANDARD** storage class to test normal
workload, and have **COLD** storage class to test the workload
with gzip compression. It is convenient to select which
storage class to access for different kinds data.

Signed-off-by: Feng, Hualong <hualong.feng@intel.com>
20 months agolib/rand: get rid of unused MAX_SEED_BUCKETS
Jens Axboe [Wed, 10 Aug 2022 15:51:49 +0000 (09:51 -0600)]
lib/rand: get rid of unused MAX_SEED_BUCKETS

It's only used to size the array, we don't need it.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
20 months agoMerge branch 'multi_seed_refill' of https://github.com/sungup/fio
Jens Axboe [Wed, 10 Aug 2022 15:50:52 +0000 (09:50 -0600)]
Merge branch 'multi_seed_refill' of https://github.com/sungup/fio

* 'multi_seed_refill' of https://github.com/sungup/fio:
  lib/rand: Enhance __fill_random_buf using the multi random seed

20 months agolib/rand: Enhance __fill_random_buf using the multi random seed
Sungup Moon [Mon, 8 Aug 2022 08:21:46 +0000 (17:21 +0900)]
lib/rand: Enhance __fill_random_buf using the multi random seed

The __fill_random_buf fills a buffer using the random 8byte integer to
write. But, this mechanism is depend on the CPU performance and could
not reach the max performance on the PCIe Gen5 devices. I have tested
128KB single worker sequential write on PCIe Gen5 NVMe, but it cannot
reach write throughput 6.0GB/s.

So, I have reviewed the __fill_random_buf and focused the multiplier
dependency to generate the random number. So, I have changed
__fill_random_buf using the multiple-random-seed to reduce the
dependencies in the small data filling loop.

I'll attach detail analysis result in the PR of this branch.

Signed-off-by: Sungup Moon <sungup.moon@samsung.com>
20 months agoFio 3.31 fio-3.31
Jens Axboe [Tue, 9 Aug 2022 20:41:25 +0000 (14:41 -0600)]
Fio 3.31

Signed-off-by: Jens Axboe <axboe@kernel.dk>
20 months agoci: drop master branch requirement for AppVeyor releases test-tag-2022-08-09-2
Vincent Fu [Tue, 9 Aug 2022 14:45:53 +0000 (10:45 -0400)]
ci: drop master branch requirement for AppVeyor releases

Even if we tag a commit on the master branch AppVeyor won't upload the
installers as GitHub release artifacts.

https://ci.appveyor.com/project/axboe/fio/builds/44416420/job/t1elejqo2yk3r72b

So just drop the requirement for AppVeyor to only upload release
artifacts from the master branch.

This seems to get things working on my fork:

https://ci.appveyor.com/project/vincentkfu/fio/builds/44417490/job/e6xtrwc6xlccrn0j

It's good to have the flexibility to store installers from other
branches in any case.

Signed-off-by: Vincent Fu <vincentfu@gmail.com>
20 months agoMerge branch 'master' of ssh://git.kernel.dk/data/git/fio test-tag-2022-08-09
Jens Axboe [Tue, 9 Aug 2022 13:07:39 +0000 (07:07 -0600)]
Merge branch 'master' of ssh://git.kernel.dk/data/git/fio

* 'master' of ssh://git.kernel.dk/data/git/fio:
  testing: add test for slat + clat = tlat
  engines/null: add FIO_ASYNCIO_SETS_ISSUE_TIME flag
  testing: add test for slat + clat = tlat

20 months agoci: upload tagged AppVeyor installers as GitHub releases
Vincent Fu [Mon, 8 Aug 2022 17:51:51 +0000 (17:51 +0000)]
ci: upload tagged AppVeyor installers as GitHub releases

Deploy Windows installers built by AppVeyor as releases on GitHub. This
process is triggered only when tags are uploaded to the repository.

Patch was created using this guide:
https://www.appveyor.com/docs/deployment/github/

- Generate a GitHub authentication token with public_repo scope:
  https://github.com/settings/tokens
- Login to AppVeyor and encrypt GitHub token: Account -> Encrypt YAML
  https://ci.appveyor.com/tools/encrypt
- Insert encrypted token in appveyor.yml on the secure: line under
  auth_token:

With APPVEYOR_REPO_TAG set to true only tags pushed to GitHub will have
Cygwin MSI installers uploaded as releases to GitHub.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Link: https://lore.kernel.org/r/20220808175133.37920-2-vincent.fu@samsung.com
[axboe: replace token with right one]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
20 months agotesting: add test for slat + clat = tlat
Vincent Fu [Fri, 5 Aug 2022 20:35:30 +0000 (13:35 -0700)]
testing: add test for slat + clat = tlat

Add this test for the null ioengine which can run on more platforms.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
20 months agoengines/null: add FIO_ASYNCIO_SETS_ISSUE_TIME flag
Vincent Fu [Fri, 5 Aug 2022 20:31:11 +0000 (13:31 -0700)]
engines/null: add FIO_ASYNCIO_SETS_ISSUE_TIME flag

Add a flag to prevent td_io_queue from setting issue_time since this
ioengine already does it in its commit function when iodepth > 1.

We also need to make sure the changes to the ioengine flags are
propogated to td->flags.

Fixes: 56b6bc25 ("engines/null: fill issue_time during commit")
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>