VOGONS


First post, by Dimos

User metadata
Rank Newbie
Rank
Newbie

Greetings to all! A couple of days ago i finally installed an Ssd drive on my Windows XP build. Knowing of course that from Windows Vista and before no Microsoft OS natively supports the Trim command for Ssd drives i have spent quite some time searching for some kind of software that could manually Trim an Sdd drive. Of course modern Ssds work so well that even without Trim you could use one on an old Os and don't have to worry about performance reduction or premature wear (Garbage Collection works at the firmware level, independently from the OS, Trim just makes this procedure easier, more efficient). After several hours searching various forums, including Vogons, i have found a couple of software utilities that had a manual Trim option. I installed and tested three of them (Anvil's Storage Utilities, Iobit Smart Defrag and Elpamsoft Ssd Tweaker) but none of them provided any kind of documentation concerning the Trim option (if it works only for OSes that natively support Trim and the only thing they do is manually sending the command or they somehow work on older OSes and in which way do they do that exactly) and i was uncertain if they did anything really for Windows XP. Until yesterday i came across some info that suggested that Acronis True Image 2014 also has an option that enables Trim and the person mentioning that also verified that it was indeed working on XP after using Trimcheck. So intrigued by this i searched a little further and came across this document: https://dl.acronis.com/u/pdf/ATIH2014_userguide_en-US.pdf
In this it is mentioned that:

Note: The utility uses the standard TRIM command to inform an SSD about blocks of data that are no longer in
use and can be erased. Please make sure that your SSD has necessary firmware to support it.

and also:

Trimming an SSD by means of Acronis True Image 2014 is reasonable only if you use Windows Vista or earlier. Windows 7 supports […]
Show full quote

Trimming an SSD by means of Acronis True Image 2014 is reasonable only if you use Windows Vista
or earlier. Windows 7 supports the standard TRIM command right out of the box and erases cells as
soon as data is deleted.
To trim an SSD:
1. On the sidebar or on the toolbar, click Tools & Utilities and select Trim SSD.
This opens the wizard.
2. From the list of available drives, select the SSD(s) that you want to trim and click Next.
3. Review the summary page and click Proceed.
4. If you have run the wizard under Windows, click Reboot when prompted.
After the reboot, the operation will automatically proceed in the standalone Linux-based
environment. When the operation is complete, the wizard will boot up Windows again.

So it explicitly says that what it does is to send the standard Trim command and that this function actually is provided in order to be used with older OSes that don't natively support Trim. So as you can imagine i installed the specific version (2014) of the software (newer versions seem to lack the Trim option, haven't verified that myself), found the Trim option, selected my drive and everything went as expected, the pc restarted, it entered into the linux based boot environment, Trim completed and computer restarted again. To be absolutely certain that it worked i run Trimcheck (very useful tool btw): https://files.thecybershadow.net/trimcheck/ before and after the procedure and verified that Trim actually works! So that's it, there is at least one completely verified third party tool that actually does this job and thought that it would be useful to share this with anybody that might be interested!

Cpu: Intel i5 3570k
Gpu: Gigabyte GV-N970IXOC-4GD
Ram: G.Skill Ares F3-2133C11D-16GAR
Mobo: Asus P8h61-m LX R2.0
Hdd: T-Force Vulcan Z 512 gb Ssd
Psu: Thermaltake Hamburg 530w
Soundcard: Creative SB Audigy RX
Os: Windows XP Sp3 x86

Reply 1 of 14, by Trashbytes

User metadata
Rank Oldbie
Rank
Oldbie

Have been using SSD drives on retro systems for years and never once bothered with Trim, its simply not required. Many will try and argue otherwise but for a system being used rarely with a drive that will never reach capacity and with as many pointless services turned off that write to the disk .. the drive will never need it, modern SSD drives have amazingly good garbage and provisioning firmware and can handle what little cleanup is required on any retro system without the need for 3rd party tools.

I dare say the SSD will outlive the retro system its placed into with little to no intervention from the user.

Naturally their arguments apply if the drive will be in a heavy drive use environment or the retro rig is being used 24/7...but I cant see that ever being the case since we all know retro enthusiasts are not stupid enough to subject any retro system to that.

