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

SSD Defragging: The safe way

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.
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
1693374398630.png


Another user in the thread tested a 250MB file, but with ever greater amounts of fragments.
1693374794300.png


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.

1692848640344.png


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:
1692848778938.png
1692848917582.png


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.
1692849716004.png



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.
1692849123091.png
 
Last edited:
Joined
Feb 22, 2016
Messages
1,978 (0.62/day)
Processor Intel i5 8400
Motherboard Asus Prime H370M-Plus/CSM
Cooling Scythe Big Shuriken & Noctua NF-A15 HS-PWM chromax.black.swap
Memory 8GB Crucial Ballistix Sport LT DDR4-2400
Video Card(s) ROG-STRIX-GTX1060-O6G-GAMING
Storage 1TB 980 Pro
Display(s) Samsung UN55KU6300F
Case Cooler Master MasterCase Pro 3
Power Supply Super Flower Leadex III 750w
Software W11 Pro
You do realize that SSD has a strong chance of seeing order of magnitude larger than stated TBW? The numbers behind what size of writes per hour are needed in a year to even begin getting concerned are rather unlikely. Per year, not single. :)
 
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
you need to keep in mind we are "enthusiast" users, not you common pc user/gamer.

i have not seen any improvement from tweaking os/ or using tools like ssdfresh/ssd tweaker (response, not talking about seq),
then again all my drives are doing +5GB/s.
all you really have to do is using win "defrag" to trim once a week.

@nomdeplume
heard of TLC or even QLC drives?
non 3D-nand QLC does about 100 writes...

ignoring that any numbers are on the "perfect condition" side, rather than worst case scenario, so the brands can "look good" on paper.

my msi 470 1TB game (only) drive is barely a year old, everything installed just once (~500gb),
yet i have 3 times the amount of writes vs read (800gb vs 300)..
 
