Apple adds SSD TRIM support to Mac OS X 10.7 Lion beta

Posted:
in macOS edited January 2014
Apple has added limited TRIM support to the latest developer release of Mac OS X 10.7 Lion, which should enhance the long term performance of Solid State Drives.



While Apple has already started incorporating SSDs into its Macs, it hasn't yet added TRIM, a specific type of operating system support intended to coordinate disk use between the system and the SSD controller. The feature was previously detailed as having "no" support in System Profiler (below, top).



The new Lion developer preview is reported to add TRIM support however, with users of Apple SSDs noting a "yes" (actually "oui") for support according to a report by the French blog MacGenerations (below, bottom).



Unlike conventional magnetic hard drives, SSDs must be erased before being rewritten with new data, somewhat similar to CD-RW disc. This housekeeping task can be managed by some SSD controllers, but the TRIM command is designed to keep SSDs efficiently optimized at all times, preventing a gradual decline in performance as garbage stacks up.



Cleaning up unused bits of deleted files on SSDs requires a sophisticated balancing act between making sure the drive is clean and ready for new write operations, while also limiting unnecessary wear, as the flash cells used by the devices wear out relatively quickly after a finite number of erase/write cycles, compared to the very long life of the recording surfaces of magnetic storage disks.



The TRIM command is part of the ATA interface standard. So far, it appears Apple's support in Lion is only activated for SSDs shipped by the company and not third party devices, but this is likely to be fleshed out more as Lion develops.





«134

