• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

SSD Defragging: The safe way

Joined
Nov 7, 2017
Messages
1,878 (0.73/day)
Location
Ibiza, Spain.
System Name Main
Processor R7 5950x
Motherboard MSI x570S Unify-X Max
Cooling converted Eisbär 280, two F14 + three F12S intake, two P14S + two P14 + two F14 as exhaust
Memory 16 GB Corsair LPX bdie @3600/16 1.35v
Video Card(s) GB 2080S WaterForce WB
Storage six M.2 pcie gen 4
Display(s) Sony 50X90J
Case Tt Level 20 HT
Audio Device(s) Asus Xonar AE, modded Sennheiser HD 558, Klipsch 2.1 THX
Power Supply Corsair RMx 750w
Mouse Logitech G903
Keyboard GSKILL Ripjaws
VR HMD NA
Software win 10 pro x64
Benchmark Scores TimeSpy score Fire Strike Ultra SuperPosition CB20
@Mussels
perfectly fine with learning, but that will also be the case with some QLC users running (the wrong) defrag and wearing it down.

im all for "speed/perf", but the specifics where it starts to make a difference, more or less shows its not gonna be for the masses,
and until we can do this large scale +2500 identical drives with identical data, its kind of hard to be able to say we should do it (vs all manufacturers saying dont),
as i doubt any defrag tool will ever have all the "insights" on every single drive controller (and how it works underneath),
 
Last edited:

Mussels

