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

SSD Defragging: The safe way

Joined
Feb 10, 2023
Messages
854 (1.30/day)
Location
Belgium
System Name Prometheus
Processor AMD Ryzen 9 7900X3D
Motherboard ASUS ROG Crosshair X670E Extreme
Cooling AIO Cooler Master MasterLiquid 360
Memory 32GB DDR5
Video Card(s) Gigabyte GeForce RTX 3060 OC Edition 12GB
Storage Samsung 970PRO 2TB, Samsung 990PRO 4TB, WD SN850X 2TB, Samsung 980PRO 2TB. WD GOLD HDD 8TB
Display(s) Corsair XENEON 32UHD144 32" 4K UHD gaming monitor
Case Cooler Master HAF
Audio Device(s) Creative Sound Blaster AE7 + Logitech Z-5500 500W 5.1.
Power Supply Corsair AX850 Titanium.
Mouse Logitech MX Master 3
Keyboard Corsair K95 RGB
Software W10-11 Enterprise- Linux Mint 22.0 Cinnamon Edition.
If you have already defragged your SSD a few times, it won’t harm your SSD. However, it’s not a practice you should continue...
SSDs already have a better and stronger performance, they don't need any extra step to further improve it.

The short answer is this: you don't need to defrag files on SSD's, it's fast enough and designed for this problem as solution.

De-fragmentation exists only to rearrange data to maximize read performance of a spinning magnetic medium and a flying read head.
Since that is not the physical arrangement of an SSD, defragging is pointless.

But this is just some advice, everyone is free to do what they want to do with their SSD of course.:)

Right now i am making a test rig setup with some stuff to see what it gives.
 
Last edited:
Joined
Apr 15, 2016
Messages
1,707 (0.54/day)
System Name The Blind Grim Reaper
Processor Xeon X5675 Westmere-EP B1 SLBYL 4.20ghz @ 1.256v
Motherboard Asus P6X58D-E
Cooling Noctua CP12 SE14, Redux Noctua 1500rpm fan Arctic F14 x3 for intake and exhaust
Memory Corsair XMS3 CMX4GX3M2A1600C9 x6
Video Card(s) EVGA GTX 1060 6GB SC Single Fan Model
Storage Crucial mx300 750gb main system + 1TB mx500 for games and music
Display(s) 22 inch samsung curved
Case NZXT Phantom 530 black
Audio Device(s) Nvidia HDMI through HDMI adaptor for output sound for turtlebeach x12 headset
Power Supply Antec HCG 850 watt
Mouse no brand
Keyboard normal usb keyboard
Software Windows 10 22H2 v1 (main is) and Windows 11 22H2 v2 on WD 250gb 7200rpm (testing purposes os)
Benchmark Scores Cinebench R20 = 2046cb
Giving the matter of slowdown is when the ssd is is above 85% usable space available that is used this is where it would generally slow down the ssd to the point where it recommended not to fill it up. Giving my experience on defragging the ssd it will take forever to complete whole ssd regardless of available space let alone that controller inside the ssd is trying to reorganise it own structure in the background without asking you for permission as it won't like it if you keep defragging it on a daily, weekly or monthly basis which will reduce it lifespan alot quicker.

If you have already defragged your SSD a few times, it won’t harm your SSD. However, it’s not a practice you should continue...
SSDs already have a better and stronger performance, they don't need any extra step to further improve it.

The short answer is this: you don't need to defrag files on SSD's, it's fast enough and designed for this problem as solution.

De-fragmentation exists only to rearrange data to maximize read performance of a spinning magnetic medium and a flying read head.
Since that is not the physical arrangement of an SSD, defragging is pointless.
That why the short stroking method is used on regular hard drive for example 1tb 7200rpm have fast access area on the platter from 200gb to 250gb range then after that is medium access then slow access that why is ideal to partition the hard drive three times based on the read and write access given on the hard drive. HDtune can give you that detail so you can manage it without too much trouble
 
D

Deleted member 57642

Guest
Even if typical desktop users were defragging on an SSD weekly, I bet most still wouldn't have a problem in the course of their SSD warranty period unless the SSD was really low quality or they are doing a high number of write already. Defrag or not, your still bound by the constraints of SSD flash endurance. If your only defragging maybe hundreds of megabytes weekly it won't matter much.
Defrag is not evil, or bad, just mostly undesirable because it doesn't do anything to help the SSD and adds wear for little benefit in likely a vast majority of cases - hence why it's turned off by default in Windows.
The only helpful impact of defrag now with SSD's is in specific cases where fragmentation might cause particular problems or slowdowns in filesystem overhead.
If your sophisticated enough to be impacted by filesystem overhead then defrag might be an option...especially the choice to only defrag specific folder and files.

Defragmentation was intended/created for a different tech - for Hard Disk Drives. If you still own this type of hardware - it's highly recommended/beneficial. Even more than that - if for an SSD it can lower life span - for an HDD it can actually extended it (less wear and tear). A HDD is half the size of a brick - hosting multiple disk platters which spin at 5400 RPM (mostly in portable), 7200 RPM (mostly on Desktop) and 10.000 RPM (servers and desktop). To read/write the information - the actuator Arm (as shown in the image below) keeps moving above the disk - while constantly pointing the Slider (and Head) where the information is positioned/written on the disk platter.