Comments

  • Reply 1 of 63
    I remember a friend who worked at Apple relating a story about the early LaserWriters - the utility could rename any one of them, and the name was stored in the unit in flash memory. A favorite pastime at Apple seemed to be renaming others' LWs so you never really knew where you were printing to - your recipes could come out of the boss' printer, you could suddenly be printing to a machine with a less-than-appropriate name, etc. I got an AppleLink message one day bleakly reporting that we should know you can only rename a LW 256 (?) times and after that it's stuck with that name. The lack of further detail suggested it as not a particularly happy discovery.
  • Reply 2 of 63
    Good news - about time really.
  • Reply 3 of 63
    trim is very much required with all the flash going into apple notebooks. I thought they had implemented some rudimentary garbage collection behind under the hood, but unfortunately they haven't. The quality drop in my air ssd (11") is considerable without it.
  • Reply 4 of 63
    haggarhaggar Posts: 1,568member
    How do SSD drives handle the situation when the memory cells wear out and are no longer writable? What happens to user data on the drive?



    Will the SSD drive also start showing a decline in storage capacity when viewed in the OS?
  • Reply 5 of 63
    does anything equivalent have to be implemented on non-ssd flash storage? for example the flash memory on our iPhones?
  • Reply 6 of 63
    Good news. Means I may not have to routinely restore my SSD to default configuration and re-image my drive.

    (Even if I do have to do this, the speed increase with the Crucial 256 ssd is astounding! Well worth yearly maintenance)
  • Reply 7 of 63
    I have an SSD and it shows "No" under TRIM support. Perhaps only Apple-installed SSDs are blessed.



  • Reply 8 of 63
    Quote:
    Originally Posted by jpellino View Post


    "And "finite" = what number?"



    Most flash memory specs state 100,000 write cycles or more, which is plenty for most uses.



    Wear-leveling strategies will move around block of data periodically, so that rarely written files (i.e., OS or application binaries) and frequently-written files (swap files, business databases) even wear out the device and extent the usable life span.
  • Reply 9 of 63
    Quote:
    Originally Posted by Toyin View Post


    Good news. Means I may not have to routinely restore my SSD to default configuration and re-image my drive.

    (Even if I do have to do this, the speed increase with the Crucial 256 ssd is astounding! Well worth yearly maintenance)



    lack of TRIM support is why I ended up buying an OWC SSD with a SandForce controller, no need to erase the drive on a regular interval.
  • Reply 10 of 63
    postulantpostulant Posts: 1,272member
    The Trim support is nice, but the shocker to me was the Recovery HD. Apparently, when you install Lion, it automatically makes a recovery partition for Recovery Mode and Disk Utilities. So now you don't need a disc to enter Recovery - all you do now is "option boot. This is further proof(to me) that Apple plans to abandon optical drives in the future.



  • Reply 11 of 63
    Quote:
    Originally Posted by DeputyRob View Post


    I have an SSD and it shows "No" under TRIM support. Perhaps only Apple-installed SSDs are blessed.







    OWC drives don't support TRIM. They don't need to, since they use a SandForce controller.



    EDIT: nevermind, they do support TRIM. However, you still don't need it.
  • Reply 12 of 63
    Quote:
    Originally Posted by Toyin View Post


    Good news. Means I may not have to routinely restore my SSD to default configuration and re-image my drive.

    (Even if I do have to do this, the speed increase with the Crucial 256 ssd is astounding! Well worth yearly maintenance)



    how do you go about doing that if I may ask? I could use it on my airs flash.
  • Reply 13 of 63
    Quote:
    Originally Posted by Postulant View Post


    The Trim support is nice, but the shocker to me was the Recovery HD. Apparently, when you install Lion, it automatically makes a recovery partition for Recovery Mode and Disk Utilities. So now you don't need a disc to enter Recovery - all you do now is "option boot. This is further proof(to me) that Apple plans to abandon optical drives in the future.







    hmm, very interesting, so how would this work exactly?
  • Reply 14 of 63
    al_bundyal_bundy Posts: 1,525member
    Quote:
    Originally Posted by OriginalG View Post


    does anything equivalent have to be implemented on non-ssd flash storage? for example the flash memory on our iPhones?



    i think so



    i had to restore my 3GS as new a few weeks ago and the sync time for a few hundred songs suddenly dropped by A LOT when i put everything back on
  • Reply 15 of 63
    postulantpostulant Posts: 1,272member
    Quote:
    Originally Posted by myapplelove View Post


    hmm, very interesting, so how would this work exactly?



    You hold down the "option" key when rebooting - You're then given the option to boot into the Recovery drive. You'll find all of the Disk Utility options, along with the ability to restore from Time Machine, and a new option to connect to you wifi network and open Safari in case you need online support during the recovery process.
  • Reply 16 of 63
    Why didn't they add this in the beginning? They've been supporting SSDs in their Macs since Leopard, maybe even earlier.
  • Reply 17 of 63
    Quote:
    Originally Posted by myapplelove View Post


    how do you go about doing that if I may ask? I could use it on my airs flash.



    I haven't done this and I'm not sure how to do this within OSX. It can be done using Windows 7 pretty easily (google Diskpart commands).



    When/If I ever have to do this, I will use an external drive to boot my MBP, Launch Parallels, then wipe the ssd drive using Windows 7. From there I can restore my ssd from a cloned drive.



    For the comment about OWC, never saw anything about those drives when researching SSDs. I'm kind of surprised, since I read so many comparisons with the Crucial SSD. With TRIM support coming, it maybe a moot point, but I'll keep these drives in mind for the future.
  • Reply 18 of 63
    Quote:
    Originally Posted by Toyin View Post


    For the comment about OWC, never saw anything about those drives when researching SSDs. I'm kind of surprised, since I read so many comparisons with the Crucial SSD. With TRIM support coming, it maybe a moot point, but I'll keep these drives in mind for the future.



    It's not just OWC drives, but any SSD with a SandForce controller. They are pretty nice drives though. They even make special ones to be used in RAID arrays.



    OWC SSD
  • Reply 19 of 63
    pmzpmz Posts: 3,433member
    Quote:
    Originally Posted by Postulant View Post


    You hold down the "option" key when rebooting - You're then given the option to boot into the Recovery drive. You'll find all of the Disk Utility options, along with the ability to restore from Time Machine, and a new option to connect to you wifi network and open Safari in case you need online support during the recovery process.



    This is so freaking great, I can't even express.
  • Reply 20 of 63
    So what is the benefit of SSDs really? I mean, I keep hearing that in practice they are no faster than conventional HDs, they can't take as many rewrite cycles and you can't retrieve deleted files. Did I mention they are bloody expensive too?

    Can someone clarify why on earth anybody would want to use them?
Sign In or Register to comment.