Freshwater Moderator
Joined
Oct 6, 2004
Messages
58,413 (7.94/day)
Location
Oystralia
System Name Rainbow Sparkles (Power efficient, <350W gaming load)
Processor Ryzen R7 5800x3D (Undervolted, 4.45GHz all core)
Motherboard Asus x570-F (BIOS Modded)
Cooling Alphacool Apex UV - Alphacool Eisblock XPX Aurora + EK Quantum ARGB 3090 w/ active backplate
Memory 2x32GB DDR4 3600 Corsair Vengeance RGB @3866 C18-22-22-22-42 TRFC704 (1.4V Hynix MJR - SoC 1.15V)
Video Card(s) Galax RTX 3090 SG 24GB: Underclocked to 1700Mhz 0.750v (375W down to 250W))
Storage 2TB WD SN850 NVME + 1TB Sasmsung 970 Pro NVME + 1TB Intel 6000P NVME USB 3.2
Display(s) Phillips 32 32M1N5800A (4k144), LG 32" (4K60) | Gigabyte G32QC (2k165) | Phillips 328m6fjrmb (2K144)
Case Fractal Design R6
Audio Device(s) Logitech G560 | Corsair Void pro RGB |Blue Yeti mic
Power Supply Fractal Ion+ 2 860W (Platinum) (This thing is God-tier. Silent and TINY)
Mouse Logitech G Pro wireless + Steelseries Prisma XL
Keyboard Razer Huntsman TE ( Sexy white keycaps)
VR HMD Oculus Rift S + Quest 2
Software Windows 11 pro x64 (Yes, it's genuinely a good OS) OpenRGB - ditch the branded bloatware!
Benchmark Scores Nyooom.
I’d be curious to see your results with nvme. For science!
I can't run the program, it's a linux thing i have no idea how to compile.

@Mussels
perfectly fine with learning, but that will also be the case with some QLC users running (the wrong) defrag and wearing it down.

im all for "speed/perf", but the specifics where it starts to make a difference, more or less shows its not gonna be for the masses,
and until we can do this large scale +2500 identical drives with identical data, its kind of hard to be able to say we should do it (vs all manufacturers saying dont),
as i doubt any defrag tool will ever have all the "insights" on every single drive controller (and how it works underneath),
Those specifics are happily listed above.
There is a threshold where performance halves, why not use that as your metric?
As for the rest, isn't that covered by the explanation of 'Scan the drive, defrag anything with lots of fragments if those files performance matter to you' ?

QLC has bad write speeds, the lifespans aren't a problem.
1693640555546.png


While the 990 PRO...
1693640616254.png


Yeah, even last gen QVO's have more life than the high end drives.
 
Joined
Feb 21, 2014
Messages
1,391 (0.35/day)
Location
Alabama, USA
Processor 5900x
Motherboard MSI MEG UNIFY
Cooling Arctic Liquid Freezer 2 360mm
Memory 4x8GB 3600c16 Ballistix
Video Card(s) EVGA 3080 FTW3 Ultra
Storage 1TB SX8200 Pro, 2TB SanDisk Ultra 3D, 6TB WD Red Pro
Display(s) Acer XV272U
Case Fractal Design Meshify 2
Power Supply Corsair RM850x
Mouse Logitech G502 Hero
Keyboard Ducky One 2
Isn’t that sata QVO 8TB? If so adjusted to be like that 2TB 990 pro its endurance would be only 720 TBW, vs 1200 TBW of the 990 pro.
 

Frick

Fishfaced Nincompoop
Joined
Feb 27, 2006
Messages
19,584 (2.86/day)
Location
Piteå
System Name White DJ in Detroit
Processor Ryzen 5 5600
Motherboard Asrock B450M-HDV
Cooling Be Quiet! Pure Rock 2
Memory 2 x 16GB Kingston Fury 3400mhz
Video Card(s) XFX 6950XT Speedster MERC 319
Storage Kingston A400 240GB | WD Black SN750 2TB |WD Blue 1TB x 2 | Toshiba P300 2TB | Seagate Expansion 8TB
Display(s) Samsung U32J590U 4K + BenQ GL2450HT 1080p
Case Fractal Design Define R4
Audio Device(s) Plantronics 5220, Nektar SE61 keyboard
Power Supply Corsair RM850x v3
Mouse Logitech G602
Keyboard Cherry MX Board 1.0 TKL Brown
Software Windows 10 Pro
Benchmark Scores Rimworld 4K ready!
Isn’t that sata QVO 8TB? If so adjusted to be like that 2TB 990 pro its endurance would be only 720 TBW, vs 1200 TBW of the 990 pro.
"Only". That is still a lot of writes.
 
Joined
Mar 21, 2021
Messages
5,090 (3.77/day)
Location
Colorado, U.S.A.
System Name CyberPowerPC ET8070
Processor Intel Core i5-10400F
Motherboard Gigabyte B460M DS3H AC-Y1
Memory 2 x Crucial Ballistix 8GB DDR4-3000
Video Card(s) MSI Nvidia GeForce GTX 1660 Super
Storage Boot: Intel OPTANE SSD P1600X Series 118GB M.2 PCIE
Display(s) Dell P2416D (2560 x 1440)
Power Supply EVGA 500W1 (modified to have two bridge rectifiers)
Software Windows 11 Home

Frick

Fishfaced Nincompoop
Joined
Feb 27, 2006
Messages
19,584 (2.86/day)
Location
Piteå
System Name White DJ in Detroit
Processor Ryzen 5 5600
Motherboard Asrock B450M-HDV
Cooling Be Quiet! Pure Rock 2
Memory 2 x 16GB Kingston Fury 3400mhz
Video Card(s) XFX 6950XT Speedster MERC 319
Storage Kingston A400 240GB | WD Black SN750 2TB |WD Blue 1TB x 2 | Toshiba P300 2TB | Seagate Expansion 8TB
Display(s) Samsung U32J590U 4K + BenQ GL2450HT 1080p
Case Fractal Design Define R4
Audio Device(s) Plantronics 5220, Nektar SE61 keyboard
Power Supply Corsair RM850x v3
Mouse Logitech G602
Keyboard Cherry MX Board 1.0 TKL Brown
Software Windows 10 Pro
Benchmark Scores Rimworld 4K ready!
90 writes, does seem like a lot to me.

Full writes. Meaning you write it yo say 90%, wipe everything, and write it again, which is not avarage use.
 
Joined
Mar 21, 2021
Messages
5,090 (3.77/day)
Location
Colorado, U.S.A.
System Name CyberPowerPC ET8070
Processor Intel Core i5-10400F
Motherboard Gigabyte B460M DS3H AC-Y1
Memory 2 x Crucial Ballistix 8GB DDR4-3000
Video Card(s) MSI Nvidia GeForce GTX 1660 Super
Storage Boot: Intel OPTANE SSD P1600X Series 118GB M.2 PCIE
Display(s) Dell P2416D (2560 x 1440)
Power Supply EVGA 500W1 (modified to have two bridge rectifiers)
Software Windows 11 Home
Fair enough, but I seem to recall a scam some time back where DRAM was overvoltaged and could be made into fake flash with something like 10 writes possible before destruction; so 90 writes doesn't seem so big to me; but I get your point.
 
Joined
Aug 12, 2020
Messages
1,207 (0.77/day)
Especially given write amplification factor it will probably be less, more like 80-85 probably. And the fuller drive is, the more likely same cells get the brunt of repeated writes, so realistically drive won't be all worn down at once, just cells by cells.

So yeah, full wipe and write isn't an average case, in a way it is a best case.
 

Mussels

Freshwater Moderator
Joined
Oct 6, 2004
Messages
58,413 (7.94/day)
Location
Oystralia
System Name Rainbow Sparkles (Power efficient, <350W gaming load)
Processor Ryzen R7 5800x3D (Undervolted, 4.45GHz all core)
Motherboard Asus x570-F (BIOS Modded)
Cooling Alphacool Apex UV - Alphacool Eisblock XPX Aurora + EK Quantum ARGB 3090 w/ active backplate
Memory 2x32GB DDR4 3600 Corsair Vengeance RGB @3866 C18-22-22-22-42 TRFC704 (1.4V Hynix MJR - SoC 1.15V)
Video Card(s) Galax RTX 3090 SG 24GB: Underclocked to 1700Mhz 0.750v (375W down to 250W))
Storage 2TB WD SN850 NVME + 1TB Sasmsung 970 Pro NVME + 1TB Intel 6000P NVME USB 3.2
Display(s) Phillips 32 32M1N5800A (4k144), LG 32" (4K60) | Gigabyte G32QC (2k165) | Phillips 328m6fjrmb (2K144)
Case Fractal Design R6
Audio Device(s) Logitech G560 | Corsair Void pro RGB |Blue Yeti mic
Power Supply Fractal Ion+ 2 860W (Platinum) (This thing is God-tier. Silent and TINY)
Mouse Logitech G Pro wireless + Steelseries Prisma XL
Keyboard Razer Huntsman TE ( Sexy white keycaps)
VR HMD Oculus Rift S + Quest 2
Software Windows 11 pro x64 (Yes, it's genuinely a good OS) OpenRGB - ditch the branded bloatware!
Benchmark Scores Nyooom.
Isn’t that sata QVO 8TB? If so adjusted to be like that 2TB 990 pro its endurance would be only 720 TBW, vs 1200 TBW of the 990 pro.
Largest in it's series, otherwise you'd end up playing games with fudging numbers around - can't just fairly by equal capacity if that's now how they're made.
Even if you look at it your way, 720TBW is still large enough to not care at all about defragging a few files.



I'm finding it hard to translate the technical side of this next part into something easier to understand - explaining it poorly won't help.
The simplest way i can explain it is: The benchmarks proved writes/reads are a ton slower on fragmented files. That's the disk working harder, for longer.

Regardless of any math used or any technical differences between drives and their designs, the harder they work the worse for the drive in the long run.
That doesn't change my original statement of: Don't defrag the entire drive, but do check to see if theres individual files worth defragging.
 
Last edited:
Joined
Dec 18, 2022
Messages
142 (0.20/day)
Processor AMD Ryzen 2700X
Motherboard MSI X470 Gaming Pro Carbon
Cooling NH-D15 SE-AM4
Memory 4x Kingston 8GB DDR4-2666
Video Card(s) 2x EVGA GTX 960
Storage Kingston SA400 480GB, LSI 9260-8I RAID[2x WD4005 4TB, 3x Kingston SA400 480GB]
Display(s) Scepter P30, Samsung T22B350
Case Phanteks Enthoo Pro
Power Supply Seasonic Prime Titanium 650w
Mouse Logitech MX Master 3
Keyboard Corsair K60 RGB Pro RGP01110
Mussels, can you explain how your own testing validates your post? Right now I think this is either flawed testing, or false results, although I haven't done any tests myself, what I see is you've defragmented a drive and eliminated 77 fragmented files, reduced its fragmented files size by about 1.5 GB, and reduced its random read speed by 6.5 MB/s
"Cleaning" the drive reduced the fragmentation by 34%, yet fragmented 4 more files, and increased the number of fragments by 23 more than before the cleaning. Can you explain how these numbers were generated and why they are so whacky?
 

Mussels

Freshwater Moderator
Joined
Oct 6, 2004
Messages
58,413 (7.94/day)
Location
Oystralia
System Name Rainbow Sparkles (Power efficient, <350W gaming load)
Processor Ryzen R7 5800x3D (Undervolted, 4.45GHz all core)
Motherboard Asus x570-F (BIOS Modded)
Cooling Alphacool Apex UV - Alphacool Eisblock XPX Aurora + EK Quantum ARGB 3090 w/ active backplate
Memory 2x32GB DDR4 3600 Corsair Vengeance RGB @3866 C18-22-22-22-42 TRFC704 (1.4V Hynix MJR - SoC 1.15V)
Video Card(s) Galax RTX 3090 SG 24GB: Underclocked to 1700Mhz 0.750v (375W down to 250W))
Storage 2TB WD SN850 NVME + 1TB Sasmsung 970 Pro NVME + 1TB Intel 6000P NVME USB 3.2
Display(s) Phillips 32 32M1N5800A (4k144), LG 32" (4K60) | Gigabyte G32QC (2k165) | Phillips 328m6fjrmb (2K144)
Case Fractal Design R6
Audio Device(s) Logitech G560 | Corsair Void pro RGB |Blue Yeti mic
Power Supply Fractal Ion+ 2 860W (Platinum) (This thing is God-tier. Silent and TINY)
Mouse Logitech G Pro wireless + Steelseries Prisma XL
Keyboard Razer Huntsman TE ( Sexy white keycaps)
VR HMD Oculus Rift S + Quest 2
Software Windows 11 pro x64 (Yes, it's genuinely a good OS) OpenRGB - ditch the branded bloatware!
Benchmark Scores Nyooom.
Mussels, can you explain how your own testing validates your post? Right now I think this is either flawed testing, or false results, although I haven't done any tests myself, what I see is you've defragmented a drive and eliminated 77 fragmented files, reduced its fragmented files size by about 1.5 GB, and reduced its random read speed by 6.5 MB/s
"Cleaning" the drive reduced the fragmentation by 34%, yet fragmented 4 more files, and increased the number of fragments by 23 more than before the cleaning. Can you explain how these numbers were generated and why they are so whacky?
I haven't provided any benchmarks of my own. The values in the screenshots from defraggler are not something useful - they don't automatically update, and I can't exactly re-fragment a file for repeat testing, can I? More fragments can appear because I'm using that drive, things like opening a browser, taking screenshots... they write to the drive.
They were only used to show that SSD files DO get fragmented as people have taken one fact and used their imaginations to translate it to something else
This was never about performance for me, but rather pointing out the issues stemming from a common misconception. I only added those from other sources when people challenged what I was saying.
  • Defragmenting SSD's is bad for their lifespan (A warped version of 'SSD's have limited writes, and old defragmenting tools cause excessive writes')
    and translated that into
  • SSD's do not get fragmented
I've stated a few times i can't use those same benchmarks with artificially fragmented files as they're linux only. What i saw was game load times shrink, and people would still find ways to argue about however i chose to measure that.
What i've tried to help make more common knowledge is three things

  1. SSD files do get fragmented
  2. That fragmentation has a significant performance loss
  3. It's possible to defragment single files

I'll try and find a windows variant to test that out for you - It's frustrating as I'm trying to cover those points above to let people make their own decisions about files worth fragmenting, and i'm getting back something along the lines of "But i want ONE answer, a Yes/no!"
My response there is "Yes, it's a good idea to make your own decision. Don't use over-simplified summaries from the windows 7 Era on what were basically memory cards from digital cameras.

Using this program:
PassMark Fragger - File Fragmentation Utility


I've done something the opposite of what i'm trying to do here, and done something that could harm my drives.
Intel 6000P NVME, it's on USB 3.1 which limits the maximum speeds. Deal with it.

Yes, it's running at 10Gb/s and can normally achieve 1GB/s reads. I shouldn't have to prove these things but this thread overall has been very upset by learning new things.
1693725764664.png

No, i'm not running extended benchmarks on the drive. 550MB/s writes, 1GB/s reads.
We get less than 1GBs below, everyone has their performance answers.
1693725986138.png



19% fragmented file. Ignore the blue, that's from the first attempt, before i changed to 'scattered'
Best i can likely do is HWinfo with reset stats, to show the maximum read from the drive and write to the destination.
1693725395910.png


