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

Windows keeps defragging one of my SSDs

Joined
Feb 1, 2019
Messages
2,576 (1.35/day)
Location
UK, Leicester
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) 3080 RTX FE 10G
Storage 1TB 980 PRO (OS, games), 2TB SN850X (games), 2TB DC P4600 (work), 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Asus Xonar D2X
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
I have read it included the paragraph you quoted, the process has finished now and its stopped auto defragging, so what I can observe its doing what Microsoft have said should happen which is a defrag every month on SSDs which have shadowcopy enabled.
 
Joined
Jul 25, 2006
Messages
12,137 (1.87/day)
Location
Nebraska, USA
System Name Brightworks Systems BWS-6 E-IV
Processor Intel Core i5-6600 @ 3.9GHz
Motherboard Gigabyte GA-Z170-HD3 Rev 1.0
Cooling Quality case, 2 x Fractal Design 140mm fans, stock CPU HSF
Memory 32GB (4 x 8GB) DDR4 3000 Corsair Vengeance
Video Card(s) EVGA GEForce GTX 1050Ti 4Gb GDDR5
Storage Samsung 850 Pro 256GB SSD, Samsung 860 Evo 500GB SSD
Display(s) Samsung S24E650BW LED x 2
Case Fractal Design Define R4
Power Supply EVGA Supernova 550W G2 Gold
Mouse Logitech M190
Keyboard Microsoft Wireless Comfort 5050
Software W10 Pro 64-bit
which is a defrag every month on SSDs which have shadowcopy enabled.
"IF" needed.

And not the same defrag as performed on a hard drive which essentially touches the whole disk.

I think at this point, set your calendar and see what happens in 30 days.
 
D

Deleted member 57642

Guest
Shortly after installing Windows - i always disable Scheduled Optimizations. I even disable the service SysMain, Indexing, FastBoot, etc. Since i moved to SSD for main tasks - i find most of this old-school optimizations redundant. I still defragment the HDD and trim the SSD once a week (or longer) - Manually - but not Automatic. I don't like to take a brake - and when i come back to feel like the system is running sluggish all of a sudden - cause of some of this features running in the background (except for the AV - since i never noticed any negative impact or slight slowdown - on a SSD).

Your Windows seems bugged too. As others mentioned above - defrag option shouldn't be available for an SSD. Only Trim.
 

Mussels

Freshwater Moderator
Staff member
Joined
Oct 6, 2004
Messages
58,413 (8.19/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.
Sounds like that disk was formatted or cloned from an existing one, and while windows in the task manager is aware its an SSD, the file system internally must be marked as a mechanical drive somehow



Empty the disk out, use diskpart to clean it and re-format it as GPT/NTFS, copy the files back and see how it behaves

Being an F: drive it shouldnt exactly have bootable content on it, such as bootloaders or anything - but if the drive was cloned or repurposed it's entirely possible they exist, even invisibly
 
Joined
Feb 1, 2019
Messages
2,576 (1.35/day)
Location
UK, Leicester
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) 3080 RTX FE 10G
Storage 1TB 980 PRO (OS, games), 2TB SN850X (games), 2TB DC P4600 (work), 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Asus Xonar D2X
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
Thanks for the comment, I can confirm it was not cloned, it was previously my OS SSD before I got the 980 Pro, and when it went back in it was reformatted (and repartitioned) using the built in windows disk management tool, so the existing boot partitions no longer exist. Its a single NTFS partition with around 10% of unpartitioned space afterwards.

The data from old mechanical F: drive was backed up via file and folders in Macrium (not image), and then restored via files and folder in Macrium. This was done deliberately instead of image/clone to ensure it was a fresh start on the partition.

Did you have a look at https://www.hanselman.com/blog/the-real-and-complete-story-does-windows-defragment-your-ssd ?
 
Last edited:

eidairaman1

