6 ms·
Apple adds SSD TRIM support to Mac OS X 10.7 Lion beta
- InclinedPlane 16y agoIt's disappointing that this has been lacking, it's a very important feature for proper use of modern SSDs and it's been in Windows since late 2009 and Linux since early 2010.
- kinetik 16y agoEspecially so given Apple's early adoption of SSD.
- masklinn 16y agoWhich so far as proven not to be so important, especially as Apple has historically been using SSDs very resilient to that issue (according to Anandtech's tests of the 2010 MBAs).
- CountSessine 16y agoBut the 2010 MBAs aren't using their flash storage through a SATA interface - they're directly mounted on the motherboard, probably exposed as a pure PCIe device. TRIM is irrelevant for them. UPDATE: BAH! Wrong. The MBA uses a Toshiba t6ug1xbg controller, which seems to provide a SATA interface. So it is an issue.
- masklinn 16y ago> The MBA uses a Toshiba t6ug1xbg controller, which seems to provide a SATA interface. Yes, the MBA uses an SSD, just not one that's in a normal drive package. > So it is an issue. As I said, not really: http://www.anandtech.com/show/3991/apples-2010-macbook-air-11-13inch-reviewed/4 http://www.anandtech.com/show/3991/apples-2010-macbook-air-1... (scroll to the second half of the page)
- r0s 16y agoIf you think an SSD can be "resilient to that issue" you don't understand the problem. From the Anandtech article you mention: "Either the Toshiba controller is using over 12% of the total NAND capacity as spare area, or there's only 30GB of usable flash on the drive." So they're lying about capacity to offset the need for TRIM. Who knows the long-term implications of that decision? I noticed the benchmark didn't saturate the drive to capacity before speed tests. Maybe they didn't mention it, sloppy either way. Perhaps long term results aren't relevant; a frequent upgrade cycle is assumed. I suppose the average user is agnostic to the capabilities of their hardware, like you suggest.
- Retric 16y agoThere is no reason trim needs to be done in the OS. (Not that I know of any drive that does this, but it should be possible without any OS interaction.)
- wmf 16y agoWithout TRIM, there's no way for an SSD to know (without cheating) which blocks are considered free by the filesystem. Increasing the FTL free space allows an SSD to absorb more writes at full speed before needing to GC.
- Retric 16y agoA SSD that understands NTFS and the other major file systems while "cheating" is not impossible. Also The TRIM command does not work on RAID volumes so there is plenty of room for improvement.
- moe 16y agoWrong. Come on, it's in the first sentence on http://en.wikipedia.org/wiki/TRIM http://en.wikipedia.org/wiki/TRIM ...
- Retric 16y agoSometimes you need to read more than just the first line to know what's going on. "More recent SSDs will often contain internal idle/background garbage collection mechanisms that work independently of TRIM; although this successfully maintains their performance even under operating systems that do not (yet) support TRIM, it has the drawback of increased write amplification and associated increased wear of the flash cells.[4]"
- wmf 16y agoThis "resilience" is overrated; Apple's Samsung/Toshiba SSDs don't get much slower over time, but they start out slow to begin with. They're effectively pre-degraded.
- czhiddy 16y agoThe complaint is that Apple's lack of TRIM support impacts performance on their SSDs; the Anandtech article says that this isn't the case. The fact that their SSDs are slower than the competition is a separate argument.
- seabee 16y agoCorrect me if I'm wrong, didn't they also discover that it becomes a serious problem if you use over 90% of your drive space?
- stcredzero 16y ago"Doctor, it hurts when I do that." "Don't do that!"
- r0s 16y agoIt would be unavoidable. The controller writes to areas that haven't been written first, and not 'deleted' areas. "90%" capacity will be reached no matter how diligently the user prunes their files.
- stcredzero 16y agoThe controller writes to areas that haven't been written first, and not 'deleted' areas. [citation needed]
- r0s 16y agoGarbage collection in file systems? There's quite a bit to read. Lets stay on subject though: http://en.wikipedia.org/wiki/TRIM http://en.wikipedia.org/wiki/TRIM "Because of the way that file systems typically handle delete operations, storage media (SSDs, but also traditional hard drives) generally do not know which sectors/pages are truly in use and which can be considered free space. Delete operations are typically limited to flagging data blocks as "not in use" in the file system.[5][6] Contrary to, for example, an overwrite operation, a delete will therefore not involve a physical write to the sectors that contain the data. Since a common SSD has no access to the file system structures, including the list of unused clusters, the storage medium remains unaware that the blocks have become available."
- stcredzero 16y agoI'll agree that's been annoying. However, I've been happily running OS X with a Crucial RealSSD 300 on an original unibody Macbook since last December. Everything still seems zippy and instant. I'll let everyone know if Lion seems to make things faster. (More like prevents things from slowing down.) I hope Apple adds a "secure erase" option that just overwrites files with 1's exactly one time. From what I've read, this is plenty secure for most people, and some SSDs can use this as a signal that a block is no longer in use. (My drive doesn't need this, but some people with older SSD would benefit from this.)
- InclinedPlane 16y agoA good SSD will still seem much faster than a magnetic disk even without support for TRIM. TRIM just ensures that performance is as high as it should be throughout the life of the drive, and also that wear leveling reaches its full potential. On consumer MLC drives, especially those that are filled closer to their capacity, the use of TRIM can significantly affect performance and drive longevity.
- swaits 16y agoUmmm, does the OS have any control over physical write location on an SSD?
- stcredzero 16y agoFrom what I understand OS X does as much as it can to reuse whatever blocks it's already used. The SSD can present whatever physical locations it wants to OS X, so there's no direct control, but this policy preserves as many "unused" blocks as possible, which tends to be as friendly as possible to garbage collection and wear leveling. I am certainly not an expert, however.
- tomhenderson 16y agoIsn't that what 'Secure Empty Trash...' does? (In the Finder menu)
- 16y ago
- r00fus 16y agoTRIM is an instruction set for OS-level disk garbage collection. Sandforce and Samsung SSD chipsets have native GC built-in. All that TRIM would do is improve write performance (so it doesn't block at random for GC) and allow for non-OEM SSDs.
- thurn 16y agoHow is it possible to replace TRIM at the hardware level? I wasn't aware there was any way for the drive to know what files the filesystem considers deleted. Unless the hardware module somehow detects what file system you're using...
- InclinedPlane 16y agoHardware GC is useful and decreases write-amplification problems, but it doesn't remove the need for TRIM (which affects wear leveling and physical fragmentation).
- deleted 16y ago[deleted]
- ComputerGuru 16y agoIt's unfortunately NOT supported for everyone. http://neosmart.net/blog/2011/os-x-10-7-lion-adds-trim-support-but-not-for-all/ http://neosmart.net/blog/2011/os-x-10-7-lion-adds-trim-suppo... That's on a top-of-the-line C300 256GB. It's detected as an SSD, but no TRIM support though the drive itself does have TRIM.
- blinkingled 16y agoHmm, typical Apple - we will support only what we ship. But it should be easy to enable for 3rd party drives - probably there is a plist somewhere that maintains a list of supported drives that can be hacked or worst case a kext needs to be hacked.
- sjs 16y agoYes typical Apple, they view their products as appliances. As Steve Jobs said in 2006 or 2007[1]: "We're getting to the point where everything is a computer in a different form factor. So... So what? Right, so what if it's built with a computer inside it. It doesn't matter. It's "what is it?" How do you use it? You know, how does the consumer approach it? And so who cares what's inside it anymore." Of course we still see them as computers because we're geeks, but for most people they simply are appliances. If things break they're not going to open up the machine and take a look, just like their TV, washing machine, etc. Whether or not you feel that computers should be appliances, Apple has always had this view of their products for better and for worse. [1] http://www.youtube.com/watch?v=Vc8QXzYQoBY http://www.youtube.com/watch?v=Vc8QXzYQoBY
- wtn 16y agoIt could be that support is coming. Or it could be that some SSD devices have buggy TRIM, or TRIM that works in different ways. Too early to say, but I'll wait for SSD expert comment on this matter. However, I would be disappointed if it's not in by the release of 10.7.1.
- blinkingled 16y agoThe Mac Pro is an appliance? Apple sells Graphics Cards, RAID Cards and stuff as add-ons to the Mac Pro. Mac Pros also can use SSDs and not many are going to be bought from Apple or packaged inside when it is bought.
- ben1040 16y agoTo someone who bought a 2010 MBA in October and doesn't get an OS that supports TRIM until this summer, what's going to be the impact on the useful life of the SSD?
- hackermom 16y agoNone, I'd say. I've been running an older X25-m generation on a Win2K box for 14 months now. No TRIM in firmware, no TRIM in W2K. Disk has been filled and cleaned out numerous times since I bought it and it still performs adequately. I'd be surprised if your SSD would suffer from the few months until you get TRIM in 10.7.
- PStamatiou 16y agoOn the other side of things, I've owned 3 X25-M's. A first gen that died in 9 months, a second gen (RMA replacement) that just started acting weird and corrupting things last month (was about 15 months old and was in a RAID 0 array with another X25M but I undid the array and began using the better of the two X25M's). Needless to say I use Dropbox, Time Machine and Carbon Copy Cloner very often. related: http://paulstamatiou.com/ssd-raid-performance-9-months-later http://paulstamatiou.com/ssd-raid-performance-9-months-later http://paulstamatiou.com/ssd-corrupt-failure-intel-x25m http://paulstamatiou.com/ssd-corrupt-failure-intel-x25m
- dedward 16y agoIt's not about useful life -it's just about performance. Your write performance will be better if you have TRIM support... that's all.
- adsr 16y agoApparently the SSD in the MBA uses the same Toshiba controller as this Kingston drive. It doesn't seem to need TRIM but takes care of garbage collection by itself. http://www.anandtech.com/show/4010/kingston-ssdnow-v-plus-100-review http://www.anandtech.com/show/4010/kingston-ssdnow-v-plus-10...
- CognitiveLens 16y agodanudey left a helpful link to a comment I made recently about TRIM support in Lion. Apparently, 10.6 is doing some good SSD maintenance even without TRIM support, and SSDs do not experience the same performance drops as they would on a Windows machine without TRIM support, but it is not clear why this is the case. http://www.bit-tech.net/hardware/apple/2010/07/01/mac-ssd-performance-trim-in-osx/7 http://www.bit-tech.net/hardware/apple/2010/07/01/mac-ssd-pe...
- r00fus 16y agoDoes that apply to all SSDs? From what I gather TRIM is just a spec for formalized OS-level garbage collection hooks. Some disks (like Apple-installed Samsungs) do GC at the disk-level. My Sandforce (Vertex 2) has disk-level GC (as well as TRIM), and sometimes will block for a long period on writes now on OSX... I haven't tried it on a different OS yet.
- wmf 16y agoAs I said in the other thread, displaying the fact that an SSD supports TRIM does not prove that HFS+ uses TRIM, but it's a good sign.
- wooptoo 16y agoBend over and get screwed by Apple. At every OS update.
- issaco 16y agointeresting discussion of TRIM here: http://www.realworldtech.com/forums/index.cfm?action=detail&id=116082&threadid=115697&roomid=2 http://www.realworldtech.com/forums/index.cfm?action=detail&... (read the thread segments which relate to TRIM)