Unfragmented file copy - HWinfo both during and after the test.
1693726182508.png



1693728291139.png

Yes, it's slower. Is it massively infinitely slower? ... Yeah that's pretty bad.
I should have ran a timed test instead, but again my point has never been about exact percentages of things being faster or slower - just the information that it can be done.

The transfer bad in windows plummeted and wasn't a straight line, but the screenshot got interrupted by a private chat message and i CBF redoing this all over again (I have to rename files, TRIM drives and all sorts of shit to prevent the files being cached and moving from RAM at 3.5GB/s) and if this level of detail isn't enough for anyone - go do your own testing.
 
Last edited:
Joined
Jan 3, 2021
Messages
3,506 (2.46/day)
Location
Slovenia
Processor i5-6600K
Motherboard Asus Z170A
Cooling some cheap Cooler Master Hyper 103 or similar
Memory 16GB DDR4-2400
Video Card(s) IGP
Storage Samsung 850 EVO 250GB
Display(s) 2x Oldell 24" 1920x1200
Case Bitfenix Nova white windowless non-mesh
Audio Device(s) E-mu 1212m PCI
Power Supply Seasonic G-360
Mouse Logitech Marble trackball, never had a mouse
Keyboard Key Tronic KT2000, no Win key because 1994
Software Oldwin
@Mussels
You're experimenting with artificial file fragmentation, and at this point I'd make a suggestion: leave that fragmented file alone for a few days, just run the Windows disk maintenance utility every day. Microsoft really wants us to not know what it's doing but Windows is mostly able to take care of itself. Maybe, just maybe, it can detect a really bad case of fragmentation and do some defragmentation, similar to what you're doing manually (and what I was doing before I met my first SSD).
However, I'm aware (and sure you're aware too) that my suggestion can have an undesired effect too, as other file writes will be more fragmented than they would otherwise be.

Intel 6000P NVME, it's on USB 3.1 which limits the maximum speeds.
Does your M.2 enclosure support TRIM?
 

Mussels