If the written data is scattered all over the disk platter - then obviously - the actuator has to make extra steps - which translates to higher loading times. And thus, defrgmentation was invented - re-arranging the data in such way (especially if also optimized) - that the actuator barely moves, as shown in next image:



A SOLID State Drive - on the other hand... is/works quite different - to say the least. Here's a comparative image:



And also a m2 NVMe SSD:

2023-12-29_225138.png


As can be seen above - there's a quite a big difference between an HDD and SSD. Fort start - no moving parts, no disk platter and most importantly - no need for actuator to constantly move if the drive is not defragmented.

Also, we're 2023 - 2 days from 2024. Unless you're using your system strictly for office tasks - just word, excel and mails - not even social media and such (especially YouTube) - numbers like hundreds of MB have no place in this discussion - especially on this forum where most users or gamers. And pretty sure they're not retro gamers - using an Atari and Super Nintento emulator to play old games of couple of Mb (if not Kb). Some of the modern games have more than 100Gb in size - while the bigest have over 250 Gb. Baldur's Gate 3 for example - since August had to instal it 3x times (basiclly re-install it 2x) - and that's over 100 Gb. Luckly - i still have/use and HDD for the downloading part. Taking into account both the downloads and installls - if i was to defrag it too - that's 3x Doanload + 3x install + 6x intensive write from defraging.
 
Joined
Apr 24, 2022
Messages
168 (0.18/day)
System Name lawooder
Processor 5800x3D
Motherboard B550M Aorus Elite
Cooling Arctic Freezer 34 DUO
Memory 32GB 4000Mhz CL16 (2x16GB)
Video Card(s) RTX 3070 Ti
Storage SN770 250GB/SN750 500GB/SA510 1TB
Display(s) VG279QM 1080P 280hz + VG27AQ 1440P 165HZ
Case MSI MAG Something
Audio Device(s) fiiO EK10 + HD 599
Power Supply Focus GX 750 Watts
Mouse XM1r
Keyboard Xtrfy K4
A tech enthusiast should defrag the SSD on a daily basis and then... replace it every 5 months or else one's narrow minded.

Another way to put it, your level as a tech enthusiast - is defined by how much tech stuff you brake - while chasing performance unicorns.
go back to reddit...

Defragmentation was intended/created for a different tech - for Hard Disk Drives. If you still own this type of hardware - it's highly recommended/beneficial. Even more than that - if for an SSD it can lower life span - for an HDD it can actually extended it (less wear and tear). A HDD is half the size of a brick - hosting multiple disk platters which spin at 5400 RPM (mostly in portable), 7200 RPM (mostly on Desktop) and 10.000 RPM (servers and desktop). To read/write the information - the actuator Arm (as shown in the image below) keeps moving above the disk - while constantly pointing the Slider (and Head) where the information is positioned/written on the disk platter.


If the written data is scattered all over the disk platter - then obviously - the actuator has to make extra steps - which translates to higher loading times. And thus, defrgmentation was invented - re-arranging the data in such way (especially if also optimized) - that the actuator barely moves, as shown in next image:



A SOLID State Drive - on the other hand... is/works quite different - to say the least. Here's a comparative image:



And also a m2 NVMe SSD:

View attachment 327390

As can be seen above - there's a quite a big difference between an HDD and SSD. Fort start - no moving parts, no disk platter and most importantly - no need for actuator to constantly move if the drive is not defragmented.

Also, we're 2023 - 2 days from 2024. Unless you're using your system strictly for office tasks - just word, excel and mails - not even social media and such (especially YouTube) - numbers like hundreds of MB have no place in this discussion - especially on this forum where most users or gamers. And pretty sure they're not retro gamers - using an Atari and Super Nintento emulator to play old games of couple of Mb (if not Kb). Some of the modern games have more than 100Gb in size - while the bigest have over 250 Gb. Baldur's Gate 3 for example - since August had to instal it 3x times (basiclly re-install it 2x) - and that's over 100 Gb. Luckly - i still have/use and HDD for the downloading part. Taking into account both the downloads and installls - if i was to defrag it too - that's 3x Doanload + 3x install + 6x intensive write from defraging.

Your answers feel like AI talking. Sad state of affairs.
 
Last edited:
Joined
Feb 10, 2023
Messages
854 (1.30/day)
Location
Belgium
System Name Prometheus
Processor AMD Ryzen 9 7900X3D
Motherboard ASUS ROG Crosshair X670E Extreme
Cooling AIO Cooler Master MasterLiquid 360
Memory 32GB DDR5
Video Card(s) Gigabyte GeForce RTX 3060 OC Edition 12GB
Storage Samsung 970PRO 2TB, Samsung 990PRO 4TB, WD SN850X 2TB, Samsung 980PRO 2TB. WD GOLD HDD 8TB
Display(s) Corsair XENEON 32UHD144 32" 4K UHD gaming monitor
Case Cooler Master HAF
Audio Device(s) Creative Sound Blaster AE7 + Logitech Z-5500 500W 5.1.
Power Supply Corsair AX850 Titanium.
Mouse Logitech MX Master 3
Keyboard Corsair K95 RGB
Software W10-11 Enterprise- Linux Mint 22.0 Cinnamon Edition.
I will do some testing here with and old SATA 870EVO and an Crucial NVMe P3, i won't use defraggler but O&O defrag Pro, that also has some special SSD functions.



