You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Wido den Hollander (JIRA)" <ji...@apache.org> on 2017/12/19 16:06:00 UTC

[jira] [Closed] (CLOUDSTACK-8104) Add TRIM/Discard support to Qemu

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-8104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wido den Hollander closed CLOUDSTACK-8104.
------------------------------------------
    Resolution: Fixed

This has been implement by adding VirtIO-SCSI 

> Add TRIM/Discard support to Qemu
> --------------------------------
>
>                 Key: CLOUDSTACK-8104
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8104
>             Project: CloudStack
>          Issue Type: New Feature
>          Components: KVM
>            Reporter: Wido den Hollander
>            Assignee: Wido den Hollander
>            Priority: Minor
>              Labels: gsoc2017
>
> Thinly provisioned volumes on storage devices continue to grow because the storage device has no idea of which blocks are in use.
> For SSDs the TRIM/Discard feature was invented to give free/unused blocks back to the flash device, but this can also be used for Qemu.
> Ceph's RBD for example supports trimming so that volumes can shrink again when blocks are no longer in use.
> This is supported since Qemu 1.5, but since 1.6 it also works for QCOW2 images.
> It however requires the new virtio-scsi to work optimal, so it requires some changes.
> For more information see:
> * http://wiki.qemu.org/ChangeLog/1.5#Block_devices
> * http://wiki.qemu.org/ChangeLog/1.6#Block_devices
> * http://ceph.com/docs/master/rbd/qemu-rbd/#enabling-discard-trim
> * http://wiki.qemu.org/Features/VirtioSCSI



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)