Freshwater Moderator
Joined
Oct 6, 2004
Messages
58,413 (7.94/day)
Location
Oystralia
System Name Rainbow Sparkles (Power efficient, <350W gaming load)
Processor Ryzen R7 5800x3D (Undervolted, 4.45GHz all core)
Motherboard Asus x570-F (BIOS Modded)
Cooling Alphacool Apex UV - Alphacool Eisblock XPX Aurora + EK Quantum ARGB 3090 w/ active backplate
Memory 2x32GB DDR4 3600 Corsair Vengeance RGB @3866 C18-22-22-22-42 TRFC704 (1.4V Hynix MJR - SoC 1.15V)
Video Card(s) Galax RTX 3090 SG 24GB: Underclocked to 1700Mhz 0.750v (375W down to 250W))
Storage 2TB WD SN850 NVME + 1TB Sasmsung 970 Pro NVME + 1TB Intel 6000P NVME USB 3.2
Display(s) Phillips 32 32M1N5800A (4k144), LG 32" (4K60) | Gigabyte G32QC (2k165) | Phillips 328m6fjrmb (2K144)
Case Fractal Design R6
Audio Device(s) Logitech G560 | Corsair Void pro RGB |Blue Yeti mic
Power Supply Fractal Ion+ 2 860W (Platinum) (This thing is God-tier. Silent and TINY)
Mouse Logitech G Pro wireless + Steelseries Prisma XL
Keyboard Razer Huntsman TE ( Sexy white keycaps)
VR HMD Oculus Rift S + Quest 2
Software Windows 11 pro x64 (Yes, it's genuinely a good OS) OpenRGB - ditch the branded bloatware!
Benchmark Scores Nyooom.
@Mussels
You're experimenting with artificial file fragmentation, and at this point I'd make a suggestion: leave that fragmented file alone for a few days, just run the Windows disk maintenance utility every day. Microsoft really wants us to not know what it's doing but Windows is mostly able to take care of itself. Maybe, just maybe, it can detect a really bad case of fragmentation and do some defragmentation, similar to what you're doing manually (and what I was doing before I met my first SSD).
However, I'm aware (and sure you're aware too) that my suggestion can have an undesired effect too, as other file writes will be more fragmented than they would otherwise be.


Does your M.2 enclosure support TRIM?
Windows already does defragment SSDs once they pass a certain threshold, But that information is now buried away after MS reorganised their blog site.
It was on one of the MS dev blogs for windows servers, about how many fragments files can have before they'll be defragmented - this came up in a thread some time ago roughly like "help windows is defragging my SSD"

Yes it supports Trim


I found some old articles with more specific google searches on this
The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog

He mentions one of the blogs, but the link goes to a twitter account without anything on the issue. Not so helpful.

He quotes the original answer i found on the blog some time ago
Storage Optimizer will defrag an SSD once a month if volume snapshots are enabled. This is by design and necessary due to slow volsnap copy on write performance on fragmented SSD volumes. It’s also somewhat of a misconception that fragmentation is not a problem on SSDs. If an SSD gets too fragmented you can hit maximum file fragmentation (when the metadata can’t represent any more file fragments) which will result in errors when you try to write/extend a file. Furthermore, more file fragments means more metadata to process while reading/writing a file, which can lead to slower performance.

As far as Retrim is concerned, this command should run on the schedule specified in the dfrgui UI. Retrim is necessary because of the way TRIM is processed in the file systems. Due to the varying performance of hardware responding to TRIM, TRIM is processed asynchronously by the file system. When a file is deleted or space is otherwise freed, the file system queues the trim request to be processed. To limit the peek resource usage this queue may only grow to a maximum number of trim requests. If the queue is of max size, incoming TRIM requests may be dropped. This is okay because we will periodically come through and do a Retrim with Storage Optimizer. The Retrim is done at a granularity that should avoid hitting the maximum TRIM request queue size where TRIMs are dropped.
Windows already defrags SSD's once a month, if needed. All we're doing here is manually choosing files that matter to us, at the time of our choosing.
 
Joined
Aug 21, 2023
Messages
30 (0.06/day)
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.

TBW ratings do NOT represent the lifespan of an SSD. They're a just an additional warranty sticker: your drive has a warranty of 5 years or 1200 TB writes, whatever comes first. TBW is pretty meaningless for consumer drives. Drives will often go through many revisions with different controllers, flash generation and architecture, while keeping exactly the same specs.

NAND flash is actually very durable and most drives will outlast their TBW rating. TLC is typically rated for 3000 PEC, but could do as many as 5000 PEC or more. A 2TB drive with 3000 PEC flash is expected to survive at least 6000 TB, but realistically could do 10000 TB — NAND writes; host writes will be lower, but not too much under normal consumer workloads. In fact, drives continue to work even after reaching 0% "health". The chia communities sometimes see drives lasting 10 times their specced TBW.
Even QLC is durable these days. Intel/Solidigm already have QLC rated for 1500 PEC.