Screenshot 2023-12-29 230119.png
 
Joined
Dec 14, 2013
Messages
2,723 (0.68/day)
Location
Alabama
Processor Ryzen 2600
Motherboard X470 Tachi Ultimate
Cooling AM3+ Wraith CPU cooler
Memory C.R.S.
Video Card(s) GTX 970
Software Linux Peppermint 10
Benchmark Scores Never high enough
NOTE:
*My own personal view - Take it or leave it for what it's worth or not to you.*

Yes - Defragging is for the older HDD's that have discs spinning in them, an SSD has no moving parts to worry about and it essentially does the same thing RAM itself will do related to the system hitting it for read and write functions.

However IF you want to do it anyway, that's your call but I'd suggest only doing it about once every 6 months, preferably once a year if you OS copy lasts that long before you have to do a reinstall.
Even with that I'd only do it if it has alot of data (Full or close to full) on it.
If it's not around 80% full or more I'd not worry about it period.

I have done it before and in my case it did seem to make a difference (System boot times and only that really) but it was nothing to write home about either.

TRIM usually does a good job of managing the file system anyway, esp if you tend to create/download alot of files and later delete them, creating alot of useless garbage in the file system.
These are the parameters I'd do it under, only with those in play at the frequency of doing it stated and no more.

As for HDD drives - Go for it.
 
Joined
Mar 24, 2019
Messages
654 (0.31/day)
Location
Denmark - Aarhus
System Name Iglo
Processor 5800X3D
Motherboard TUF GAMING B550-PLUS WIFI II
Cooling Arctic Liquid Freezer II 360
Memory 32 gigs - 3600hz
Video Card(s) EVGA GeForce GTX 1080 SC2 GAMING
Storage NvmE x2 + SSD + spinning rust
Display(s) BenQ XL2420Z - lenovo both 27" and 1080p 144/60
Case Fractal Design Meshify C TG Black
Audio Device(s) Logitech Z-2300 2.1 200w Speaker /w 8 inch subwoofer
Power Supply Seasonic Prime Ultra Platinum 550w
Mouse Logitech G900
Keyboard Corsair k100 Air Wireless RGB Cherry MX
Software win 10
Benchmark Scores Super-PI 1M T: 7,993 s :CinebR20: 5755 point GeekB: 2097 S-11398-M 3D :TS 7674/12260
Curious about if this will cause wear on cells more, i thought the drives distributes data so all cells get used equally.
Pardon my bad english.
 
Joined
Apr 15, 2016
Messages
1,707 (0.54/day)
System Name The Blind Grim Reaper
Processor Xeon X5675 Westmere-EP B1 SLBYL 4.20ghz @ 1.256v
Motherboard Asus P6X58D-E
Cooling Noctua CP12 SE14, Redux Noctua 1500rpm fan Arctic F14 x3 for intake and exhaust
Memory Corsair XMS3 CMX4GX3M2A1600C9 x6
Video Card(s) EVGA GTX 1060 6GB SC Single Fan Model
Storage Crucial mx300 750gb main system + 1TB mx500 for games and music
Display(s) 22 inch samsung curved
Case NZXT Phantom 530 black
Audio Device(s) Nvidia HDMI through HDMI adaptor for output sound for turtlebeach x12 headset
Power Supply Antec HCG 850 watt
Mouse no brand
Keyboard normal usb keyboard
Software Windows 10 22H2 v1 (main is) and Windows 11 22H2 v2 on WD 250gb 7200rpm (testing purposes os)
Benchmark Scores Cinebench R20 = 2046cb
That when the cells starts dying the life span goes down meaning the controller marked that section of cells as dead not useable meaning it loses the available space is inevitable
 