IIRC there is also an Intel Trim tool that is available for Intel SSD drives, IIRC Crucial also has one.

There is also one from Rlowe which I believe still works that can be run from DOS.

I dont know of any that can handle Trim for a Fat16 SSD.

Reply 2 of 14, by Dimos

User metadata
Rank Newbie
Rank
Newbie

I couldn't agree with you more. The controllers and firmware in today's Ssds are perfectly fine in ensuring that those drives will work flawlessly on older Oses that don't natively support Trim. In all but the most extreme cases one shouldn't worry about his Ssd perfoming just fine and having a long lifespan, without the need to do anything in particular to ensure that. Despite this, having the ability to Trim your Sdd or tweaking some settings (e.g. disable Firefox disk caching ) is definitely a plus. Of course there are a couple of proprietary tools from Ssd manufacturers that were released mostly in the early days of Ssd wider commercial availability that probably give you the option to Trim your disk, but these are mostly working each with a specific vendor drive and with specific controllers found mostly on Ssds from those days.

Cpu: Intel i5 3570k
Gpu: Gigabyte GV-N970IXOC-4GD
Ram: G.Skill Ares F3-2133C11D-16GAR
Mobo: Asus P8h61-m LX R2.0
Hdd: T-Force Vulcan Z 512 gb Ssd
Psu: Thermaltake Hamburg 530w
Soundcard: Creative SB Audigy RX
Os: Windows XP Sp3 x86

Reply 3 of 14, by Trashbytes

User metadata
Rank Oldbie
Rank
Oldbie
Dimos wrote on 2025-03-24, 14:14:

I couldn't agree with you more. The controllers and firmware in today's Ssds are perfectly fine in ensuring that those drives will work flawlessly on older Oses that don't natively support Trim. In all but the most extreme cases one shouldn't worry about his Ssd perfoming just fine and having a long lifespan, without the need to do anything in particular to ensure that. Despite this, having the ability to Trim your Sdd or tweaking some settings (e.g. disable Firefox disk caching ) is definitely a plus. Of course there are a couple of proprietary tools from Ssd manufacturers that were released mostly in the early days of Ssd wider commercial availability that probably give you the option to Trim your disk, but these are mostly working each with a specific vendor drive and with specific controllers found mostly on Ssds from those days.

The Rlowe one works on any drive but only for Fat32, not entirely sure why it wouldn't also work for Fat16 but I assume there is some shenanigans going on with Fat16 and SSDs in general . .its a rather odd partition format for them.

As for NTFS your tool should work just fine.

The other way is to boot via Linux which IIRC has Trim support and should Trim the SSD without damaging the partition on it.

Reply 4 of 14, by wierd_w

User metadata
Rank Oldbie
Rank
Oldbie

ThereBeDragons when using 'garbage tier' flash though, like SD->IDE devices.

(Or driving a microSD card in the slot like it was a normal disk, such as on a reflashed chromebook. Legacy Bios equipped versions of custom firmware exist, and in theory, sbemu and pals would let these run as low cost dos pseudo-retro machines)

These systems would benefit from write behind caching for the write-combining features of such caching, because this kind of flash often lacks the kind of garbage collection and wear levelling found in a proper SSD, and get nuked very fast from write amplification.

Caveat emptor.

Reply 5 of 14, by Trashbytes

User metadata
Rank Oldbie
Rank
Oldbie

Yeah SD cards are not SSD drives and really really shouldn't be treated like they are, not sure about Compact Flash however, its got a bit more robust firmware but still I wouldn't treat it like its a full SSD.

I like them both as DOS drive replacements though, DOS is pretty easy on NAND due to its fairly low writes to the drive, Win 3.11 should be fine too so long as the system has plenty of ram and you turn off swapping.

Still buyer beware, if a deal is too good to be true then it usually is.. especially with Nand.

Reply 6 of 14, by Dimos

User metadata
Rank Newbie
Rank
Newbie

