- Joined
- Apr 12, 2021
- Messages
- 900
- Motherboard
- Asus z590 ROG Maximus XIII Hero
- CPU
- i9-11900K
- Graphics
- RX 6600 XT
- Mac
- Classic Mac
- Mobile Phone
You can get more info here.
Thank you. Due to the wonky nature of these forums you are quoting back to me the same information I offered to the forum back in the day before starting this thread, and for all I know back in the day I was repeating something others had already offered.
I hope you will agree that there's no info about what or why in that article. It's just a Scientology "run-down" of effects. No explanation of why.
I've tried to study the ATA spec and read a lot of history regarding the feature; I've been tracking the Trim subject for more than 10 years.
Trim, in general, is the single most mystical aspect of computing, followed maybe by divide-by-zero, but the comparison is not fair to divide-by-zero. The details have been lost to the web, but the best information I've ever found was early exchanges by Microsoft (Wintel) when the first internal SSDs were becoming available: their engineers got excited about getting the OS involved with inner-workings of new storage the same way they were excited about Winmodem, which was an early approach that gave the "valuable" intel CPU something to do, modulating and de-modulating, allowing systems integrators to save a couple of s $ of parts cost over using a dedicated modem. The ATA spec itself was one of these "inventions" in the days of SCSI, where an "active" bus terminator often cost hundreds dollars (today a 5$ usb drive is 100 billion times more complex than a SCSI terminator.)
Way back, real mac users howled that Apple would not enable Trim on third party drives claiming they were being denied a critical feature by a greedy company, but over in Unix-land it was well understood that Trim was a systems bugaboo with bad edge cases. Apple was simply helping users not shoot themselves in the foot.
As to if, when, and how Apple applies Trim on supported drives the subject itself a mystery, where all knowledge is anecdotal.
10 trees ago, over at Ars Technica there's you can read a PhD dissertation of diatribe on Flash pertaining to Trim, and you will come away that the author has no idea why Trim is needed.
The best research I've ever seen on Trim says that it can be effective in a broader design to address wear-leveling, which is the most troubling aspect of SSD design. Most users think it makes their drives faster, but the opposite tends to be true. Trim itself is a workload, and one that actually may be avoided by the drive supplier. There's really no Trim spec, just an ATA opcode with endlessly morphing semantics.
You may ask yourself today: Why is Trim not supported, and never has been supported at all, on removable drives?
You may ask yourself why does Linux implement Trim as two separate modes: 1) a "discard" option in fstab, and 2) as fstrim(1) command?
Getting back to immediate subject at hand, what I meant by explanation in my earlier post is a reckoning over why some controllers freak-out and die, what kind of Trim commands does macOS issue and when, why are these commands used?
The fact that Apple NVMe drives enable Trim by default is more about Intel than Apple. NVMe originated as Intel Optane, and the spec is an Intel creation. So the previous Wintel ways of thinking are behind it.
As to what Apple does with it, that's anybody's guess. Too bad everything we need to know is locked in a shed outside the walls of the garden.
Today, if the hackkintosher "disables" Trim using SetApfsTrimTimeout, is that a good thing? If so, why is Trim even a feature? If it's a bad thing, how do you feel about doing something bad to your drive to get your hack to work? How good or bad is it?! Does it matter that your data is at stake?
I started this thread because I lost two NVMe drives and all their data during the first month of building a new hack. As far as I know there will never be any explanation, and any other drives could blow at any moment!
But then I guess things have always been like this.