diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-30 12:24:58 +0000 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-30 12:27:06 +0000 |
| commit | 33606b41d35115f887ea688b1a16f2ff85bf2fe4 (patch) | |
| tree | 406b2c7b19a087ba437c68f3dbf0b589fa1d6150 /results/scraper/launchpad-without-comments/1376938 | |
| parent | adedf8771bc4de3113041ca21bd4d0d1c0014b6a (diff) | |
| download | emulator-bug-study-33606b41d35115f887ea688b1a16f2ff85bf2fe4.tar.gz emulator-bug-study-33606b41d35115f887ea688b1a16f2ff85bf2fe4.zip | |
add launchpad bug reports without comments
Diffstat (limited to 'results/scraper/launchpad-without-comments/1376938')
| -rw-r--r-- | results/scraper/launchpad-without-comments/1376938 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/results/scraper/launchpad-without-comments/1376938 b/results/scraper/launchpad-without-comments/1376938 new file mode 100644 index 00000000..e64defbd --- /dev/null +++ b/results/scraper/launchpad-without-comments/1376938 @@ -0,0 +1,18 @@ +detect-zeroes=unmap fails to discard in some cases + +Under certain circumstances, QEMU 2.1.2 fails to discard the underlaying block. The command to start QEMU is: + +qemu-system-x86_64 -machine pc,accel=kvm -m 2G -smp 2 -vga std -usb -usbdevice tablet -drive if=none,id=ff,aio=native,discard=unmap,detect-zeroes=unmap,file=/tmp/test.qcow2 -device virtio-scsi-pci -device scsi-disk,drive=ff -cdrom /media/iso/archlinux-2014.06.01-dual.iso -vnc :1 + +Steps to reproduce: + + 0. qemu-img create -f qcow2 /tmp/test.qcow2 4G + 1. Boot in the guest (Arch Linux x86_64 with Linux 3.14.4) + 2. cat /dev/zero > /dev/sda. Observe a file of 4109M (size measured with `du -m` + 3. cat /dev/zero > /dev/sda + 4. blkdiscard /dev/sda + 5. Observe that test.qcow2 grows larger than 1M (13M in my testing). + +The results are more severe when you write other kind of data in step 2, for instance `base64 /dev/zero > /dev/sda` and then continuing with step 3 and 4 will result in a file of 3642M, after blkdiscard. + +It makes not much of a difference if I create an ext4 filesystem on top of it and use fstrim (or rm). \ No newline at end of file |