Joined
Jun 21, 2021
Messages
3,121 (2.48/day)
System Name daily driver Mac mini M2 Pro
Processor Apple proprietary M2 Pro (6 p-cores, 4 e-cores)
Motherboard Apple proprietary
Cooling Apple proprietary
Memory Apple proprietary 16GB LPDDR5 unified memory
Video Card(s) Apple proprietary M2 Pro (16-core GPU)
Storage Apple proprietary onboard 512GB SSD + various external HDDs
Display(s) LG UltraFine 27UL850W (4K@60Hz IPS)
Case Apple proprietary
Audio Device(s) Apple proprietary
Power Supply Apple proprietary
Mouse Apple Magic Trackpad 2
Keyboard Keychron K1 tenkeyless (Gateron Reds)
VR HMD Oculus Rift S (hosted on a different PC)
Software macOS Sonoma 14.7
Benchmark Scores (My Windows daily driver is a Beelink Mini S12 Pro. I'm not interested in benchmarking.)
Curious about if this will cause wear on cells more, i thought the drives distributes data so all cells get used equally.
Pardon my bad english.
Today's onboard SSD disk controllers handle wear leveling, TRIM, bad block reallocation, and other disk maintenance tasks.

Early SSDs lacked some of this functionality built in and relied on the operating system to handle those missing tasks. Naturally, these capabilities weren't in every single operating system from the beginning nor were they implemented all at the same time by everyone all at once.

Short of the OS, you could invoke some of this stuff manually. In the same way, some UNIX old-timers will type 'sync' or 'purge' commands before shutting down even if these manual commands are completely redundant on modern systems.

Over time, many of these tasks were moved to the onboard disk controller to put less reliance on whoever wrote the operating system. You don't really want to rely on a UNIX cron job at 4am every Monday to do your disk maintenance.

But in 2023, Joe Consumer doesn't have to worry about this stuff. It's all handled by the system. There are people at Phison, Samsung, Western Digital, Seagate, wherever who get paid to think about this stuff so Gamer Dude can focus on being ultra-toxic on CoD rather than worry about using a particular NAND flash element one too many times.
 
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
an SSD has no moving parts to worry about and it essentially does the same thing RAM itself will do related to the system hitting it for read and write functions.
That's a good analogy. But RAM fragmentation is a thing, too.

 
Joined
Jul 30, 2019
Messages
3,282 (1.68/day)
System Name Still not a thread ripper but pretty good.
Processor Ryzen 9 7950x, Thermal Grizzly AM5 Offset Mounting Kit, Thermal Grizzly Extreme Paste
Motherboard ASRock B650 LiveMixer (BIOS/UEFI version P3.08, AGESA 1.2.0.2)
Cooling EK-Quantum Velocity, EK-Quantum Reflection PC-O11, D5 PWM, EK-CoolStream PE 360, XSPC TX360
Memory Micron DDR5-5600 ECC Unbuffered Memory (2 sticks, 64GB, MTC20C2085S1EC56BD1) + JONSBO NF-1
Video Card(s) XFX Radeon RX 5700 & EK-Quantum Vector Radeon RX 5700 +XT & Backplate
Storage Samsung 4TB 980 PRO, 2 x Optane 905p 1.5TB (striped), AMD Radeon RAMDisk
Display(s) 2 x 4K LG 27UL600-W (and HUANUO Dual Monitor Mount)
Case Lian Li PC-O11 Dynamic Black (original model)
Audio Device(s) Corsair Commander Pro for Fans, RGB, & Temp Sensors (x4)
Power Supply Corsair RM750x
Mouse Logitech M575
Keyboard Corsair Strafe RGB MK.2
Software Windows 10 Professional (64bit)
Benchmark Scores RIP Ryzen 9 5950x, ASRock X570 Taichi (v1.06), 128GB Micron DDR4-3200 ECC UDIMM (18ASF4G72AZ-3G2F1)
Defragmentation was intended/created for a different tech - for Hard Disk Drives.
Indeed. Likewise filesystems were also created for the tech during that time.
Also, we're 2023 - 2 days from 2024. Unless you're using your system strictly for office tasks - just word, excel and mails - not even social media and such (especially YouTube) - numbers like hundreds of MB have no place in this discussion - especially on this forum where most users or gamers.
LOL
And pretty sure they're not retro gamers - using an Atari and Super Nintento emulator to play old games of couple of Mb (if not Kb). Some of the modern games have more than 100Gb in size - while the bigest have over 250 Gb. Baldur's Gate 3 for example - since August had to instal it 3x times (basiclly re-install it 2x) - and that's over 100 Gb. Luckly - i still have/use and HDD for the downloading part. Taking into account both the downloads and installls - if i was to defrag it too - that's 3x Doanload + 3x install + 6x intensive write from defraging.
...but not every day. I'm not advocating for defragging SSD's in general but it's not the bogeyman that's going to blow up your PC either unless you abuse it vigorously.
 
Joined
Dec 14, 2013
Messages
2,723 (0.68/day)
Location
Alabama
Processor Ryzen 2600
Motherboard X470 Tachi Ultimate
Cooling AM3+ Wraith CPU cooler
Memory C.R.S.
Video Card(s) GTX 970
Software Linux Peppermint 10
Benchmark Scores Never high enough

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.
It's still new tech (and keeps evolving/improving - bot speed and reliability wise) - and only recently (past 10 year or so) - turned mainstream (used as a standard storage unit in most laptops available on market - also many many times cheaper - thus, adapted as a standard at a large scale even among desktop users). Last time i checked - derangementing an SSD was deemed as a bad thing. Checked again and still is (deemed a bad thing / not recommended). As for Microsoft having a scheduled defragmentation even for an SSD - i don't trust it. Microsoft doesn't make SSDs nor it it specialized on storage maintenance (more focused on the average Windows user - thus features like - SuperFetch/SysMain and Indexing are activated by default - which can actually be useful for the average user using small apps frequently - yet, quite catastrophic for a power user or even a gamer dabbling with multiple apps quite large in size - which translated to 100% disk usage). Even the TRIM command - which, despite proven to be beneficial (if used the correct way) - was reworked in functionality - because it also proved to be quite bad for some SDDs (Samsung 840 and 860 in particular - didn't work so well with auto-trim - thus it was disabled by default) - if used to often or while actively using the SSD. That being said - if Samsung will recommend to defrag their SSD (maybe for some future model - that can be beneficial), sure - might give that a 2nd tought, bu so far:

No, Solid State Drives do not need defragmentation because they have no moving parts and can access any location on the drive equally fast. Please disable any defragmentation utilities on your computer because they will only wear down the performance of your SSD. Visit the OS Optimization section of Samsung SSD Magician for help doing this.

Same goes for Western Digital, which deems read intensive tasks as safe - while write intensive tasks like Defrag is also flagged as doing more harm than good in the long run (by shorting the lifespan).

DEFRAG is write-intensive. It can cause the premature wearing out or degradation of the NAND (flash memory) on SSDs as data is moved and re-written elsewhere in the NAND.
CHKDSK is read-intensive. It reads or scans the disks for errors and depending on your settings, can correct it using a very small write operation that does not negatively affect the NAND in the same way that 'defrag' might.


So hey, doing a windows update or while removing/installing some major apps (that's specially the case for every modern game - while taking their size into account) - i'll issue the TRIM command manually. After decades of using HDDs - the SSD tech is still a piece of modem tech which i find highly impressive (minutes even hours - turned into secconds).

As for Baldur Gate 3, great game - but honestly - does seem ratter poorly optimized at managing storage resources. Not to mention an SSD is a main requirment - even a Minimum requirment:

MINIMUM:


  • Requires a 64-bit processor and operating system
  • OS: Windows 10 64-bit
  • Processor: Intel i5-4690 / AMD FX 8350
  • Memory: 8 GB RAM
  • Graphics: Nvidia GTX 970 / AMD RX 480 (4GB+ of VRAM)
  • DirectX: Version 11
  • Storage: 150 GB available space on an SSD
  • Additional Notes: Default API is Directx11. Vulkan 1.1 API also provided.
This being one of the reasons why I opted for the GoG version (saw a streamer with the Steam version - and that comes with Cloud Savings - which in one of his streams took at least 10 minutes to save). Tho, not entirly satisfied with the GoG versions either for somehow similar reasons. As in - instead of a patch (even big one like 10 gb or so), there's times when a new version seem to download/install the whole game all over again. Stuff like this it's why i bought an HDD, which helps only partially - cause i still have to install the whole thing.

Anyway, can't say that i ever encountered that type of issues (as shown in above images), and this is an OEM nVME SSD (quite mediocre compared to latest models). Tho, satisfies my needs and still impressed with its performance.
I love the quotes you've made, despite the fact i've proven them wrong here already.
Yes, SSDs fragment. Yes it slows things down. That's been proven here already and it's not disputable.


SSD's should not have a classic "full defrag" completed on them, and it seems you don't know what that means.

A full defrag is where every single file was defragmented and moved to the start of the disk for higher speeds. THAT is what SSD's do not benefit from, wasting writes.
"Quick" Defrags of just the worst files? It's already being done on your SSD automatically, this has been covered in the thread. This is just manual control over it.
 
Joined
Feb 7, 2006
Messages
739 (0.11/day)
Location
Austin, TX
System Name WAZAAM!
Processor AMD Ryzen 3900x
Motherboard ASRock Fatal1ty X370 Pro Gaming
Cooling Kraken x62
Memory G.Skill 16GB 3200 MHz
Video Card(s) EVGA GeForce GTX 1070 8GB SC
Storage Micron 9200 Max
Display(s) Samsung 49" 5120x1440 120hz
Case Corsair 600D
Audio Device(s) Onboard - Bose Companion 2 Speakers
Power Supply CORSAIR Professional Series HX850
Keyboard Corsair K95 RGB
Software Windows 10 Pro
My goodness there's a lot of "confidently incorrect" in this thread.

I know this forum is fairly anonymous and we don't give credence to day-job credentials but I'll give you mine anyway.

I'm a lead on a performance engineering team at one of the top 5 SSD manufacturers. I've been in the storage industry for 15+ years and have been focused on SSDs for the past 10. Personally I have a lot of SSD experience. I have an extensive home lab with ~100 SSDs from various manufacturers (consumer & enterprise / SATA & NVMe / planar & 3D).

There are two main misconceptions I see in this thread:
1. Doing defrag operations will quickly use up your endurance
2. SSDs are so good at random reads that you don't need to optimize for sequential

Number 1: Endurance
This is kind of valid but very few users will use a significant portion of their drive's endurance. Before some of you tell me your anecdotes about wearing out a drive, you're in the minority. It doesn't invalidate your experience but it means it doesn't necessarily signify what others' experiences will be.

Thankfully there are drive metrics to tell you about the health of your drive. If you're concerned, monitor the situation and adjust to fit your needs and hardware..


Number 2: Sequential vs Random
The easiest way to explain this is to get to the NAND level. A NAND die will take a certain amount of time to process a transaction PLUS an amount dependant on the amount of data moved. For small transactions (<16k) the transaction processing time dominates. For example: a die takes 50us to process a transaction and it can do 4k or 64k in the same amount of time. 4k in 50us is 80 MB/s while 64k in 50us is 1.3GB/s.

You can overcome this issue through parallelism by having enough transactions in flight that across all the die & packages in an SSD you can get to the bandwidth limit by using a lot of small transactions.

The problem is that filesystem operations rarely queue up future blocks in a file read which means for "normal" operations we're in low queue depth mode which means IO latency dominates the bandwidth equation.

All this means that optimizing file layout to be sequentially laid out blocks in an SSD will improve performance at the expense of the incurred write amplification.


A number of folks have indicated that this isn't recommended by the industry but that's not entirely true. If you look at flash optimized applications they all share a primary characteristic. They will write large files and never modify. Modifications are managed by in memory data structures and when enough modifications occur the large files are read to memory, modified, then written back to disk and the old version is deleted and trimmed. This behavior prevents fragmentation as small blocks will not be modified in a larger file and it reduced write amplification on the drive by reducing garbage collection -- the application will only ever write big chunks at one time which won't need to be split up.

So while advice to consumers is to avoid defragging the big players (Meta / AWS / Google / MS / etc) in their data center applications have processes to ensure they don't fragment their data.


TL;DR: Defragging will improve performance at the cost of endurance. You probably didn't need that endurance anyway.
 
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
Just use your SSD as it is meant to, you don't need any special tools for it. Just use it and don't look back! There's many things to say about it, but defragging means unnecessary wear, so don't do it. But it's your SSD, and your money, it's just advice.:)
I think the point here is, people are not "doing it" Microsoft automatically defrags SSDs.