Last edited:
Joined
Jul 15, 2019
Messages
567 (0.29/day)
Location
Hungary
System Name Detox sleeper
Processor Intel i9-7980XE@4,5Ghz
Motherboard Asrock x299 Taichi XE (custom bios with ecc reg support, old microcode)
Cooling Custom water: Alphacool XT45 1080 + 9xArctic P12, EK-D5 pump combo, EK Velocity D-RGB block
Memory 8x16Gb Hynix DJR ECC REG 3200@4000
Video Card(s) Intel Iris XE Max (waiting for a Sapphire 7900XT Nitro)
Storage Samsung PM9A1 1Tb + 2x PM981 512Gb + Kingston HyperX 480Gb + Samsung Evo 860 500Gb
Display(s) HP ZR30W (30" 2560x1600 10 bit)
Case Chieftec 1E0-500A-CT04 + AMD Sempron sticker
Audio Device(s) Genius Cavimanus
Power Supply Super Flower Leadex 750w Platinum
Mouse Logitech G400
Keyboard IBM Model M122 (boltmod, micro pro usbc)
Software Windows 11 Pro x64
The file system address is not the same on the physical block address on the ssd. Controller decides what data goes to which physical blocks, you cant force it to defragment. What you see as fragments in windows file system is totally different on the controller/flash side.
Wear leveling cause this.
If you want to speed up an ssd just use the trim command. (with at least 5-10% free space)

cmd with admin rights:

defrag /o C:
 
Joined
Feb 18, 2005
Messages
5,847 (0.81/day)
Location
Ikenai borderline!
System Name Firelance.
Processor Threadripper 3960X
Motherboard ROG Strix TRX40-E Gaming
Cooling IceGem 360 + 6x Arctic Cooling P12
Memory 8x 16GB Patriot Viper DDR4-3200 CL16
Video Card(s) MSI GeForce RTX 4060 Ti Ventus 2X OC
Storage 2TB WD SN850X (boot), 4TB Crucial P3 (data)
Display(s) 3x AOC Q32E2N (32" 2560x1440 75Hz)
Case Enthoo Pro II Server Edition (Closed Panel) + 6 fans
Power Supply Fractal Design Ion+ 2 Platinum 760W
Mouse Logitech G602
Keyboard Razer Pro Type Ultra
Software Windows 10 Professional x64
I sarcastically wonder if 7 days to die would load faster, if it was a single contiguous file instead 4,482 pieces?
I think file fragmentation is the least of that game's problems...

The file system address is not the same on the physical block address on the ssd. Controller decides what data goes to which physical blocks, you cant force it to defragment. What you see as fragments in windows file system is totally different on the controller/flash side.
Wear leveling cause this.
Exactly. I don't know how whatever tool this is determines file fragmentation, but I'm pretty sure that it's just reading what NTFS tells it - and $diety$ only knows how the SSD driver maps the underlying physical state of the flash to NTFS's concept of "file fragments".
 
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
This is pointless. You don't even have any guarantee that the ssd controller place the "concurrent" file fragments in the same place on the physical drive. Let Windows run the optimisation routine according to schedule, then leave it the frack alone.
 
Joined
Mar 21, 2021
Messages
5,089 (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
Why defragment an SSD?
 

Toothless

Tech, Games, and TPU!
Supporter
Joined
Mar 26, 2014
Messages
9,604 (2.46/day)
Location
Washington, USA
System Name Veral
Processor 7800x3D
Motherboard x670e Asus Crosshair Hero
Cooling Corsair H150i RGB Elite
Memory 2x24 Klevv Cras V RGB
Video Card(s) Powercolor 7900XTX Red Devil
Storage Crucial P5 Plus 1TB, Samsung 980 1TB, Teamgroup MP34 4TB
Display(s) Acer Nitro XZ342CK Pbmiiphx, 2x AOC 2425W, AOC I1601FWUX
Case Fractal Design Meshify Lite 2
Audio Device(s) Blue Yeti + SteelSeries Arctis 5 / Samsung HW-T550
Power Supply Corsair HX850
Mouse Corsair Nightsword
Keyboard Corsair K55
VR HMD HP Reverb G2
Software Windows 11 Professional
Benchmark Scores PEBCAK
Jesus Christ the man was trying to be helpful and y'all just dunked on him.
 
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
you need to keep in mind we are "enthusiast" users, not you common pc user/gamer.
If he isn't from the enthusiast side of this forum, then I'm not sure who really is. And
all you really have to do is using win "defrag" to trim once a week.
So enthusiastic. :D And I tend to disable scheduler service on most of my OS setups. Dear Lord, how many nice MS features I'm skipping... Scheduled defrag is one of them. And a broken win search functionality is the only one that I grief.

To stay on topic, @Mussels I had a thought once upon a time, that installing a game on a HDD, defragging it, and then moving it on the SSD would net a lot less fragments than installing it straight on an SSD. Any thoughts?
 
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
@Veseleil
was meant for the part that most here dont defrag, and know why.

nope, as every drive has a small amount of use, and will always write to the least written cells first,
and thats not in "sequence" like on a hdd.
one reason why defrag doesn't do much, your just moving data from one cell, to the next (least) used cell,
and all cells have the "same" speed reading them, so it wont matter much.
but regularly deleting files and doing trim should help with write speeds not degrading.
 
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
Didn't mean to be rude, I genuinely wanted to know why one might want to defragment an SSD (is the speed penalty so high?)
Windows auto defrags an SSD infrequently if volume snapshots are active on the drive. Its related to meta data fragmentation. So there is a reason for it on Windows at least.
 

ir_cow

Staff member
Joined
Sep 4, 2008
Messages
4,485 (0.76/day)
Location
USA
Mind you, this information I read was 10 years ago when SSDs were 120GB max.

"Defrag" was unnecessary because no matter where the data was accesses form the drive, the latency was the same throughout. All defrag does is move files around and uses up cell writes. Now if you don't have good trim firmware it can help because all the data cells are randomly used up causing very slow writes. Defrag would move all the data to the same cell groups making them full leaving the others blank, like a new drive would be.

However, in the 10 years since, we got consumer drives with massive improvements to trim firmware, extra flash nand for level wear, making "defrag" absolutely pointless.

Only benefit is if the read access latency decreases from putting all the data together. Might be per brand basis.

I forgot to mention that a lot of these SSD defrag programs are actually simply telling trim to activate instead it usually running in the background when the computer is idle over a period of time.

For example Intel Toolbox "SSD optimization" button is just manually activating Trim". Though the description makes it sound like it's defragging.

True defrag will move the files around which is not good for SSDs as far as wear cycles. But if it's just activating trim there's no harm in using it.
 
Last edited:
Joined
Feb 18, 2005
Messages
5,847 (0.81/day)
Location
Ikenai borderline!
System Name Firelance.
Processor Threadripper 3960X
Motherboard ROG Strix TRX40-E Gaming
Cooling IceGem 360 + 6x Arctic Cooling P12
Memory 8x 16GB Patriot Viper DDR4-3200 CL16
Video Card(s) MSI GeForce RTX 4060 Ti Ventus 2X OC
Storage 2TB WD SN850X (boot), 4TB Crucial P3 (data)
Display(s) 3x AOC Q32E2N (32" 2560x1440 75Hz)
Case Enthoo Pro II Server Edition (Closed Panel) + 6 fans
Power Supply Fractal Design Ion+ 2 Platinum 760W
Mouse Logitech G602
Keyboard Razer Pro Type Ultra
Software Windows 10 Professional x64
Jesus Christ the man was trying to be helpful and y'all just dunked on him.
I guess we're not allowed to be skeptical anymore, huh?
 

Toothless

Tech, Games, and TPU!
Supporter
Joined
Mar 26, 2014
Messages
9,604 (2.46/day)
Location
Washington, USA
System Name Veral
Processor 7800x3D
Motherboard x670e Asus Crosshair Hero
Cooling Corsair H150i RGB Elite
Memory 2x24 Klevv Cras V RGB
Video Card(s) Powercolor 7900XTX Red Devil
Storage Crucial P5 Plus 1TB, Samsung 980 1TB, Teamgroup MP34 4TB
Display(s) Acer Nitro XZ342CK Pbmiiphx, 2x AOC 2425W, AOC I1601FWUX
Case Fractal Design Meshify Lite 2
Audio Device(s) Blue Yeti + SteelSeries Arctis 5 / Samsung HW-T550
Power Supply Corsair HX850
Mouse Corsair Nightsword
Keyboard Corsair K55
VR HMD HP Reverb G2
Software Windows 11 Professional
Benchmark Scores PEBCAK
I guess we're not allowed to be skeptical anymore, huh?
Or read the forum rules. If you can't post anything contributing to the thread or if you're going to be an arse, then don't post. This forum has gotten so toxic lately that I feel bad for the mods having to babysit more than what's realistic.
 
Joined
Dec 26, 2006
Messages
3,837 (0.59/day)
Location
Northern Ontario Canada
Processor Ryzen 5700x
Motherboard Gigabyte X570S Aero G R1.1 BiosF5g
Cooling Noctua NH-C12P SE14 w/ NF-A15 HS-PWM Fan 1500rpm
Memory Micron DDR4-3200 2x32GB D.S. D.R. (CT2K32G4DFD832A)
Video Card(s) AMD RX 6800 - Asus Tuf
Storage Kingston KC3000 1TB & 2TB & 4TB Corsair MP600 Pro LPX
Display(s) LG 27UL550-W (27" 4k)
Case Be Quiet Pure Base 600 (no window)
Audio Device(s) Realtek ALC1220-VB
Power Supply SuperFlower Leadex V Gold Pro 850W ATX Ver2.52
Mouse Mionix Naos Pro
Keyboard Corsair Strafe with browns
Software W10 22H2 Pro x64
What if the fragmentation is fractal fragmentation.......?? Leave it?? :)

All kidding aside, is that W11? 3rd party program or windows?

I got this on W10 and I can't even select Analyze.

1692915878319.png
 
Joined
Mar 11, 2008
Messages
956 (0.16/day)
Location
Hungary / Budapest
System Name Kincsem
Processor AMD Ryzen 9 9950X
Motherboard ASUS ProArt X870E-CREATOR WIFI
Cooling Be Quiet Dark Rock Pro 5
Memory Kingston Fury KF560C32RSK2-96 (2×48GB 6GHz)
Video Card(s) Sapphire AMD RX 7900 XT Pulse
Storage Samsung 970PRO 500GB + Samsung 980PRO 2TB + FURY Renegade 2TB+ Adata 2TB + WD Ultrastar HC550 16TB
Display(s) Acer QHD 27"@144Hz 1ms + UHD 27"@60Hz
Case Cooler Master CM 690 III
Power Supply Seasonic 1300W 80+ Gold Prime
Mouse Logitech G502 Hero
Keyboard HyperX Alloy Elite RGB
Software Windows 10-64
Benchmark Scores https://valid.x86.fr/ilvewh https://valid.x86.fr/4d8n02 X570 https://www.techpowerup.com/gpuz/g46uc
@Mussels
Defragging a modern SSD is useless because the internal trimming methods.
The SSD will move data between blocks on it's own to spare the integrity of the NAND flash
 
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
i think its now getting to the point where the better question would be: whats "your" (the program) definition of "defragging".
as long as it doesnt try to move data around, and is just running trim cmd, its ok.



@mechtech
lol.
highlight all drives, then try.
 
Last edited:
Joined
Dec 26, 2006
Messages
3,837 (0.59/day)
Location
Northern Ontario Canada
Processor Ryzen 5700x
Motherboard Gigabyte X570S Aero G R1.1 BiosF5g
Cooling Noctua NH-C12P SE14 w/ NF-A15 HS-PWM Fan 1500rpm
Memory Micron DDR4-3200 2x32GB D.S. D.R. (CT2K32G4DFD832A)
Video Card(s) AMD RX 6800 - Asus Tuf
Storage Kingston KC3000 1TB & 2TB & 4TB Corsair MP600 Pro LPX
Display(s) LG 27UL550-W (27" 4k)
Case Be Quiet Pure Base 600 (no window)
Audio Device(s) Realtek ALC1220-VB
Power Supply SuperFlower Leadex V Gold Pro 850W ATX Ver2.52
Mouse Mionix Naos Pro
Keyboard Corsair Strafe with browns
Software W10 22H2 Pro x64
@mechtech
lol.
highlight all drives, then try.
thanks

lol wth microsoft

Have to highlight at least two of them..........even though they are all independant drives and not partitioned.
 
Joined
Apr 24, 2020
Messages
2,710 (1.61/day)
Hard Drives are slow enough that people can analyze their behavior with microphones and sound, as well as the latency to move the head between places.

SSDs however are getting more complex every year. Its getting more-and-more difficult for me to keep a mental model of all the layers of abstraction: static wear leveling, dynamic wear leveling, TRIM, OS-optimizations and the like. And that's before we add filesystem specific issues (NTFS) like what might be happening in this post.

Skepticism is warranted. I feel like this topic is one of the high-wizard topics.
 

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.
You do realize that SSD has a strong chance of seeing order of magnitude larger than stated TBW? The numbers behind what size of writes per hour are needed in a year to even begin getting concerned are rather unlikely. Per year, not single. :)
Oh no, TBW are not 'per year' - it's that value total for the life of the drive.
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)

Why defragment an SSD?
Wasn't that clearly covered already? In plain simple language?

@Mussels
you need to keep in mind we are "enthusiast" users, not you common pc user/gamer.
This forum has tens of thousands of visitors per day.
These threads show up in google.
And uhh... it seems like these enthusiast users don't understand how SSD's work, let alone file systems.

1693372228867.png


The file system address is not the same on the physical block address on the ssd. Controller decides what data goes to which physical blocks, you cant force it to defragment. What you see as fragments in windows file system is totally different on the controller/flash side.
80% correct
The files are indeed spread out over the NAND flash invisibly, but fragmented files are still spread out more.
If a file is fragmented into more pieces, it's going to use more of those sectors.

Only benefit is if the read access latency decreases from putting all the data together. Might be per brand basis.
This. It also uses less CPU power.
NTFS has not just character lengths, but maximum fragment sizes too
A heavily fragmented file in an NTFS volume may not grow beyond a certain size - Microsoft Support
(The link is for a specific bug in SQL, but covers the topic at hand about the file system limitations)


It's the difference between your file reading at sequential speeds or 4K random - because when it's scattered all over the drive in random fragments, it's going to be read at those random speeds.
Somewhere around 8,000 fragments there, that would run at 4K random performance of the SSD instead of sequential.
I tried to put this information as clear as possible in the post, but seriously it feels like everyone's arguing over things already explained.


There was information in a microsoft block about at what point the built in derfragger will defrag individual files on an SSD, but googling no longer finds it as you get hundreds of AI generated trash articles instead.
I had a 90GB file reading at 5MB/s from a SATA SSD to an external NVME SSD at a LAN party where i needed to share the files so other people could stop trying to download it off the internet (well before steam had it's new sharing feature), and when I looked it had some ridiculous value well over 10,000 fragments, I vaguely recall around 80,000 - it's in some thread here on TPU from a year or two back.
I had to waiit for the external copy, delete the local copy, delete a lot of other files, run TRIM, defrag and move the scattered crap to the end of the drive and copy it back to get that game loading correctly.

NTFS has limits. People just ignore them by saying "uninstall and reinstall the game!" which i dunno, deletes the files and makes a new copy with less fragments? or formatting their entire drive and starting fresh and chalking it up to mysteries of the universe.

Found one of the references i was looking for on this, it's a lot harder now with google results spammed with AI generated crap.
I'll add this to the OP, to save people having to look for it.

Yes, file system fragmentation DOES affect SSD read speed | Overclock.net
This was a SATA SSD, same file going from 159MB/s read to 506MB/s
1693374279403.png


Smaller files are just as affected.
The fragment numbers are down the bottom
150MB file
2 fragments - 499MB/s (limit of his SSD)
1000 fragments, 396MB/s
37,200 fragments (Jesus christ) down to 87MB/s

the total time went from 305ms to 1741ms, and that extra time has increased CPU and RAM usage for that extra duration while it loads the fragments into something readable in memory - they don't get processed by nothing.
1693374587384.png
 
Last edited:
Joined
Feb 22, 2016
Messages
1,978 (0.62/day)
Processor Intel i5 8400
Motherboard Asus Prime H370M-Plus/CSM
Cooling Scythe Big Shuriken & Noctua NF-A15 HS-PWM chromax.black.swap
Memory 8GB Crucial Ballistix Sport LT DDR4-2400
Video Card(s) ROG-STRIX-GTX1060-O6G-GAMING
Storage 1TB 980 Pro
Display(s) Samsung UN55KU6300F
Case Cooler Master MasterCase Pro 3
Power Supply Super Flower Leadex III 750w
Software W11 Pro
Oh no, TBW are not 'per year' - it's that value total for the life of the drive.

You know what I meant. Move along to the next poster in your riposte. :)
 
Joined
Aug 12, 2020
Messages
1,207 (0.77/day)
I think file fragmentation is the least of that game's problems...


Exactly. I don't know how whatever tool this is determines file fragmentation, but I'm pretty sure that it's just reading what NTFS tells it - and $diety$ only knows how the SSD driver maps the underlying physical state of the flash to NTFS's concept of "file fragments".
Does it even matter how? It matters that it makes a measurable performance difference, as tests done suggest.
 
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
while you seem to be correct on the "enthusiast" part of the ppl here, your talking about sata.

not sure how many ppl are still buying those for new systems/upgrades,
but i havent seen slow speeds on any of the pcie drives i have (6 total), even on backup drives (and 3/4 full),
incl my game drive, which until about 6 month ago was almost full, games between 40-120GB each.

then again, i do tweak hdd related stuff (os), and trim regularly, especially before copying larger files,
and the backup drive with most amount of data/files is the fastest (while not the fastest by specs).
even my external does +1GB/s, only slows below for personal files/docs stuff that's less than 300MB,
all on drives never defragged by anything.
 
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.
@Mussels
while you seem to be correct on the "enthusiast" part of the ppl here, your talking about sata.

not sure how many ppl are still buying those for new systems/upgrades,
but i havent seen slow speeds on any of the pcie drives i have (6 total), even on backup drives (and 3/4 full),
incl my game drive, which until about 6 month ago was almost full, games between 40-120GB each.

then again, i do tweak hdd related stuff (os), and trim regularly, especially before copying larger files,
and the backup drive with most amount of data/files is the fastest (while not the fastest by specs).
even my external does +1GB/s, only slows below for personal files/docs stuff that's less than 300MB,
all on drives never defragged by anything.
Just because those tests were done on sata doesn't mean a thing - NVME drives slow down just the same.

That test was a linux based one, or i'd run my own results, but it seems people really are opposed to learning something new on this topic.

You know what I meant. Move along to the next poster in your riposte. :)
Bonus like for the word riposte, excellent use.
 
Joined
Aug 14, 2013
Messages
2,373 (0.58/day)
System Name boomer--->zoomer not your typical millenial build
Processor i5-760 @ 3.8ghz + turbo ~goes wayyyyyyyyy fast cuz turboooooz~
Motherboard P55-GD80 ~best motherboard ever designed~
Cooling NH-D15 ~double stack thot twerk all day~
Memory 16GB Crucial Ballistix LP ~memory gone AWOL~
Video Card(s) MSI GTX 970 ~*~GOLDEN EDITION~*~ RAWRRRRRR
Storage 500GB Samsung 850 Evo (OS X, *nix), 128GB Samsung 840 Pro (W10 Pro), 1TB SpinPoint F3 ~best in class
Display(s) ASUS VW246H ~best 24" you've seen *FULL HD* *1O80PP* *SLAPS*~
Case FT02-W ~the W stands for white but it's brushed aluminum except for the disgusting ODD bays; *cries*
Audio Device(s) A LOT
Power Supply 850W EVGA SuperNova G2 ~hot fire like champagne~
Mouse CM Spawn ~cmcz R c00l seth mcfarlane darawss~
Keyboard CM QF Rapid - Browns ~fastrrr kees for fstr teens~
Software integrated into the chassis
Benchmark Scores 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
I’d be curious to see your results with nvme. For science!
 
Top