How do I address Windows' file system fragmentation on SSDs?


Back when I was using analog drives, I regularly defragged my drives, kept them optimized, and consolidated free space. Now that I'm using solid state drives, I can't do that anymore, so there's a problem: Windows file systems still fragment, and defragging SSDs damages them. So, what can Windows users under these circumstances do to combat fragmentation safely?
This is all you should need for your Crucial M.2 drive:

I have the same for my Samsung M.2 and one for the Micron M.2 drive in this notebook.
 

My Computers

System One System Two

  • OS
    windows 11 22631.5039
    Computer type
    Laptop
    Manufacturer/Model
    MSI Raider GE76
    CPU
    Core i9 12th gen 12900HK 2.9 MHz (overcloked: 3890.48)
    Motherboard
    MSI
    Memory
    32 Gigs DDR5-4800
    Graphics Card(s)
    nVidia RTX 3070 Ti / 8 Gigs DDR6
    Sound Card
    DYNAUDIO - Steelsries Arena 7- Sound Effects by Nahimic 3
    Monitor(s) Displays
    17.3" 1920 x 1080 360 Hz 3 ms, IPS / Connected to MSI 32 inch curved @ 165 Hz
    Screen Resolution
    1920 x 1080 / Both
    Hard Drives
    Samsung 990 Pro 2TB (OS) - Solidigm P41 2TB (Storage)
    PSU
    280 watts
    Case
    MSI GE series
    Cooling
    internal
    Keyboard
    Steelseries
    Mouse
    G903 Lightspeed
    Internet Speed
    1000 Mbps
    Browser
    Firefox / Opera GX- Do not like Edge
    Antivirus
    Malwarebytes'
    Other Info
    just ask.
  • Operating System
    Windows 10 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI GT73 7RE VR Titan
    CPU
    Intel Core i7 7820HK 2.9 Ghz
    Motherboard
    MSI
    Memory
    16 Gigs DDR4 2400 Mhz
    Graphics card(s)
    nVidia 1070 8GB RAM
    Sound Card
    DYNAUDIO / Nahimic 2
    Monitor(s) Displays
    IPS / 120HZ
    Screen Resolution
    1920x1080P
    Hard Drives
    Samsung NVME EVO 970 1TB / Samsung SSD (SATA) 1TB
    PSU
    240 watts
    Case
    MSI
    Cooling
    Internal
    Mouse
    Logitech G903 Lightspeed
    Keyboard
    Steelseries
    Internet Speed
    1 Gb/s
    Browser
    Firefox / Vivaldi
    Antivirus
    MalwareBytes'
    Other Info
    none.

 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
All the optimization for an SSD does is to send TRIM "hints" to the SSD. The OS will tell the SSD to perform a TRIM when blocks are deleted so an SSD should automatically perform a TRIM operation in the background. However, if power is lost before the SSD completes TRIM operations, it may not get all blocks trimmed. As a result, when Windows performs the regularly scheduled optimization, it simply sends TRIM "hints" telling the SSD "these are all the unoccupied blocks" and the drive will then check to see what blocks are not already TRIMmed.

I have 2 external AData SSDs. One is 512 GB, the other is 1 TB. The 512 GB allows the Explorer optimization while the 1 TB does not. If I plug in the 1 TB and/or wait after I save a backup image to it, it keeps going for about 30 seconds. As I noted originally I assumed this was auto Trim done by the drive. In any case the freeware has some other eye candy such as drive temp and other doodads. Seems like they should know how to trim their own drives at AData. I have had nothing but good luck with them. But I do make a point of staying away from USB and similar that has the "sliding guts" design. Why have moving parts in a solid state device?

I haven't tried the freeware on my 256 GB USB 3.0 yet.
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
Odd that only one of your external drives seems to allow optimization. Here is something that you can try:

Open a command prompt as Administrator and then run the command "defrag x: /retrim", replace the x: with the correct drive letter.

