

Random writes put the new data in previously erased pages elsewhere, peppering a block of valid data with “patches of invalid data.” In order to write new data to these patches, the whole block – all 128 pages – must be erased. The complexity of writing data really starts to escalate in the case of random writes replacing previously written data. But a page can only be erased within a group of typically 128 pages called a block. Once a page is written, it cannot be rewritten until it is erased. Trim can be considered an aid to garbage collection.įor the short explanation flash memory is organized in groups of pages where data can be written. OCZ SSDs use a Sandforce controller which has built in foreground garbage collection that delays the need to erase blocks, reducing but not removing the need for TRIM support.

System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original $sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage You can also enable trim manually by looking for all 'Apple' occurrences in the file and patching them in a hex-editor or via terminal: #1. Which checks if the ssd is a 3rd-party or Apple Branded SSD: The Trim Enabler patches the following Kext-File /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage
