perf(quickemu): improve disk I/O defaults (cache,aio)
- add cache=writeback and aio=threads to DRIVE_OPTIMISATIONS - retain existing optimisations: discard=unmap,detect-zeroes=unmap - improve write performance (host writeback caching) and async I/O parallelism via thread-based AIO - follows Proxmox/libvirt QEMU disk best practices; researched for macOS but applies to all guests Signed-off-by: Martin Wimpress <martin@wimpress.org>
This commit is contained in:
parent
9b54b36492
commit
e777817ca9
5
quickemu
5
quickemu
|
|
@ -1887,8 +1887,9 @@ function vm_boot() {
|
|||
|
||||
# Add the disks
|
||||
# - https://turlucode.com/qemu-disk-io-performance-comparison-native-or-threads-windows-10-version/
|
||||
# Optimise disk I/O: enable TRIM/discard and zero detection for thin provisioning
|
||||
DRIVE_OPTIMISATIONS="discard=unmap,detect-zeroes=unmap"
|
||||
# Optimise disk I/O: enable TRIM/discard, zero detection for thin provisioning,
|
||||
# writeback caching and threaded async I/O
|
||||
DRIVE_OPTIMISATIONS="discard=unmap,detect-zeroes=unmap,cache=writeback,aio=threads"
|
||||
|
||||
if [[ "${boot}" == *"efi"* ]]; then
|
||||
QCOW2CODE=$(is_firmware_qcow2 "${EFI_CODE}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue