Skip to content

block: Improve writethrough performance

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5file-posix: Support FUA writesblock/file-posix.c block/io_uring.c block/linux-aio.c +2 more+57 -181 reply
2/5block/io: Ignore FUA with cache.no-flush=onblock/io.c+4 -01 reply
3/5aio: Create AioPolledEventinclude/block/aio.h util/aio-posix.c util/async.c+23 -171 reply
4/5aio-posix: Factor out adjust_polling_time()util/aio-posix.c+41 -361 reply
5/5aio-posix: Separate AioPolledEvent per AioHandlerinclude/block/aio.h util/aio-posix.c util/aio-posix.h +1 more+22 -63 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] block: Improve writethrough performance

Write requests in writethrough mode mean that QEMU sends a separate flush request (i.e. fdatasync) after each completed write request. This is unnecessary overhead when we can just pass a flag for the write request that gives us the desired FUA semantics.

Unfortunately, this made a problem in the adaptive polling algorithm apparent that would result in a performance regression in some cases with FUA support in file-posix. Therefore, adaptive polling is changed in this series, too, to avoid the regression.

Kevin Wolf (5):
file-posix: Support FUA writes
block/io: Ignore FUA with cache.no-flush=on
aio: Create AioPolledEvent
aio-posix: Factor out adjust_polling_time()
aio-posix: Separate AioPolledEvent per AioHandler

 include/block/aio.h     |  5 ++-
 include/block/raw-aio.h |  8 +++-
 util/aio-posix.h        |  1 +
 block/file-posix.c      | 26 ++++++++----
 block/io.c              |  4 ++
 block/io_uring.c        | 13 +++---
 block/linux-aio.c       | 24 +++++++++--
 util/aio-posix.c        | 94 ++++++++++++++++++++++++++---------------
 util/async.c            |  1 -
 meson.build             |  4 ++
 10 files changed, 125 insertions(+), 55 deletions(-)
Signature · 1 line
2.48.1