[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Using TRIM to shrink qcow2 images
From: |
François Revol |
Subject: |
Re: [Qemu-devel] Using TRIM to shrink qcow2 images |
Date: |
Thu, 08 Aug 2013 13:47:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 |
On 08/08/2013 12:34, Ralf Ramsauer wrote:
> Hi,
>
> QCOW2 uses a similar idea like file holes (sparse files) on filesystems [1].
> RAW Images also may use file holes.
>
> If qemu would support TRIM, then the guest could easily discard and zero
> all unused blocks.
> The host system could detect all unused blocks in a (e.g.) qcow2 image
> and shrink it down to its minimum size.
>
> Did anyone already think about that?
>
Yes but no time to implement.
I believe VirtualBox has some support for TRIM already btw.
François.