Booting a live Linux distro to Trim your Ssd is of course another option, but (if i am not mistaken) most of these distros support only Fat32 Trimming, so you have to pick one that does this on Ntfs also. Another way to do this would also be dual booting, with the second Os being Windows 7 and newer and using the newer OS to Trim your drive. As far as Fat16 is concerned, i have absolutely no idea. I also agree about SD.

Cpu: Intel i5 3570k
Gpu: Gigabyte GV-N970IXOC-4GD
Ram: G.Skill Ares F3-2133C11D-16GAR
Mobo: Asus P8h61-m LX R2.0
Hdd: T-Force Vulcan Z 512 gb Ssd
Psu: Thermaltake Hamburg 530w
Soundcard: Creative SB Audigy RX
Os: Windows XP Sp3 x86

Reply 7 of 14, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Not TRIM, but garbage collection..
Wasn't there that "trick" that the SSD could be encouraged to do a "clean up" by entering CMOS Setup straight after powering on the PC?
The way I remember, the PC is simply left running Setup for a while and then the SSD would do its job because it's idling without being talked to by an OS.

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 8 of 14, by wierd_w

User metadata
Rank Oldbie
Rank
Oldbie

Yes. For a real SSD, that would do.

Again, SDcard is not a real SSD, and has no such function. It's designed to be as cheap to manufacture as possible, meaning the nand controller inside is hyper simplistic.

That's why they die so easily from abuse, and need to be treated special. (And why the SDCard Assn demands they be formatted with exfat, which enforces that treatment.)

Reply 9 of 14, by Jo22

User metadata
Rank l33t++
Rank
l33t++

Ah, okay. I know not much about SD cards, except that they're sisters of MMC cards and also being known as TF cards in the far east.
I vaguely remember that they have (had) a microcontroller comparable to a PIC16F84, also. But that was 20+ years ago.
CF cards are more like IDE drives and are physically bigger, so they have more room for a possible controller.

"Time, it seems, doesn't flow. For some it's fast, for some it's slow.
In what to one race is no time at all, another race can rise and fall..." - The Minstrel

//My video channel//

Reply 10 of 14, by javispedro1

User metadata
Rank Member
Rank
Member

Older SSDs may work more reliably sans trim. That is because TRIM appeared decades after SSDs did. Most of my flash-based do not support trim at all. It was the era when controllers would try to do intelligent/stupid things (included but not limited to seaching for FATs). In addition, older SSDs have just way more PE cycles anyway.

A newer SSD is unlikely to do anything fancy and will likely rely almost completely on the host, but here I'm just guessing. On the other hand newer SSDs have lot more capacity which also helps. Can't beat that.

But again, I would agree this is more SSD-related paranoia. A single Win10 install likely performs more writes to disk than a 9x install would during its entire lifetime...

Reply 11 of 14, by shamino

User metadata
Rank l33t
Rank
l33t

To manually TRIM in XP I've used the bright and colorful "AData SSD Toolbox". It doesn't care what brand your SSD is.

The attachment adata-ssd-toolbox-2.0.1.png is no longer available

It also shows SMART status and has other "optimization" and utility options like a "Secure Erase" function. I don't think I've used those.
Ironically my intended "high powered XP" system is the one where manual TRIM fails, and I think I have AMD's chipset drivers to blame for that. But it worked on every other system I've tried it with.

There's a workaround to mitigate the need for TRIM.
Without TRIM, the list of logical addresses that the SSD thinks represent real data is constantly growing, and never shrinking, because TRIM never tells it to drop any of them.
If(when) you reach the point where almost all logical addresses have been used by the OS at some point, then the drive thinks it needs to maintain essentially it's full capacity worth of data, associated to each of those addresses. "Garbage collection" becomes analogous to defragging a filled up hard drive. Dozens of rewrites trying to rearrange the data while keeping all of it intact. This heavy "write amplification" is the cause of bad performance and greatly accelerated wear when an SSD gets into this state.
That's the theory, and I agree on a retro gaming PC you could just ignore it, but I don't like that approach. The speed of this phenomenon is in proportion to how big the drive is vs how much data you churn. It might take 100 years - but why not prevent it anyway? There's a simple way to contain the issue to a healthy and stable boundary, and I see no reason not to.