Below is an example of me doing this on two drives. The first, drive D:, is an NVMe SSD so it does support TRIM. The second drive, E:, is a rotating platter drive so it won't support TRIM. I would be interested in seeing if both drives support TRIM. Note that some external 2.5 inch drive enclosures do NOT support TRIM. So, if you find that one does and one does not, you might try swapping the disks and see if the problem remains with the same enclosure.

If that were the case, it would certainly explain performance issues.

Image1.jpg
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self-built
    CPU
    Intel i7 11700K
    Motherboard
    ASUS Prime Z590-A MB
    Memory
    64GB (Waiting for warranty replacement of another 64GB for 128GB total)
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe SSD
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    3 x 512GB 2.5" SSD
    1 x 4TB 2.5" SSD
    5 x 8TB Seagate Barracuda HDD
    PSU
    Corsair HX850i
    Case
    Corsair iCUE RGB 5000X mid tower case
    Cooling
    Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Home Computer Specifications, Configuration, and Usage Notes General Specifications ASUS Prime Z590-A motherboard, serial number M1M0KC222467ARP Intel Core i7-11700K CPU (11th Gen Rocket Lake / LGA 1200 Socket) 128GB Crucial Ballistix RGB DDR4 3200 MHz DRAM (4 x 32GB) Corsair iCUE RGB 5000X mid tower case Noctua NH-D15 chromax.black CPU cooler Noctua NF-S12A chromax.black.swap case fans (Qty. 7) & Corsair LL-120 RGB Fans (Qty. 3)
    Keyboard
    Corsair K70 Max RGB Magnetic Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    The five 8TB drives and three 512GB SSDs are part of a DrivePool using StableBit DrivePool software. The three SSDs are devoted purely to caching for the 8TB drives. All of the important data is stored in triplicate so that I can withstand simultaneous failure of 2 disks.

    Networking: 2.5Gbps Ethernet and WiFi 6e
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
All the optimization for an SSD does is to send TRIM "hints" to the SSD. The OS will tell the SSD to perform a TRIM when blocks are deleted so an SSD should automatically perform a TRIM operation in the background. However, if power is lost before the SSD completes TRIM operations, it may not get all blocks trimmed. As a result, when Windows performs the regularly scheduled optimization, it simply sends TRIM "hints" telling the SSD "these are all the unoccupied blocks" and the drive will then check to see what blocks are not already TRIMmed.
It says what it does here:
When run from the scheduled task, defrag uses the below policy guidelines for SSDs:
  • Traditional optimization processes. Includes traditional defragmentation, for example moving files to make them reasonably contiguous and retrim. This is done once per month.


This is a mechanical disk:

ST2000DM008.jpg
 
Last edited:

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
I find it funny, not funny Ha Ha, but funny weird, that with the five SSD's that I've purchased directly from Crucial, they have never offered me any kind of maintenance software. So I just downloaded the software offered above.

It will be interesting to see if it can make any difference in the operation of the 500GB Crucial SSD that I'm now using.
Thanks for that tip!
TM :cool:

PS: Years ago, with the old Spinners, I too did a lot of HD Cleanups followed by a Defrag, and a backup. That was just a part of my normal weekly HD maintenance routine. I loved watching Defrag move the little blocks of data around, like in a Block puzzle. It was back then, that I wrote my first Cleanup batch file. Not nearly as thorough as the one I use today.
I found that to get a More Perfect Defrag, I would do a Ghost backup, followed by a Ghost Restore, where the C: drive was re-written, file by file, with NO spaces between files and NO Fragmentation. That worked beautifully!
I wonder, if the result would be the same with an SSD? Something to ponder!
 

My Computer

Hello. :alien:

You can use the usual optimize feature below built-in to Windows. It'll automatically TRIM SSDs.

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
I find it funny, not funny Ha Ha, but funny weird, that with the five SSD's that I've purchased directly from Crucial, they have never offered me any kind of maintenance software. So I just downloaded the software offered above.

