6 ms·
It'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 si
by InclinedPlane 16y ago
It'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]"
- InclinedPlane 16y agoPrior to TRIM an SSD had to assume that any block that had ever been written was still in use by the filesystem. If you end up creating lots of temp files, for example, the SSD will think that you are operating at capacity saturation regardless of actual usage. This can result in uneven wear leveling and excessive physical fragmentation which could decrease performance and useful lifetime of the drive. Additionally, it could increase the need for "write amplification" which also negatively impacts performance.
- 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).