TBW is just an arbitrary number that is set high enough so you can't reach it under normal consumer usage. SSDs die for many reasons (eg: bricked controller/firmware after power loss, faulty components like capacitors and resistors etc) and TBW ratings allow brands to deny warranty replacements to drives who went through a lot of "abuse".

I've had to console a lot of people who've killed their shitty budget SSD's like WD Green SATAs in far less than 6 months of purchase because they'd torrent anime until the drives filled up completely

You're meant to get the TBW (That they often hide, on the worst drives) and average it over the warranty period
1693373602767.png

With these (far from the worst) you get 40TB over 3 years so about 13TB a year. If you use things more rapidly or have the drives full most of the time, they'll die long before that.
There have been far worse drives in previous years, i'll see if i can find an example.

(Keep in mind Samsungs best drives like the 970 series had 1200TBW on 1TB drives - 1200 fills of the drive. That WD green maths to 333, so its about a third the lifespan)

WD Green has low TBW ratings because it's a bottom of the barrel product and WD needs to justify paying more for better specs. Also, it is a model first announced in 2016, and these TBW ratings didn't look so outrageous at the time.
The product has seen multiple hardware revisions, but they didn't bother to update the spec sheet.
The WD Green is not a good product, but the most striking issue is the slow USB controller that comes with these drives, not their TBW rating.
 
Last edited:
Joined
Mar 21, 2021
Messages
5,090 (3.77/day)
Location
Colorado, U.S.A.
System Name CyberPowerPC ET8070
Processor Intel Core i5-10400F
Motherboard Gigabyte B460M DS3H AC-Y1
Memory 2 x Crucial Ballistix 8GB DDR4-3000
Video Card(s) MSI Nvidia GeForce GTX 1660 Super
Storage Boot: Intel OPTANE SSD P1600X Series 118GB M.2 PCIE
Display(s) Dell P2416D (2560 x 1440)
Power Supply EVGA 500W1 (modified to have two bridge rectifiers)
Software Windows 11 Home
I had a SSD drive just cease to function (not just go into read only mode); is this just a thing of the past?
 
Joined
Aug 21, 2023
Messages
30 (0.06/day)
I had a SSD drive just cease to function (not just go into read only mode); is this just a thing of the past?
No, it could happen to any drive, even today. You just had bad luck.
 
Last edited:
Joined
Mar 21, 2021
Messages
5,090 (3.77/day)
Location
Colorado, U.S.A.
System Name CyberPowerPC ET8070
Processor Intel Core i5-10400F
Motherboard Gigabyte B460M DS3H AC-Y1
Memory 2 x Crucial Ballistix 8GB DDR4-3000
Video Card(s) MSI Nvidia GeForce GTX 1660 Super
Storage Boot: Intel OPTANE SSD P1600X Series 118GB M.2 PCIE
Display(s) Dell P2416D (2560 x 1440)
Power Supply EVGA 500W1 (modified to have two bridge rectifiers)
Software Windows 11 Home
It was a small drive on a laptop with little RAM, so it was probably thrashed with paging.

My present SSD is backed up to a hard drive.
 
Joined
Jan 3, 2021
Messages
3,506 (2.46/day)
Location
Slovenia
Processor i5-6600K
Motherboard Asus Z170A
Cooling some cheap Cooler Master Hyper 103 or similar
Memory 16GB DDR4-2400
Video Card(s) IGP
Storage Samsung 850 EVO 250GB
Display(s) 2x Oldell 24" 1920x1200
Case Bitfenix Nova white windowless non-mesh
Audio Device(s) E-mu 1212m PCI
Power Supply Seasonic G-360
Mouse Logitech Marble trackball, never had a mouse
Keyboard Key Tronic KT2000, no Win key because 1994
Software Oldwin
I found some old articles with more specific google searches on this
The real and complete story - Does Windows defragment your SSD? - Scott Hanselman's Blog

He mentions one of the blogs, but the link goes to a twitter account without anything on the issue. Not so helpful.
I once found this same article, unfortunately it's too old to be still relevant.

Yes, we suspect that Windows does some defrag. But we don't know. We don't have a clear and recent statement or explanation from MS. And we know less than nothing about details - what kind of defrag that is and what it's doing.

The days of Norton Utilities and its defragmenter, Speed Disk, are long gone. Remember, it would painstakingly stack all dark blue blocks in the map before all medium blue blocks, then came the light blue blocks, etc., with colours indicating the frequency of access of files. (Or was that the Windows 95 built-in defragmenter?) A couple days later, this precise order would of course collapse, so a new defrag was in order. Marginally useful but who cared, it was a marvel to watch!

I'm very sure defragmenters have advanced since the dark era of non-black PCs. What's really necessary is to put some order, periodically, in most heavily fragmented files. And in heavily fragmented free space too. Yes, you're doing exactly that. But how do you know Windows isn't doing something that's effectively the same, and doing it often enough?

