Skip to content

Fix percentage random workload and add test case

Ankit Kumar fio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io_u: fix offset generation for mix of random and sequential workloadio_u.c+4 -13 replies
2/2test: add test for mix random and sequential workloadt/jobs/t0028-post.fio t/jobs/t0028-pre.fio t/run-fio-tests.py+82 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix percentage random workload and add test case

Sometimes while running a mix of sequential and random I/O's the generated sequential offset is outside the I/O region. This usually happens if the previous I/O is the last block in the region which results in this sequential I/O offset to be just outside the region. This results in fio finishing without doing the specified amount of I/O's.
With this fix fio now generates a random offset within the region.

Added a test case for the same (test_id: 28) As I see there is a pending patch with test_id: 27 so I decided to skip it to avoid conflict.

This now fixes the issue: https://github.com/axboe/fio/issues/1486

Ankit Kumar (2):
io_u: fix offset generation for mix of random and sequential workload
test: add test for mix random and sequential workload

 io_u.c                |  5 ++++-
 t/jobs/t0028-post.fio | 27 +++++++++++++++++++++++++++
 t/jobs/t0028-pre.fio  | 21 +++++++++++++++++++++
 t/run-fio-tests.py    | 34 ++++++++++++++++++++++++++++++++++
 4 files changed, 86 insertions(+), 1 deletion(-)
 create mode 100644 t/jobs/t0028-post.fio
 create mode 100644 t/jobs/t0028-pre.fio
Signature · 1 line
2.17.1