It will be interesting to see if it can make any difference in the operation of the 500GB Crucial SSD that I'm now using.
Thanks for that tip!
TM :cool:

PS: Years ago, with the old Spinners, I too did a lot of HD Cleanups followed by a Defrag, and a backup. That was just a part of my normal weekly HD maintenance routine. I loved watching Defrag move the little blocks of data around, like in a Block puzzle. It was back then, that I wrote my first Cleanup batch file. Not nearly as thorough as the one I use today.
I found that to get a More Perfect Defrag, I would do a Ghost backup, followed by a Ghost Restore, where the C: drive was re-written, file by file, with NO spaces between files and NO Fragmentation. That worked beautifully!
I wonder, if the result would be the same with an SSD? Something to ponder!
This is the software they offer,

 

My Computers

System One System Two

  • OS
    Win 11 Home & Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook
    CPU
    AMD Ryzen™ 7 7730U
    Motherboard
    M1605YA
    Memory
    15.0GB Dual-Channel DDR4 @ 1596MHz (22-22-22-52)
    Graphics Card(s)
    512MB ATI AMD Radeon Graphics (ASUStek Computer Inc)
    Monitor(s) Displays
    Generic PnP Monitor (1920x1200@60Hz) - P1 PLUS (1920x1080@59Hz)
    Screen Resolution
    1920 X 1200
    Hard Drives
    953GB Western Digital WD
    PSU
    45 Watts
    Mouse
    Lenovo Bluetooth.
    Internet Speed
    500 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    500 Mbps
    Browser
    Edge
    Antivirus
    Defender
The Crucial software and the Micron software are one and the same.
The Solodigm software is a bit more useful that the other two.
Solodigm was born from Intel selling their NAND side of their memory
operation to SK Hynix but, not the Intel Optane operation.
Samsung software is also very useful and I use it often on my GT73VR.

But, what differentiates all these drives is the price compared to their
performance. Solodigm right now are less expensive but, their performance
is compatible to the more popular M.2s.

This is just to show the Solodigm's software:

 
Last edited:

My Computers

System One System Two

  • OS
    windows 11 22631.5039
    Computer type
    Laptop
    Manufacturer/Model
    MSI Raider GE76
    CPU
    Core i9 12th gen 12900HK 2.9 MHz (overcloked: 3890.48)
    Motherboard
    MSI
    Memory
    32 Gigs DDR5-4800
    Graphics Card(s)
    nVidia RTX 3070 Ti / 8 Gigs DDR6
    Sound Card
    DYNAUDIO - Steelsries Arena 7- Sound Effects by Nahimic 3
    Monitor(s) Displays
    17.3" 1920 x 1080 360 Hz 3 ms, IPS / Connected to MSI 32 inch curved @ 165 Hz
    Screen Resolution
    1920 x 1080 / Both
    Hard Drives
    Samsung 990 Pro 2TB (OS) - Solidigm P41 2TB (Storage)
    PSU
    280 watts
    Case
    MSI GE series
    Cooling
    internal
    Keyboard
    Steelseries
    Mouse
    G903 Lightspeed
    Internet Speed
    1000 Mbps
    Browser
    Firefox / Opera GX- Do not like Edge
    Antivirus
    Malwarebytes'
    Other Info
    just ask.
  • Operating System
    Windows 10 22H2
    Computer type
    Laptop
    Manufacturer/Model
    MSI GT73 7RE VR Titan
    CPU
    Intel Core i7 7820HK 2.9 Ghz
    Motherboard
    MSI
    Memory
    16 Gigs DDR4 2400 Mhz
    Graphics card(s)
    nVidia 1070 8GB RAM
    Sound Card
    DYNAUDIO / Nahimic 2
    Monitor(s) Displays
    IPS / 120HZ
    Screen Resolution
    1920x1080P
    Hard Drives
    Samsung NVME EVO 970 1TB / Samsung SSD (SATA) 1TB
    PSU
    240 watts
    Case
    MSI
    Cooling
    Internal
    Mouse
    Logitech G903 Lightspeed
    Keyboard
    Steelseries
    Internet Speed
    1 Gb/s
    Browser
    Firefox / Vivaldi
    Antivirus
    MalwareBytes'
    Other Info
    none.