I have a new PC with (much hated) Windows 11 at work, the system drive is still mostly empty, so I may decide to do a fragmented file experiment on it over the weekend. But running disk maintenance once a day manually may or may not trigger defragmentation, who knows.
 
Joined
Feb 1, 2019
Messages
3,607 (1.69/day)
Location
UK, Midlands
System Name Main PC
Processor 13700k
Motherboard Asrock Z690 Steel Legend D4 - Bios 13.02
Cooling Noctua NH-D15S
Memory 32 Gig 3200CL14
Video Card(s) 4080 RTX SUPER FE 16G
Storage 1TB 980 PRO, 2TB SN850X, 2TB DC P4600, 1TB 860 EVO, 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Soundblaster AE-9
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
After some research I believe I know the reason why for the windows defrag.

Seems to be a limitation of NTFS, where the filesystem itself has problems if it has too many fragments to deal with, volume shadow copies can significantly increase the amount of fragments, so the defrag is done to preserve the integrity of the filesystem. If volume shadow copies are disabled (the default) SSD's wont be auto defragged in windows. I also believe ReFS doesnt have the issue.
 
Joined
Aug 21, 2023
Messages
30 (0.06/day)
@Mussels
@Wirko
@chrcoluk

Windows runs a scheduled task that defrags SSDs every month. It's a traditional defragmentation, just like on HDDs. As documented on Microsoft Docs:

Screenshot_2.png


You won't find much information on why Windows is doing that. Apparently one reason is to prevent the system from reaching the NTFS fragmentation limit, although the risk of that happening is low for the average user. I've also read somewhere about issues with volume snapshots and that I/Os to highly fragmented files might incur a performance loss.

You can check the defragmentation history of your drives with the following Powershell command:

Code:
Get-EventLog -LogName Application -Source "microsoft-windows-defrag" | sort timegenerated | fl timegenerated, message

Here are the results when I run on my PC:

Untitled.png


Windows defrags any SSD. That includes my main drive (partitions C and D), a drive that is using a secondary slot (G), and also a drive that was plugged via USB (N). And the scheduled task runs even when system restore/volume snapshots is disabled (I only have it enabled for drive C).
 
Joined
Feb 1, 2019
Messages
3,607 (1.69/day)
Location
UK, Midlands
System Name Main PC
Processor 13700k
Motherboard Asrock Z690 Steel Legend D4 - Bios 13.02
Cooling Noctua NH-D15S
Memory 32 Gig 3200CL14
Video Card(s) 4080 RTX SUPER FE 16G
Storage 1TB 980 PRO, 2TB SN850X, 2TB DC P4600, 1TB 860 EVO, 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Soundblaster AE-9
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
Nice command to quickly check log contents.

Yes you seem to have found the same information as me regarding the fragmentation limit in NTFS, I believe I found that info on the comments section of that article, the guy was pressured to check with his Microsoft contacts for the reason and thats what he came back with. Sadly officially Microsoft havent gone into detail about it.

However if yours is running on drives with no shadow copy enabled, thats something I have never observed before and is at odds with the public information available. I ran that command on my VM as well which has system restore disabled, and it has no defrag's just retrim's. Seems there is more to it, and perhaps the limit is still a concern even without volume shadow copies.

Do you use macrium or any other backup software at all? as these tools can create shadow copies without system restore being enabled.

I am going to add a second SSD to my VM and see what happens when I enable it just for C: to see if it triggers it for "all" SSD's just for having system restore enabled on "any" drive.
 
Last edited:
Joined
Nov 2, 2020
Messages
1,347 (0.90/day)
Location
Tel Fyr
System Name Purple Haze | Vacuum Box
Processor AMD Ryzen 7 5800X3D (-30 CO) | Intel® Xeon® E3-1241 v3
Motherboard MSI B450 Tomahawk Max | Gigabyte GA-Z87X-UD5H
Cooling Dark Rock 4 Pro, P14, P12, T30 case fans | 212 Evo & P12 PWM PST x2, Arctic P14 & P12 case fans
Memory 32GB Ballistix (Micron E 19nm) CL16 @3733MHz | 32GB HyperX Beast 2400MHz (XMP)
Video Card(s) AMD 6900XTXH ASRock OC Formula & Phanteks T30x3 | AMD 5700XT Sapphire Nitro+ & Arctic P12x2
Storage ADATA SX8200 Pro 1TB, Toshiba P300 3TB x2 | Kingston A400 120GB, Fanxiang S500 Pro 256GB
Display(s) TCL C805 50" 2160p 144Hz VA miniLED, Mi 27" 1440p 165Hz IPS, AOC 24G2U 1080p 144Hz IPS
Case Modded MS Industrial Titan II Pro RGB | Heavily Modded Cooler Master Q500L
Audio Device(s) Audient iD14 MKII, Adam Audio T8Vs, Bloody M550, HiFiMan HE400se, Tascam TM-80, DS4 v2
Power Supply Rosewill Capstone 1000M | Enermax Revolution X't 730W (both with P14 fans)
Mouse Logitech G305, Bloody A91, Amazon basics, Logitech M187
Keyboard Redragon K530, Bloody B930, Epomaker TH80 SE, BTC 9110
Software W10 LTSC 21H2
@Mussels
@Wirko
@chrcoluk

