discard option on ext4 mounts in QEMU qcow2 images
26 Apr
2022
26 Apr
'22
3:29 a.m.
Hello, Does anyone have any real-world statistics on the reliability and performance of the ext4 discard option in QEMU VMs? I've heard it's discouraged for physical devices, as some are inefficient in how TRIM requests are processed, but I was wondering if there were any drawbacks/warnings when it comes to virtual disks (in this case, QCOW2s). I currently use either virtio-scsi or virtio-blk drivers for disk images depending on what the host/guest support, and run TRIMs weekly, but having an immediate freeing of space is desirable for many reasons. Also wondering if snapshots on snapshotting filesystems (such as ZFS) can run into corruption or other issues if snapshots are taken during a TRIM. Thanks.
1357
Age (days ago)
1357
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nate Collins