From d1844c61b1a419dc39aca41c9266fb65eaff78e4 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Tue, 18 May 2021 14:41:21 +0200 Subject: [PATCH] Enable out-of-order writes when writing whole disk images Per documentation it improves performance when using -O host_device. Change-Id: Ic6a97af9f865d07c9cb4257397a320475a28f88b --- ironic_python_agent/shell/write_image.sh | 2 +- releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml diff --git a/ironic_python_agent/shell/write_image.sh b/ironic_python_agent/shell/write_image.sh index bcd6bfd37..61e9d0b91 100755 --- a/ironic_python_agent/shell/write_image.sh +++ b/ironic_python_agent/shell/write_image.sh @@ -49,7 +49,7 @@ log "Imaging $IMAGEFILE to $DEVICE" # limit the memory usage for qemu-img to 2 GiB ulimit -v 2097152 -qemu-img convert -t directsync -O host_device $IMAGEFILE $DEVICE +qemu-img convert -t directsync -O host_device -W $IMAGEFILE $DEVICE sync log "${DEVICE} imaged successfully!" diff --git a/releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml b/releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml new file mode 100644 index 000000000..2de30f57b --- /dev/null +++ b/releasenotes/notes/qemu-img-ooo-write-721b8a0057ab7b8a.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Permits out-of-order writes when converting a whole disk images to improve + performance.