Odd that only one of your external drives seems to allow optimization. Here is something that you can try:

It allows it with the AData SSD app no problem. It just doesn't allow from the File Explorer.
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
....there's a problem: Windows file systems still fragment, and defragging SSDs damages them. So, what can Windows users under these circumstances do to combat fragmentation safely?
Have you actually checked the size of this supposed 'problem'? I have on all my machines that run on an SSD. This machine has been running Windows 11 since its release in 2021. It has had heavy use and has installed all the Cumulative and Feature Updates MS have issued for Windows 11.

Total fragmented space = 4%
You do not need to defragment this volume.


That one had the highest fragmentation I found, the others were 2% or 3% fragmented.

1689884376635.png

Bottom line:
Q: "How do I address Windows' file system fragmentation on SSDs?" A: Ignore it, there's no problem to address.
 

My Computers

System One System Two

  • OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD
    Internet Speed
    50 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October 2021 it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update, and 24H2 on 3rd October 2024 through Windows Update by setting the Target Release Version for 24H2.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro.

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus Insider Beta, Dev, and Canary builds (and a few others) as a native boot .vhdx.

    My SYSTEM SIX is a Dell Latitude 5550, Core Ultra 7 165H, 64GB RAM, 1TB NVMe SSD, supported device, Windows 11 Pro 24H2, Hyper-V host machine.
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround. In-place upgrade to 22H2 using ISO and a workaround. Feature Update to 23H2 by manually installing the Enablement Package. In-place upgrade to 24H2 using hybrid 23H2/24H2 install media. Also running Insider Beta, Dev, and Canary builds as a native boot .vhdx.

    My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro.

    My SYSTEM FOUR is a 2-in-1 convertible Lenovo Yoga 11e 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device: currently running Win10 Pro, plus Win11 Pro RTM and Insider Dev, Beta, and RP 24H2 as native boot vhdx.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro, plus Insider Beta, Dev, and Canary builds (and a few others) as a native boot .vhdx.

    My SYSTEM SIX is a Dell Latitude 5550, Core Ultra 7 165H, 64GB RAM, 1TB NVMe SSD, supported device, Windows 11 Pro 24H2, Hyper-V host machine.
Let windows handle it. The microsoft link tells you that for SSD it will defrag (move files) and then run retrim once a month. Presumably it analyses first and then decides which one ( or both ) of those needs doing.

The link has been posted at least twice on this thread.

When run from the scheduled task, defrag uses the below policy guidelines for SSDs:

  • Traditional optimization processes. Includes traditional defragmentation, for example moving files to make them reasonably contiguous and retrim. This is done once per month.
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
PS: Years ago, with the old Spinners, I too did a lot of HD Cleanups followed by a Defrag, and a backup. That was just a part of my normal weekly HD maintenance routine. I loved watching Defrag move the little blocks of data around, like in a Block puzzle. It was back then, that I wrote my first Cleanup batch file. Not nearly as thorough as the one I use today.
I found that to get a More Perfect Defrag, I would do a Ghost backup, followed by a Ghost Restore, where the C: drive was re-written, file by file, with NO spaces between files and NO Fragmentation. That worked beautifully!
I wonder, if the result would be the same with an SSD? Something to ponder!
I wouldn't do that with an SSD because it does a lot of writing to it. Don't forget the more you write to the SSD the more wear you put on it. You risk shortening its life. It is better to let TRIM handle this.