Given Microsoft designed NTFS, I will trust their judgement on their own file system, from the tidbits of info released it seems it has issues (the file system itself) if there is too many fragments on metadata, especially when volume shadow copy is utilised.

I have never seen an auto defrag happen when VSS (system restore) is disabled for the drive, but some have reported in this thread it happens regardless. So non conclusive.

That's a good analogy. But RAM fragmentation is a thing, too.

It most definitely is and is probably the biggest reason PCs are faster on fresh bootup.

There is some software I have used where memory fragmentation has a very visible effect that even starts to be noticeable within 30 mins of OS uptime. It can also cause stability issues in more extreme cases.
 
Last edited:
Joined
Feb 20, 2020
Messages
9,340 (5.35/day)
Location
Louisiana
System Name Ghetto Rigs z490|x99|Acer 17 Nitro 7840hs/ 5600c40-2x16/ 4060/ 1tb acer stock m.2/ 4tb sn850x
Processor 10900k w/Optimus Foundation | 5930k w/Black Noctua D15
Motherboard z490 Maximus XII Apex | x99 Sabertooth
Cooling oCool D5 res-combo/280 GTX/ Optimus Foundation/ gpu water block | Blk D15
Memory Trident-Z Royal 4000c16 2x16gb | Trident-Z 3200c14 4x8gb
Video Card(s) Titan Xp-water | evga 980ti gaming-w/ air
Storage 970evo+500gb & sn850x 4tb | 860 pro 256gb | Acer m.2 1tb/ sn850x 4tb| Many2.5" sata's ssd 3.5hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 | Cherry Entertainment center on Test bench
Audio Device(s) Built in Realtek x2 with 2-Insignia 2.0 sound bars & 1-LG sound bar
Power Supply EVGA 1000P2 with APC AX1500 | 850P2 with CyberPower-GX1325U
Mouse Redragon 901 Perdition x3
Keyboard G710+x3
Software Win-7 pro x3 and win-10 & 11pro x3
Benchmark Scores Are in the benchmark section
Hi,
Yeah trim is fine only issue in the past was ms was running it to much

Only thing I wish ms would stop doing is auto adding recycle bins on them.
 
Joined
Feb 10, 2023
Messages
854 (1.30/day)
Location
Belgium
System Name Prometheus
Processor AMD Ryzen 9 7900X3D
Motherboard ASUS ROG Crosshair X670E Extreme
Cooling AIO Cooler Master MasterLiquid 360
Memory 32GB DDR5
Video Card(s) Gigabyte GeForce RTX 3060 OC Edition 12GB
Storage Samsung 970PRO 2TB, Samsung 990PRO 4TB, WD SN850X 2TB, Samsung 980PRO 2TB. WD GOLD HDD 8TB
Display(s) Corsair XENEON 32UHD144 32" 4K UHD gaming monitor
Case Cooler Master HAF
Audio Device(s) Creative Sound Blaster AE7 + Logitech Z-5500 500W 5.1.
Power Supply Corsair AX850 Titanium.
Mouse Logitech MX Master 3
Keyboard Corsair K95 RGB
Software W10-11 Enterprise- Linux Mint 22.0 Cinnamon Edition.
So the answer remains, just use it for what it was made, and you should not have problems at all. Don't search for problems when it's not needed.;)

