[Sheepdog] Reclaim free space using ATA discard

Wido den Hollander wido at pcextreme.nl
Mon Apr 12 12:46:49 CEST 2010


Hi,

Since kernel version 2.6.33 Linux supports the "discard" commando,
mainly used by SSD's for their wear-leveling and performance.

It's also called TRIM: http://en.wikipedia.org/wiki/TRIM

At the moment only Btrfs and EXT4 support trim/discard, but this could
be a nice feature for sheepdog.

If sheepdog reads the "discard" messages from the kernel in the VM you
could figure out which blocks are free again and shrink the used space
automatically.

Some more information about TRIM/discard:
* http://lwn.net/Articles/293658/
* http://en.wikipedia.org/wiki/Btrfs#Features
* http://www.archivum.info/qemu-devel@nongnu.org/2009-03/01144/%
28Qemu-devel%29-Re:-%28patch-2-7%29-qemu:-separate-thread-for-io.html


Might be a suggestion for Sheepdog?

-- 
Met vriendelijke groet,

Wido den Hollander
Hoofd Systeembeheer / CSO
Telefoon Support Nederland: 0900 9633 (45 cpm)
Telefoon Support België: 0900 70312 (45 cpm)
Telefoon Direct: (+31) (0)20 50 60 104
Fax: +31 (0)20 50 60 111
E-mail: support at pcextreme.nl
Website: http://www.pcextreme.nl
Kennisbank: http://support.pcextreme.nl/
Netwerkstatus: http://nmc.pcextreme.nl






More information about the sheepdog mailing list