Start with a fully TRIMmed drive. Then partition it for XP (use a modern utility that aligns partitions properly - XP does it wrong), but leave some of the space unpartitioned. If 20% of the space isn't partitioned, then 20% of the logical addresses will never be used. This ensures the actual Flash storage will never be more than 80% committed. The data can still go anywhere on the physical Flash (that's up to the SSD), but it won't think more than 80% of it's capacity is holding anything important. This prevents the drive from ever falling off a cliff into heavy "write amplification", which is what sends an overcommitted SSD into decline.

You can get away without limiting the partition size like this, but if the SSD is amply sized then I see no reason not to put this boundary in place. Leave some excess space unpartitioned and it prevents the scenario. If you fully partition the whole drive, you're just allowing the opportunity for it to get overcommitted. There's no reason to enable that IMO.

Reply 12 of 14, by st31276a

User metadata
Rank Member
Rank
Member
shamino wrote on 2025-03-25, 04:37:

Start with a fully TRIMmed drive. Then partition it for XP (use a modern utility that aligns partitions properly - XP does it wrong), but leave some of the space unpartitioned. If 20% of the space isn't partitioned, then 20% of the logical addresses will never be used. This ensures the actual Flash storage will never be more than 80% committed. The data can still go anywhere on the physical Flash (that's up to the SSD), but it won't think more than 80% of it's capacity is holding anything important. This prevents the drive from ever falling off a cliff into heavy "write amplification", which is what sends an overcommitted SSD into decline.

^^^ This.

Running fstrim on the mounted partition from time to time in linux would not hurt either.

Did not know about the dinky little adata program, that would make booting linux unnecessary if it works (which it probably does)

Reply 13 of 14, by lolo799

User metadata
Rank Oldbie
Rank
Oldbie
shamino wrote on 2025-03-25, 04:37:

but leave some of the space unpartitioned. If 20% of the space isn't partitioned, then 20% of the logical addresses will never be used. This ensures the actual Flash storage will never be more than 80% committed. The data can still go anywhere on the physical Flash (that's up to the SSD), but it won't think more than 80% of it's capacity is holding anything important. This prevents the drive from ever falling off a cliff into heavy "write amplification", which is what sends an overcommitted SSD into decline.

You can get away without limiting the partition size like this, but if the SSD is amply sized then I see no reason not to put this boundary in place. Leave some excess space unpartitioned and it prevents the scenario. If you fully partition the whole drive, you're just allowing the opportunity for it to get overcommitted. There's no reason to enable that IMO.

Is that really necessary when manufacturers already reserve part of the space for overprovisioning?
A link I posted in a similar thread a while ago:
https://www.kingston.com/en/blog/pc-performan … verprovisioning

PCMCIA Sound, Storage & Graphics

Reply 14 of 14, by shamino

User metadata
Rank l33t
Rank
l33t
lolo799 wrote on 2025-03-25, 09:41:
Is that really necessary when manufacturers already reserve part of the space for overprovisioning? A link I posted in a similar […]
Show full quote
shamino wrote on 2025-03-25, 04:37:

but leave some of the space unpartitioned. If 20% of the space isn't partitioned, then 20% of the logical addresses will never be used. This ensures the actual Flash storage will never be more than 80% committed. The data can still go anywhere on the physical Flash (that's up to the SSD), but it won't think more than 80% of it's capacity is holding anything important. This prevents the drive from ever falling off a cliff into heavy "write amplification", which is what sends an overcommitted SSD into decline.

You can get away without limiting the partition size like this, but if the SSD is amply sized then I see no reason not to put this boundary in place. Leave some excess space unpartitioned and it prevents the scenario. If you fully partition the whole drive, you're just allowing the opportunity for it to get overcommitted. There's no reason to enable that IMO.

Is that really necessary when manufacturers already reserve part of the space for overprovisioning?
A link I posted in a similar thread a while ago:
https://www.kingston.com/en/blog/pc-performan … verprovisioning

They do provide a bit of overprovisioning, but it's minimal on consumer tier drives. From their point of view it's a waste of money to add storage that can't be advertised as usable capacity.