There's no need to fix something when it's not broken says common sense...
 
Last edited:
Joined
Sep 29, 2015
Messages
126 (0.04/day)
My goodness there's a lot of "confidently incorrect" in this thread.

I know this forum is fairly anonymous and we don't give credence to day-job credentials but I'll give you mine anyway.

I'm a lead on a performance engineering team at one of the top 5 SSD manufacturers. I've been in the storage industry for 15+ years and have been focused on SSDs for the past 10. Personally I have a lot of SSD experience. I have an extensive home lab with ~100 SSDs from various manufacturers (consumer & enterprise / SATA & NVMe / planar & 3D).

There are two main misconceptions I see in this thread:
1. Doing defrag operations will quickly use up your endurance
2. SSDs are so good at random reads that you don't need to optimize for sequential

Number 1: Endurance
This is kind of valid but very few users will use a significant portion of their drive's endurance. Before some of you tell me your anecdotes about wearing out a drive, you're in the minority. It doesn't invalidate your experience but it means it doesn't necessarily signify what others' experiences will be.

Thankfully there are drive metrics to tell you about the health of your drive. If you're concerned, monitor the situation and adjust to fit your needs and hardware..


Number 2: Sequential vs Random
The easiest way to explain this is to get to the NAND level. A NAND die will take a certain amount of time to process a transaction PLUS an amount dependant on the amount of data moved. For small transactions (<16k) the transaction processing time dominates. For example: a die takes 50us to process a transaction and it can do 4k or 64k in the same amount of time. 4k in 50us is 80 MB/s while 64k in 50us is 1.3GB/s.

You can overcome this issue through parallelism by having enough transactions in flight that across all the die & packages in an SSD you can get to the bandwidth limit by using a lot of small transactions.

The problem is that filesystem operations rarely queue up future blocks in a file read which means for "normal" operations we're in low queue depth mode which means IO latency dominates the bandwidth equation.

All this means that optimizing file layout to be sequentially laid out blocks in an SSD will improve performance at the expense of the incurred write amplification.


A number of folks have indicated that this isn't recommended by the industry but that's not entirely true. If you look at flash optimized applications they all share a primary characteristic. They will write large files and never modify. Modifications are managed by in memory data structures and when enough modifications occur the large files are read to memory, modified, then written back to disk and the old version is deleted and trimmed. This behavior prevents fragmentation as small blocks will not be modified in a larger file and it reduced write amplification on the drive by reducing garbage collection -- the application will only ever write big chunks at one time which won't need to be split up.

So while advice to consumers is to avoid defragging the big players (Meta / AWS / Google / MS / etc) in their data center applications have processes to ensure they don't fragment their data.


TL;DR: Defragging will improve performance at the cost of endurance. You probably didn't need that endurance anyway.
Thx for that post, so you can answer my question then, 7 years ago on my ssd i was told to make a 20% over provision partition on my ssd, but alot of people say this is not needed these days, so i have just bought a M.2 NVMe Gen4 drive, do i need to allocate a over provision partition ? thx
 
Joined
Feb 20, 2020
Messages
9,340 (5.35/day)
Location
Louisiana
System Name Ghetto Rigs z490|x99|Acer 17 Nitro 7840hs/ 5600c40-2x16/ 4060/ 1tb acer stock m.2/ 4tb sn850x
Processor 10900k w/Optimus Foundation | 5930k w/Black Noctua D15
Motherboard z490 Maximus XII Apex | x99 Sabertooth
Cooling oCool D5 res-combo/280 GTX/ Optimus Foundation/ gpu water block | Blk D15
Memory Trident-Z Royal 4000c16 2x16gb | Trident-Z 3200c14 4x8gb
Video Card(s) Titan Xp-water | evga 980ti gaming-w/ air
Storage 970evo+500gb & sn850x 4tb | 860 pro 256gb | Acer m.2 1tb/ sn850x 4tb| Many2.5" sata's ssd 3.5hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 | Cherry Entertainment center on Test bench
Audio Device(s) Built in Realtek x2 with 2-Insignia 2.0 sound bars & 1-LG sound bar
Power Supply EVGA 1000P2 with APC AX1500 | 850P2 with CyberPower-GX1325U
Mouse Redragon 901 Perdition x3
Keyboard G710+x3
Software Win-7 pro x3 and win-10 & 11pro x3
Benchmark Scores Are in the benchmark section
Thx for that post, so you can answer my question then, 7 years ago on my ssd i was told to make a 20% over provision partition on my ssd, but alot of people say this is not needed these days, so i have just bought a M.2 NVMe Gen4 drive, do i need to allocate a over provision partition ? thx
Hi,
Yes
No
Maybe so hehe
Just having unallocated space qualities.

It's pretty much what samsung magician does if a user activates over provisioning lol
 
Joined
Sep 29, 2015
Messages
126 (0.04/day)
Hi,
Yes
No
Maybe so hehe
Just having unallocated space qualities.

