Sign in with
Sign up | Sign in
Your question
Solved

Simple-minded SSD trim?

Last response: in Storage
Share
a c 311 G Storage
August 19, 2011 2:55:41 PM

After several long discussions on the subject, I am left thinking that SSDs still can't clean up the space from deleted files that haven't been TRIMmed. One article that I was referred to specifically states that Garbage Collection will keep moving blocks from deleted files.

So, a question. Can I make sure that all unused space has been freed on the SSD by making a very large file that takes up all my free space and then deleting it?

More about : simple minded ssd trim

a c 415 G Storage
August 19, 2011 3:12:41 PM

If your system isn't issuing TRIM commands (because the SSDs are in a RAID set, for example), then creating and deleting a big file won't get a TRIM to the SSD either. So I guess I don't quite understand the question - why would you think that creating/deleting a large file would work any differently than deleting the smaller files in the first place?

Another thing to keep in mind is that creating a huge file won't have any effect on the SSD unless you actually write data into all of the blocks, and that's not particularly desirable because it will cause more write wear on the drive.

For OSs like XP that don't support TRIM there are utilities that you can run manually that will scan a drive and issue TRIM commands for all of the unused space. For example my Intel SSD came with the "Intel SSD Toolbox" software that can do this. This kind of tool would be better than just creating a huge file and then deleting it, but it also relies on TRIM commands being able to reach the drive.
m
0
l
a c 311 G Storage
August 19, 2011 3:22:44 PM

sminlal

The drive accumulates untagged unused cells in other ways. The worst example is when I restore one of the partitions from an image dump - unless I secure erase the drive and restore them all, I end up with a lot of "used" cells that I will never touch again.

Please no comments on the wisdom of partitioning SSDs - it was just a convenient example. The point is that a lot of cells get abandoned without the OS seeing the deletion and reporting it via TRIM.
m
0
l
Related resources

Best solution

a c 415 G Storage
August 19, 2011 5:36:10 PM

OK, I see what you're saying. A "dumb" image restore that writes to every block on the drive will cause all of the blocks on the SSD to be flagged as used. In that case I still think that the best way to solve that is to run a utility like the Intel SSD Toolbox to go through the restored partition to identify all of sectors that are not in use by the file system and send TRIM commands to the drive for them.

It's also useful to note that since Windows 7 is SSD-aware, it's built-in tools are also useful for these kinds of situations. For example, if you're about to install a fresh copy of Windows to an SSD that's been used before, you'd want to use the Windows 7 install DVD to first delete the old partition. That sends a TRIM command for all the blocks in the partition so that you have a "clean" series of blocks to install into.
Share
a c 311 G Storage
August 19, 2011 5:41:20 PM

Quite true. Will the Intel SSD Toolbox work with non-Intel drives, as I have one from Crucial? Or should I just try my hack approach and see what happens?
m
0
l
a c 311 G Storage
August 19, 2011 5:41:27 PM

Best answer selected by WyomingKnott.
m
0
l
a c 415 G Storage
August 20, 2011 1:05:19 AM

WyomingKnott said:
Quite true. Will the Intel SSD Toolbox work with non-Intel drives, as I have one from Crucial? Or should I just try my hack approach and see what happens?
I couldn't tell you, but it's free to download and try. I'd expect Crucial to have their own utility, too.
m
0
l
a c 143 G Storage
August 20, 2011 3:04:20 AM

No... I have not been able to get the Intel Toolbox to work on a non Intel SSD & the same for OCZ's toolbox with non OCZ drives.
m
0
l
!