Windows runs a scheduled task that defrags SSDs every month. It's a traditional defragmentation, just like on HDDs. As documented on Microsoft Docs:

View attachment 312290

You won't find much information on why Windows is doing that. Apparently one reason is to prevent the system from reaching the NTFS fragmentation limit, although the risk of that happening is low for the average user. I've also read somewhere about issues with volume snapshots and that I/Os to highly fragmented files might incur a performance loss.

You can check the defragmentation history of your drives with the following Powershell command:

Code:
Get-EventLog -LogName Application -Source "microsoft-windows-defrag" | sort timegenerated | fl timegenerated, message

Here are the results when I run on my PC:

View attachment 312293

Windows defrags any SSD. That includes my main drive (partitions C and D), a drive that is using a secondary slot (G), and also a drive that was plugged via USB (N). And the scheduled task runs even when system restore/volume snapshots is disabled (I only have it enabled for drive C).
I feel kinda glad for disabling that sucker (scheduled tasks service) on majority of my OS installations. I never trusted MS doing stuff in a background.
 
Joined
Feb 22, 2022
Messages
588 (0.58/day)
Processor AMD Ryzen 7 5800X3D
Motherboard Asus Crosshair VIII Dark Hero
Cooling Custom Watercooling
Memory G.Skill Trident Z Royal 2x16GB
Video Card(s) MSi RTX 3080ti Suprim X
Storage 2TB Corsair MP600 PRO Hydro X
Display(s) Samsung G7 27" x2
Audio Device(s) Sound Blaster ZxR
Power Supply Be Quiet! Dark Power Pro 12 1500W
Mouse Logitech G903
Keyboard Steelseries Apex Pro
If you manually run optimise it will only show re-trim in the log. But the log also show that defrag is completed at the same second as the re-trim. My conclusion is that the log just show the start and instant end of a scheduled defrag run, since it was not necessary because the drive in question was a ssd. This is just another round of confirmation bias.
 
Joined
Jan 3, 2021
Messages
3,506 (2.46/day)
Location
Slovenia
Processor i5-6600K
Motherboard Asus Z170A
Cooling some cheap Cooler Master Hyper 103 or similar
Memory 16GB DDR4-2400
Video Card(s) IGP
Storage Samsung 850 EVO 250GB
Display(s) 2x Oldell 24" 1920x1200
Case Bitfenix Nova white windowless non-mesh
Audio Device(s) E-mu 1212m PCI
Power Supply Seasonic G-360
Mouse Logitech Marble trackball, never had a mouse
Keyboard Key Tronic KT2000, no Win key because 1994
Software Oldwin
If you manually run optimise it will only show re-trim in the log. But the log also show that defrag is completed at the same second as the re-trim. My conclusion is that the log just show the start and instant end of a scheduled defrag run, since it was not necessary because the drive in question was a ssd. This is just another round of confirmation bias.
I'd also check total bytes written before and after optimisation.
 
Joined
Feb 1, 2019
Messages
3,607 (1.69/day)
Location
UK, Midlands
System Name Main PC
Processor 13700k
Motherboard Asrock Z690 Steel Legend D4 - Bios 13.02
Cooling Noctua NH-D15S
Memory 32 Gig 3200CL14
Video Card(s) 4080 RTX SUPER FE 16G
Storage 1TB 980 PRO, 2TB SN850X, 2TB DC P4600, 1TB 860 EVO, 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Soundblaster AE-9
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
If you manually run optimise it will only show re-trim in the log. But the log also show that defrag is completed at the same second as the re-trim. My conclusion is that the log just show the start and instant end of a scheduled defrag run, since it was not necessary because the drive in question was a ssd. This is just another round of confirmation bias.

Interesting observation, Window's will defrag SSD's, but what you have observed from the timestamps of the logs makes sense as it should be only defragging heavily fragmented drives that utilise volume shadow copies, not every single SSD.

If you have a case with an i/o led, or have something like task manager open after booting, the obvious signs a defrag is happening is constant activity on the SSD after logging into the desktop following a reboot, I have only observed it to ever happen right after boot. Then can open the optimiser app and that will confirm if an actual defrag is in process (the live status of it), I posted a screenshot of it in a thread I made on here some months ago. If the defrag is interrupted manually in the optimiser app, clicking optimise will restart the defrag process.

In addition I think it isnt a unconditional once a month thing, it actually checks the level of fragmentation.


1694041812503.png
 
Last edited:
Top