It's pretty much what samsung magician does if a user activates over provisioning lol
So, if i don't fill the drive up, example my 2TB, if i always leave like 400GB of free space, thats the same as over provisioning ? western digital software does not even have a option to do over provisioning like my old magician software had, thats why i am asking really, thx for reply.
 
Joined
Feb 20, 2020
Messages
9,340 (5.35/day)
Location
Louisiana
System Name Ghetto Rigs z490|x99|Acer 17 Nitro 7840hs/ 5600c40-2x16/ 4060/ 1tb acer stock m.2/ 4tb sn850x
Processor 10900k w/Optimus Foundation | 5930k w/Black Noctua D15
Motherboard z490 Maximus XII Apex | x99 Sabertooth
Cooling oCool D5 res-combo/280 GTX/ Optimus Foundation/ gpu water block | Blk D15
Memory Trident-Z Royal 4000c16 2x16gb | Trident-Z 3200c14 4x8gb
Video Card(s) Titan Xp-water | evga 980ti gaming-w/ air
Storage 970evo+500gb & sn850x 4tb | 860 pro 256gb | Acer m.2 1tb/ sn850x 4tb| Many2.5" sata's ssd 3.5hdd's
Display(s) 1-AOC G2460PG 24"G-Sync 144Hz/ 2nd 1-ASUS VG248QE 24"/ 3rd LG 43" series
Case D450 | Cherry Entertainment center on Test bench
Audio Device(s) Built in Realtek x2 with 2-Insignia 2.0 sound bars & 1-LG sound bar
Power Supply EVGA 1000P2 with APC AX1500 | 850P2 with CyberPower-GX1325U
Mouse Redragon 901 Perdition x3
Keyboard G710+x3
Software Win-7 pro x3 and win-10 & 11pro x3
Benchmark Scores Are in the benchmark section
So, if i don't fill the drive up, example my 2TB, if i always leave like 400GB of free space, thats the same as over provisioning ? western digital software does not even have a option to do over provisioning like my old magician software had, thats why i am asking really, thx for reply.
Hi,
I only leave 200gb unallocated on a 4tb WD sn850x
Free space theirs a ton but that is free space for user files and os expansion unallocated is space for the device firmware to operate with.
 

AsRock

TPU addict
Joined
Jun 23, 2007
Messages
19,088 (3.00/day)
Location
UK\USA
I love the quotes you've made, despite the fact i've proven them wrong here already.
Yes, SSDs fragment. Yes it slows things down. That's been proven here already and it's not disputable.


SSD's should not have a classic "full defrag" completed on them, and it seems you don't know what that means.

A full defrag is where every single file was defragmented and moved to the start of the disk for higher speeds. THAT is what SSD's do not benefit from, wasting writes.
"Quick" Defrags of just the worst files? It's already being done on your SSD automatically, this has been covered in the thread. This is just manual control over it.

What be nice is to be able to know what cells are taken up and have to ability to move data to other cells were no data as been. Like for a example a gaming drive that games just get installed and stay there for months if not longer.

As how can it be wear leveling if it only does the un-used space it's just wearing out what ever available space there is.
 
Joined
Apr 15, 2016
Messages
1,707 (0.54/day)
System Name The Blind Grim Reaper
Processor Xeon X5675 Westmere-EP B1 SLBYL 4.20ghz @ 1.256v
Motherboard Asus P6X58D-E
Cooling Noctua CP12 SE14, Redux Noctua 1500rpm fan Arctic F14 x3 for intake and exhaust
Memory Corsair XMS3 CMX4GX3M2A1600C9 x6
Video Card(s) EVGA GTX 1060 6GB SC Single Fan Model
Storage Crucial mx300 750gb main system + 1TB mx500 for games and music
Display(s) 22 inch samsung curved
Case NZXT Phantom 530 black
Audio Device(s) Nvidia HDMI through HDMI adaptor for output sound for turtlebeach x12 headset
Power Supply Antec HCG 850 watt
Mouse no brand
Keyboard normal usb keyboard
Software Windows 10 22H2 v1 (main is) and Windows 11 22H2 v2 on WD 250gb 7200rpm (testing purposes os)
Benchmark Scores Cinebench R20 = 2046cb
What be nice is to be able to know what cells are taken up and have to ability to move data to other cells were no data as been. Like for a example a gaming drive that games just get installed and stay there for months if not longer.

As how can it be wear leveling if it only does the un-used space it's just wearing out what ever available space there is.
There is a software I use called TreeWiz it free to use that does show details on per blocks
It analyse what data uses up spaces and other things as it handy to use
You could use hdsentinel for checking health as for additional functionality it would require a licence but a trial version would be efficient enough just for checking
 
Last edited:
Joined
Sep 29, 2015
Messages
126 (0.04/day)
Hi,
I only leave 200gb unallocated on a 4tb WD sn850x
Free space theirs a ton but that is free space for user files and os expansion unallocated is space for the device firmware to operate with.
My WD software don't allow me to over provision/unallocated, so did you do it in windows Control Panel\All Control Panel Items\Administrative Tools\ Computer Management\Storage\Disk Management ?
 
Top