Yes, we all know defragmenting an SSD as a whole is a terrible idea. Don't do it.
If you don't know, it's because flash memory has near infinite reads, but limited writes - and cheaper drives can have very very low write values.
The exception to this is modern defragging tools that can defragment individual *files* - I use defraggler for this task every 6 months to hunt down just the worst files.
Is it worth it? Yes. You get much faster read speeds on those files in throughput and latency, as well as lower CPU usage while it has to process the thousands of scattered locations as it loads them into RAM.
Heres an older thread on another forum on the topic, on a plain old SATA SSD. The difference could be from that 150MB/s (or worse) to the 15GB/s a modern NVME drive can do.
Yes, file system fragmentation DOES affect SSD read speed | Overclock.net
View attachment 311225
Another user in the thread tested a 250MB file, but with ever greater amounts of fragments.
View attachment 311227
The bigger a file the less of it can sit in your RAM - if you cant fit the entire file in RAM (large game files) it'll be far worse than smaller files that loaded once, can stay in memory.
The files that get fragmented tend to be ones updated regularly on drives that are mostly full - windows or game files that have been patched or updated but have no empty space next to the existing parts of the file, so new fragments get added to the next free space over and over again.
This is normally not an issue or builds up very slowly but it's worth defragmenting the worst of the worst.
A video or logfile? skip it! The content for a game you run every day? absolutely worth it.
This is my C: drive with a 15-month-old install, sorted by number of fragments.
View attachment 310431
Somewhere around 8,000 fragments there, that would run at 4K random performance of the SSD instead of sequential.
Yet the actual size of those files is just a hair over a single gigabyte - so defragging them won't use much of that drive lifespan at all.
I'll defrag every file with 100 fragments or more now:
Before and after:
View attachment 310432View attachment 310434
Spending 1GB of the limited writes on the drive (My 970 Pro 2TB has 1,200 Terabytes writable as it's lifespan (known as TBW) to remove 7,000 fragments is worthwhile since that's barely a drop of water in the ocean - especially if it's in programs or games you run regularly.
I ran a disk cleanup as well and emptied the recycle bin, and suddenly the value plummeted. A good example of why it's not worth defragmenting the entire drive - I'd have defragged files that should have been deleted instead.
View attachment 310437
I sarcastically wonder if 7 days to die would load faster, if it was a single contiguous file instead 4,482 pieces?
Considering the second worst file on the disk has only 230 fragments, it stands out as a single file worth fixing.
View attachment 310436