What is Trim For SSD
A Trim command which allows an operating system to inform a solid-state drive (SSD) which blocks of data are no longer considered in use and can be wiped internally.Trim was introduced soon after SSD’s started to become an affordable alternative to traditional hard disks. Because low-level operation of SSDs differs significantly from hard drives, the typical way in which operating systems handle operations like deletes and formats resulted in unanticipated progressive performance degradation of write operations on SSD’s
In other words TRIM helps to maintain the performance of solid state drives (SSDs) at an optimal level over the lifetime of the drive. TRIM functions by actively deleting invalid data from the SSD’s memory cells to ensure that write operations perform at full speed
On this guide i will show you how to enable Trim For Non Apple SSD which gives more performance to you system
Chameleon/Real Mac User
Launch this in terminal from /Application and type following
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.bak sudo perl -pi -e 's|\x00\x41\x50\x50\x4c\x45\x20\x53\x53\x44\x00|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage sudo touch /System/Library/Extensions sudo kextcache -prelinked-kernel /System/Library/Caches/com.apple.kext.caches/Startup/kernelcache -K /System/Library/Kernels/kernel /System/Library/Extensions
Clover Boot Loader Method
This is valid only if you use Clover boot loader. Add manually the KextPatch in config.plist:
<key>KextsToPatch</key> <array> <dict> <key>Name</key> <string>IOAHCIBlockStorage</string> <key>Find</key> <data> AEFQUExFIFNTRAA= </data> <key>Replace</key> <data> AAAAAAAAAAAAAAA= </data> <key>Comment</key> <string>TRIM Enabler</string> </dict> </array>
And delete kernel cache and rebuild using following terminal commands
sudo rm -r/System/Library/Caches* sudo touch /System/Library/Extensions sudo reboot
Note:- Following guide is tested on 10.7.5 ,10.8.5,10.9.5,10.10.4 and latest El Capitan 10.11 beta 2 also this is works on both Real Mac System and Hackintosh System and it is work flawless.