BTW, I also used to be fascinated by the little blocks moving during Defrag. I lost interest a long time ago.:sleep:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Crucial DDR5-4800 (2400MHz) 32GB (2 x 16GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 990 Evo Plus (2TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    2000Mbps/300Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 5700X3D
    Motherboard
    ASUS ROG Strix B550-F Gaming WiFi II
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung G50D IPS 27"
    Screen Resolution
    1440p/180Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD)
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Scythe Mugen 6
    Mouse
    Logitech M310 (MK540 keyboard/mouse combo)
    Keyboard
    Logitech K520 (MK540 keyboard/mouse combo)
    Internet Speed
    2000 Mbps down / 300 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Easystore 20TB USB 3.0 external hard drive used with Acronis True Image 2025 backup software || HP OfficeJet Pro 6975 Printer/Scanner
This is a mechanical disk:

View attachment 65188
Yea, TRIM/UNMAP is supported for HDDs with SMR (Shingled Magnetic Recording) for dataset management and to improve SMR performance over time. One of the shingled write benefits is that all physical sectors are written sequentially in a direction radially and are only rewritten after a wrap-around. Rewriting a previously written LBA (Logical Block Addressing) will cause the previous write to be marked invalid and the LBA will be written to the next sequential physical sector. The TRIM/UNMAP enables the OS to inform the drive which blocks are no longer considered to be in use and can be reclaimed internally by the HDD to ensure that later write operations perform at full speed. There also exists a white paper from Western Digital about this:
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
The "uni" that I attended was not of inferior quality...it's just that SSDs had not yet been invented...and neither had the internet.
Actually , the internet has been around since the start of the Cold War , founded by then President Eisenhower , it was known as ARPANET , it was just a military tool.

"It was originally created by the U.S. government during the Cold War. In 1958, President Eisenhower founded the Advanced Research Projects Agency (ARPA) to give a boost to the country’s military technology, according to the Journal of Cyber Policy. Scientists and engineers developed a network of linked computers called ARPANET.
ARPANET's original aim was to link two computers in different places, enabling them to share data. That dream became a reality in 1969, according to Historian Jeremy Norman. In the years that followed, the team linked dozens of computers together and, by the end of the 1980s, the network contained more than 30,000 machines, according to the U.K.'s Science and Media Museum."
 

My Computer

System One

  • OS
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    self built
    CPU
    Intel I9-12900k Adler Lake
    Motherboard
    Gigabyte Z790 Gaming Plus AX
    Memory
    Corsair Vengeance 64GB DDR5
    Graphics Card(s)
    Realtek
    Monitor(s) Displays
    Samsung Curved 23"
    Screen Resolution
    1920x1080
    Hard Drives
    9 Drives total: Two 1TB M.2 SSD's, Three internal Seagate Barracuda 1TB HDD's , 4 Western Digital External removable drives , 3 @ 1TB each and 1 8TB
    Cooling
    ID Cooling FX 240 Pro
    Browser
    Firefox
    Antivirus
    Bitdefender
Yea, TRIM/UNMAP is supported for HDDs with SMR (Shingled Magnetic Recording) for dataset management and to improve SMR performance over time. One of the shingled write benefits is that all physical sectors are written sequentially in a direction radially and are only rewritten after a wrap-around. Rewriting a previously written LBA (Logical Block Addressing) will cause the previous write to be marked invalid and the LBA will be written to the next sequential physical sector. The TRIM/UNMAP enables the OS to inform the drive which blocks are no longer considered to be in use and can be reclaimed internally by the HDD to ensure that later write operations perform at full speed. There also exists a white paper from Western Digital about this:
Yes, I know.

One of the posters erroneously stated mechanical disks dont have trim.

I am not keen on these smr disks, they can be very slow.
 

My Computers

System One System Two

  • OS
    Win7,Win11
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7,win11
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
Actually , the internet has been around since the start of the Cold War , founded by then President Eisenhower , it was known as ARPANET , it was just a military tool.

"It was originally created by the U.S. government during the Cold War. In 1958, President Eisenhower founded the Advanced Research Projects Agency (ARPA) to give a boost to the country’s military technology, according to the Journal of Cyber Policy. Scientists and engineers developed a network of linked computers called ARPANET.
ARPANET's original aim was to link two computers in different places, enabling them to share data. That dream became a reality in 1969, according to Historian Jeremy Norman. In the years that followed, the team linked dozens of computers together and, by the end of the 1980s, the network contained more than 30,000 machines, according to the U.K.'s Science and Media Museum."
You are mixing terms. The fact that the Internet was based on the ARPNET doesn't mean that they are the same thing.

Your analogy is like me saying I had a home computer in 1969. Well actually it was an Abacus made out of plastic. Little did I know that only 10 years later I had a real home computer a TRS-80 Model I.

The ARPNET was a government network only. The Internet is based upon that an other advances in technology since the development of ARPANET. The Internet is the commercialization of that, that took place around 1995. Also, It took the development of another technology the World Wide Web before the Internet became popular and usable by the general public.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Crucial DDR5-4800 (2400MHz) 32GB (2 x 16GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 990 Evo Plus (2TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    2000Mbps/300Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 5700X3D
    Motherboard
    ASUS ROG Strix B550-F Gaming WiFi II
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung G50D IPS 27"
    Screen Resolution
    1440p/180Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD)
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Scythe Mugen 6
    Mouse
    Logitech M310 (MK540 keyboard/mouse combo)
    Keyboard
    Logitech K520 (MK540 keyboard/mouse combo)
    Internet Speed
    2000 Mbps down / 300 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Easystore 20TB USB 3.0 external hard drive used with Acronis True Image 2025 backup software || HP OfficeJet Pro 6975 Printer/Scanner
Let windows handle it. The microsoft link tells you that for SSD it will defrag (move files) and then run retrim once a month. Presumably it analyses first and then decides which one ( or both ) of those needs doing.

The link has been posted at least twice on this thread.
It always performs a retrim, as it has no way of telling whether or not trim commands were missed. The reason why trim commands can end up getting discarded has been explained in the 1st link I posted in this thread, it's because the queue size is limited, and, during those times when the storage device is busy doing what it's supposed to do under load, processing ALL these trim commands would otherwise slow performance as a result of read/write operations having to wait on them. So, for SSDs, once per week by default, the Automatic maintenance task in Task Scheduler just sends the trim command a 2nd time (hence it's called retrim) for every sector that was deallocated by the filesystem of the storage volume.

As for the analyze part of this same Automatic maintenance task, this particular part is skipped unless the volume's optimization "last run time" on the SSD exceeded 30 days (this is determined by the volume optimizer itself, not the scheduled task in Task Scheduler that runs it). Only after the analyze finished successfully will it determine (based on the analysis result) whether to proceed with a traditional defrag for the volume in question on the SSD or not. For the average user usually this means that it will not, excepting only every once in a very, very long while (i.e. only when absolutely necessary). Whenever it does decide to defrag the SSD, it will only defrag it to some certain, moderate extent. A near-optimal tradeoff between performance and endurance of the SSD is achieved in this manner. For the average user, this strategy is very adequate. Whereas more complex types of heavy workload (datacenters, servers, heavy workstations and the like) typically can benefit greatly from using I/O optimization software (DymaxIO).

This task has its Period element set to P7D, or one week by default and uses the Unified Scheduling Engine (due to having its UseUnifiedSchedulingEngine element set to true). So, it runs weekly by default, which it does under regular Automatic maintenance. If this task fails to complete over and over again for a month (e.g. as a result of it having its StopOnIdleEnd element set to true), then it will be started during emergency Automatic maintenance, i.e. due to it having its Deadline element set to P1M, or one month. See:

ScheduledDefrag.png
 
Last edited:

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
Yes, I know.

One of the posters erroneously stated mechanical disks dont have trim.

I am not keen on these smr disks, they can be very slow.
SMR can still be useful for things like video surveillance when you need to make copies of stream fragments that are only relatively short in comparison to the full-length recording or when the copying of large streams can be possible to avoid altogether by mirroring/duplexing.
 

My Computers

System One System Two

  • OS
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Asus TUF Gaming F16 (2024)
    CPU
    i7 13650HX
    Memory
    16GB DDR5
    Graphics Card(s)
    GeForce RTX 4060 Mobile
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    512GB SSD internal
    37TB external
    PSU
    Li-ion
    Cooling
    2× Arc Flow Fans, 4× exhaust vents, 5× heatpipes
    Keyboard
    Logitech K800
    Mouse
    Logitech G402
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
  • Operating System
    11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Medion S15450
    CPU
    i5 1135G7
    Memory
    16GB DDR4
    Graphics card(s)
    Intel Iris Xe
    Sound Card
    Eastern Electric MiniMax DAC Supreme; Emotiva UMC-200; Astell & Kern AK240
    Monitor(s) Displays
    Sony Bravia XR-55X90J
    Screen Resolution
    3840×2160
    Hard Drives
    2TB SSD internal
    37TB external
    PSU
    Li-ion
    Mouse
    Logitech G402
    Keyboard
    Logitech K800
    Internet Speed
    20Mbit/s up, 250Mbit/s down
    Browser
    FF
List of WD CMR and SMR hard drives (HDD)

My 1st My Book was CMR while its replacement was a SMR drive

Old My Book (CMR)
Ext HDD: WDBBGB0060HBK-NB
Int HDD: WD60EZRZ-00RWYB1

New My Book (SMR)
Ext HDD: WDBBGB0060HBK-NESN
Int HDD: WDC WD60EDAZ-11U78B0

You can run CrystalDiskInfo to show whether a drive is CMR or SMR. SMR drives will have a TRIM feature like shown below.

WD My Book.jpg
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Gaming A15 (2022)
    CPU
    AMD Ryzen 7 6800H with Radeon 680M GPU (486MB RAM)
    Memory
    Crucial DDR5-4800 (2400MHz) 32GB (2 x 16GB)
    Graphics Card(s)
    NVIDIA RTX 3060 Laptop (6GB RAM)
    Sound Card
    n/a
    Monitor(s) Displays
    15.6-inch
    Screen Resolution
    1920x1080 300Hz
    Hard Drives
    2 x Samsung 990 Evo Plus (2TB M.2 NVME SSD)
    PSU
    n/a
    Mouse
    Wireless Mouse M510
    Internet Speed
    2000Mbps/300Mbps
    Browser
    Firefox
    Antivirus
    Malwarebytes
  • Operating System
    Windows 11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom build
    CPU
    AMD Ryzen 7 5700X3D
    Motherboard
    ASUS ROG Strix B550-F Gaming WiFi II
    Memory
    G.SKILL Flare X 32GB (2x16GB) DDR4
    Graphics card(s)
    ASUS ROG-STRIX-RTX3060TI-08G-V2-GAMING (RTX 3060-Ti, 8GB RAM)
    Monitor(s) Displays
    Samsung G50D IPS 27"
    Screen Resolution
    1440p/180Hz
    Hard Drives
    2TB XPG SX8200 Pro (M2. PCIe SSD) || 2TB Intel 660P (M2. PCIe SSD)
    PSU
    Corsair RM750x (750 watts)
    Case
    Cooler Master MasterCase 5
    Cooling
    Scythe Mugen 6
    Mouse
    Logitech M310 (MK540 keyboard/mouse combo)
    Keyboard
    Logitech K520 (MK540 keyboard/mouse combo)
    Internet Speed
    2000 Mbps down / 300 Mbps up
    Browser
    Firefox, Edge, Chrome
    Antivirus
    Malwarebytes (Premium)
    Other Info
    ASUS Blu-ray Burner BW-16D1HT (SATA) || Western Digital Easystore 20TB USB 3.0 external hard drive used with Acronis True Image 2025 backup software || HP OfficeJet Pro 6975 Printer/Scanner
Back
Top Bottom