Jump to content

Discard/TRIM on QEMU (Sierra)


Izzette
 Share

3 posts in this topic

Recommended Posts

I'm having trouble getting macOS Sierra to recognize my QEMU SATA drive as an "SSD" with discard support. I use QEMU/Libvirt professionally and know discard is supported in my setup (SATA Native IO with discard=unmap / LVM thinpool with passdown discard / LVM with discard enabled / LUKS with discard enabled / 480G SanDisk SSD which supports discard). The Windows and Linux guests on the same box have no problems utilizing TRIM, but Sierra won't and ends up bloating allocated data tens of gigabytes larger than I'm actually using. It's important I get this fixed, because without it my macOS VM ends up eating 100% of the drive space, even though it only actually needs about 20% right now. In the "System Report" my drives "Medium Type" is reported as "Rotational" and there is no "TRIM Support" field. I've tried patching the IOAHCIFamily kext, but it doesn't seem to matter because my drive isn't recognized as an "SSD" in the first place. Is there any way to force macOS to treat my drive as an SSD? Any help appreciated.

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...