The Exiled Airman
Joined
Jul 2, 2007
Messages
40,435 (6.59/day)
Location
Republic of Texas (True Patriot)
System Name PCGOD
Processor AMD FX 8350@ 5.0GHz
Motherboard Asus TUF 990FX Sabertooth R2 2901 Bios
Cooling Scythe Ashura, 2×BitFenix 230mm Spectre Pro LED (Blue,Green), 2x BitFenix 140mm Spectre Pro LED
Memory 16 GB Gskill Ripjaws X 2133 (2400 OC, 10-10-12-20-20, 1T, 1.65V)
Video Card(s) AMD Radeon 290 Sapphire Vapor-X
Storage Samsung 840 Pro 256GB, WD Velociraptor 1TB
Display(s) NEC Multisync LCD 1700V (Display Port Adapter)
Case AeroCool Xpredator Evil Blue Edition
Audio Device(s) Creative Labs Sound Blaster ZxR
Power Supply Seasonic 1250 XM2 Series (XP3)
Mouse Roccat Kone XTD
Keyboard Roccat Ryos MK Pro
Software Windows 7 Pro 64
Joined
Aug 14, 2013
Messages
2,373 (0.61/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
Thanks for the comment, I can confirm it was not cloned, it was previously my OS SSD before I got the 980 Pro, and when it went back in it was reformatted (and repartitioned) using the built in windows disk management tool, so the existing boot partitions no longer exist. Its a single NTFS partition with around 10% of unpartitioned space afterwards.

The data from old mechanical F: drive was backed up via file and folders in Macrium (not image), and then restored via files and folder in Macrium. This was done deliberately instead of image/clone to ensure it was a fresh start on the partition.

Did you have a look at https://www.hanselman.com/blog/the-real-and-complete-story-does-windows-defragment-your-ssd ?
There’s a long thread over here about what’s actually happening to your SSD

 

Mussels

Freshwater Moderator
Staff member
Joined
Oct 6, 2004
Messages
58,413 (8.19/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.
using the built in windows disk management tool, so the existing boot partitions no longer exist.
Disk management should cover it all, but i'd still check if the disk is GPT or MBR

Generally what happens when a file is being defragged vs the entire drive, is that one file is read and written again - and the previous copy is deleted and marked as free space. Shadow copies keep that second copy as a second tier of "in use" for the ability to be un-deleted

So while reading "SSD defrag" might be worrying if its the case of writing a single extra file? It's nothing at all.

Those links specifically cover exceptions where they need to be defragged since they need contiguous space for the snapshots to work properly, but that;s unlikely to even double the write load of what's being written let alone amplify them even further


This is my 1TB drive in Defraggler
1670998700530.png

If the snapshots needed more space they use up that solid white space near the bottom, then move whatevers below (especially already fragmented files) up into the free space higher above

That's not the same as running a full defrag like defragglers free space defrag or ultimate defrags alphabetical system where every single file gets moved, and possibly more than once
File defrags and disk defrags are very veeeeeery different in terms of writes, and windows tools only do file defrags - "quick" defrags


The reason this is done is to REDUCE writes. To prevent one large file needing to be written to 10 half full NAND cells instead of to 5 empty ones - Not to add more or wear the drive out.

Deletes don't use a write - they simply mark the space as empty, when they're just removing it's location from the file table.

Gah as a great example, this bastard of a file is spread over 16,000 fragments on my C: drive
Great job, Ryzen master!
It's gunna take a lot less writes to do one contiguous file, vs 16,000 fragments to NAND with existing files in them
1670999344809.png





One of my games files (~10GB) had 5,000 fragments
Zero concern from me to defrag that one file to speed it's load times up
 
Last edited:
Joined
Feb 1, 2019
Messages
2,576 (1.35/day)
Location
UK, Leicester
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) 3080 RTX FE 10G
Storage 1TB 980 PRO (OS, games), 2TB SN850X (games), 2TB DC P4600 (work), 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Asus Xonar D2X
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
It is GPT.
 
Joined
Feb 1, 2019
Messages
2,576 (1.35/day)
Location
UK, Leicester
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) 3080 RTX FE 10G
Storage 1TB 980 PRO (OS, games), 2TB SN850X (games), 2TB DC P4600 (work), 2x 3TB WD Red, 2x 4TB WD Red
Display(s) LG 27GL850
Case Fractal Define R4
Audio Device(s) Asus Xonar D2X
Power Supply Antec HCG 750 Gold
Software Windows 10 21H2 LTSC
It did another so those who are curious how often it would be done, it was today, also on the gaming partition (that one completed almost instantly though as its done practically no writes for months).

So about a 4 month gap.
 
Top