What is TRIM?
To first explain what TRIM is, you’ll need to understand how data is written and deleted on hard disks. You see, a regular spinning hard disk writes data linearly and actually doesn’t remove data immediately. After you empty the Trash (or Recycle Bin), the system just flags the space occupied on that particular part of the drive as empty or “free”. Whenever the system needs to write new data on that space, it firsts deletes any occupying data and then writes the new data on it.
On an SSD, this process slightly different: data is stored in flash memory cells that are grouped into pages. 128 pages are then grouped into blocks. And deletion procedures can only be carried out on the block level i.e. the entire block has to be first cached (read and stored in memory cache), the block erased, then the cached block is modified to include the new data and finally written on the flash media again. This is called the read-erase-modify-write cycle. Sounds tedious, right?
Simply put, TRIM is a command sent from the system to the SSD, telling it to perform the read-erase-modify-write cycle whenever a file is deleted instead of waiting until there is new data to be written. Why is this better? Because ultimately, the SSD’s write performance will remain unaffected over time. Only the deletion process takes a little longer.
Trim enabler on hackinotosh yosemite 10.10
make sure Add "kext-dev-mode=1 in boot flags)
delete previous kext in sys/lib/extensions
install it with kext utility
in terminal give this cmd.
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
this will enable trim on non apple SSD
Chameleon Bootloader Users
NO need to install attached kext.
just type in terminal
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|x00x41x50x50x4cx45x20x53x53x44x00|x00x00x00x00x00x00x00x00x00x00x00|' /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 Bootloader users.
NO need to install attached kext
Just type in config.plist file located in efi>clover