Izzette Posted September 29, 2017 Share Posted September 29, 2017 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 More sharing options...
CuriousTommy Posted October 5, 2017 Share Posted October 5, 2017 Is there any way to force macOS to treat my drive as an SSD? Any help appreciated. There is a command on Terminal to force MacOS to enable trim: sudo trimforce enable Source: http://ntfs-formac.com/enable-trim-third-party-ssds-macos-sierra-trimforce/ Link to comment Share on other sites More sharing options...
Izzette Posted October 10, 2017 Author Share Posted October 10, 2017 Unfortunately, this didn't work for me, but I found another way around the issue: code. github.com/Izzette/hfs_trim (might be deleted after merge with github.com/lgerbarg/hfs_trim). Link to comment Share on other sites More sharing options...
Recommended Posts