Which day does Monthly Drive optimisation and defrag happen?


Factor1092

Member
Local time
1:48 PM
Posts
15
OS
Windows 11 Pro
Hi. I use HDDs, NVMEs and a SATA SDD.
How do I find out and set precisely when the month the automatic drive optimisation & defrag will occur in Windows?
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
You can find this under Task scheduler > microsoft > defrag.

You can view the history there as well.

You can configure it under defrag > change settings
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Ryzen 7 5700 X3D
    Motherboard
    MSI MPG B550 GAMING PLUS
    Memory
    64 GB DDR4 3600mhz Gskill Ripjaws V
    Graphics Card(s)
    RTX 4070 Super , 12GB VRAM Asus EVO Overclock
    Monitor(s) Displays
    Gigabyte M27Q (rev. 2.0) 2560 x 1440 @ 170hz HDR
    Hard Drives
    2TB Samsung nvme ssd
    2TB XPG nvme ssd
    PSU
    CORSAIR RMx SHIFT Series™ RM750x 80 PLUS Gold Fully Modular ATX Power Supply
    Case
    CORSAIR 3500X ARGB Mid-Tower ATX PC Case – Black
    Cooling
    ID-COOLING FROSTFLOW X 240 CPU Water Cooler
    Internet Speed
    900mbps DOWN, 100mbps UP
  • Operating System
    Chrome OS
    Computer type
    Laptop
    Manufacturer/Model
    HP Chromebook
    CPU
    Intel Pentium Quad Core
    Memory
    4GB LPDDR4
    Monitor(s) Displays
    14 Inch HD SVA anti glare micro edge display
    Hard Drives
    64 GB emmc
You can find this under Task scheduler > microsoft > defrag.

You can view the history there as well.

You can configure it under defrag > change settings

I found it under Microsoft > Windows > Defrag. It shows a false last run time (30 November 1999 lol).
I ran it manually yesterday, and then I set it to run Monthly. But despite that, there's no Trigger or Next Run time displayed.
Settings doesn't reflect the 3 drives I ticked to include, and displays it to start on demand.
But in Actions> Details for the task, I see 7 Volumes. The argument ends with -e -h -o -$.

History is disabled.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
I found it under Microsoft > Windows > Defrag. It shows a false last run time (30 November 1999 lol).
I ran it manually yesterday, and then I set it to run Monthly. But despite that, there's no Trigger or Next Run time displayed.
Settings doesn't reflect the 3 drives I ticked to include, and displays it to start on demand.
But in Actions> Details for the task, I see 7 Volumes. The argument ends with -e -h -o -$.

History is disabled.
hmm thats odd.....

I will say, if your worried about your drives needing this ran on a constant basis, the best thing to do is not worry about it at all. The drives should be taken care of by windows without you needing to do a thing.

If you have nvme or ssd in your system like you said, using their ssd utility which most manufacturers have will monitor and run trim when needed and "optimize" the drive when needed.

I would not stress or worry over it. If you want it to occur more often automatically, leave your pc on and idle overnight and it should do its maintenance tasks.

Hard drives don't need to be constantly defragged unless its your boot drive. (which I hope it isn't in your case)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Ryzen 7 5700 X3D
    Motherboard
    MSI MPG B550 GAMING PLUS
    Memory
    64 GB DDR4 3600mhz Gskill Ripjaws V
    Graphics Card(s)
    RTX 4070 Super , 12GB VRAM Asus EVO Overclock
    Monitor(s) Displays
    Gigabyte M27Q (rev. 2.0) 2560 x 1440 @ 170hz HDR
    Hard Drives
    2TB Samsung nvme ssd
    2TB XPG nvme ssd
    PSU
    CORSAIR RMx SHIFT Series™ RM750x 80 PLUS Gold Fully Modular ATX Power Supply
    Case
    CORSAIR 3500X ARGB Mid-Tower ATX PC Case – Black
    Cooling
    ID-COOLING FROSTFLOW X 240 CPU Water Cooler
    Internet Speed
    900mbps DOWN, 100mbps UP
  • Operating System
    Chrome OS
    Computer type
    Laptop
    Manufacturer/Model
    HP Chromebook
    CPU
    Intel Pentium Quad Core
    Memory
    4GB LPDDR4
    Monitor(s) Displays
    14 Inch HD SVA anti glare micro edge display
    Hard Drives
    64 GB emmc
Trim is happening when the drive detects a need. You need to undertand the difference in how hdds and ssds work.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Motherboard
    stock Dell
    Memory
    24 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
Trim is happening when the drive detects a need. You need to undertand the difference in how hdds and ssds work.
Windows showed 86% unoptimised for my NVMEs that have been in the machine for 2years, not even on my Samsung NVME and I had Samsung Magician enabled to TRIM all this time.

I opted to setup windows to TRIM SSDs and Defrag HDDs monthly so I wouldn't have to think about this time to time.
And because Samsung Magician didn't even TRIM like it should. It's a nag updating different third party tools for different brands of NVMEs. I want Windows to handle this silently at a specific time and day.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
Try this:

Within File Explorer, right click on any internal drive in your system and select properties.

Image1.jpg

Select the Tools tab and then click on Optimize.

Image2.jpg

Click on Change settings.

Image3.jpg

Select a schedule and then the drives to which this schedule should apply.

NOTE: For testing purposes, I suggest initially setting a daily schedule. This way you won't have to wait long to see if this works. Make sure to give it a day or two to make sure it is working. Once you know it is working, you can modify the schedule.

Image4.jpg
 

Attachments

  • Image3.jpg
    Image3.jpg
    41.8 KB · Views: 1

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
Try this:

Within File Explorer, right click on any internal drive in your system and select properties.

View attachment 100043

Select the Tools tab and then click on Optimize.

View attachment 100044

Click on Change settings.

View attachment 100046

Select a schedule and then the drives to which this schedule should apply.

NOTE: For testing purposes, I suggest initially setting a daily schedule. This way you won't have to wait long to see if this works. Make sure to give it a day or two to make sure it is working. Once you know it is working, you can modify the schedule.

View attachment 100047

Okay, I was trying to avoid monitoring but fine. Thanks
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
Since the discussion has now moved on to the topic of TRIM, let me explain how this works because there is a lot of confusion among some as to how this works.

First, it is important to understand why TRIM exists. On an SSD, when data is deleted, any blocks that are freed up cannot simply be written to. On an SSD any block that has had data written to it previously must first be erased before new data can be rewritten to it. This slows down writes to the SSD. As a result, anytime data is removed from an SSD, the controller on the SSD takes care of erasing those freed blocks in the background so that the blocks are already erased before they are ever needed, speeding up write operations.

Normally, this all happens automatically. However, let's assume that you lose power unexpectedly or something happens to interrupt the erasure of blocks. The SSD may lose track of what blocks need to be erased. So, by performing a TRIM operation of the SSD, Windows informs the SSD of what blocks are unused on the SSD. The SSD looks at these "hints" provided by TRIM and verifys that all the blocks Windows says are empty have been erased. Anything that has not been erased will become erased as a result of the hints provided by TRIM.

Hope that this helps!
 

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
Trimming is like Easter. It occurs on the second Tuesday after a full moon except in September when it's on the Monday.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3915
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD 2TB
    Cooling
    fanless
    Internet Speed
    150 Mbps
    Browser
    Brave
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
    Browser
    Brave
    Antivirus
    Webroot
Okay, I was trying to avoid monitoring but fine. Thanks
I'm not intending that you monitor permanently. Just long enough to make sure it works.
 

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
NOTE: For testing purposes, I suggest initially setting a daily schedule. This way you won't have to wait long to see if this works. Make sure to give it a day or two to make sure it is working. Once you know it is working, you can modify the schedule.

It hasn't updated in 2 days after I set it on a daily schedule like you suggested.
What should I do now?
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
It hasn't updated in 2 days after I set it on a daily schedule like you suggested.
What should I do now?
Yeah, that's a bit of a head scratcher. Is there anything in the event logs that indicate any sort of problem or issue trying to run optimization?
 

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
Yeah, that's a bit of a head scratcher. Is there anything in the event logs that indicate any sort of problem or issue trying to run optimization?
I searched for Defrag in Application Log, but only found the events that I manually initiated over the course of 3 days, but no automatic daily ones.

Also, no defrag/optim tasks are scheduled in task scheduler.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
I searched for Defrag in Application Log, but only found the events that I manually initiated over the course of 3 days, but no automatic daily ones.

Also, no defrag/optim tasks are scheduled in task scheduler.
CORRECTION: I looked deeper into task scheduler library > microsoft > windows. The task ran yesterday.
But in the Drive Defrag Windows Tool GUI, it doesn't reflect that this happened.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    i7 13th
    Motherboard
    ASUS
The SSD looks at these "hints" provided by TRIM and verifys that all the blocks Windows says are empty have been erased. Anything that has not been erased will become erased as a result of the hints provided by TRIM.
This part is still wrong. SSDs are so significantly more complex than HDDs that you'll just have to excuse me for the fact that it took a while before I decided to write my reply. I also tried to keep it short, but failed.

For starters, Windows sends the TRIM command each time when it deletes some data from the filesystem. The filesystem presents data in the form of logical blocks, and, it maps these logical blocks to physical blocks. On a SSD (but not on a HDD), physical blocks are referred to as pages, and, pages are grouped into blocks, but these blocks are not to be confused with the aforementioned physical blocks nor are to be confused with the aforementioned logical blocks. So, in the specific context of how data is stored internally on SSDs, the term "block" has an entirely different meaning.

On SSDs, data is read and written at the page level but must be erased at the block level. This also means that these "hints" that mark certain parts of the data as stale are applied at the page level, not at the block level.

Stale data is the part of the data that no longer is needed by the filesystem to store its data. So, on SSDs, a stale page is a page that is marked such that it is allowed to be erased by a maintenance process known as garbage collection, which runs internally on the SSD, and is controlled by the SSD, whereas a free page is a page that either has never been written or has been erased by garbage collection.

The SSD looks at these "hints" provided by TRIM before it decides what to do with these hints. Keeping track of the hints is a process that causes some additional workload on the SSD. So, during those moments when heavy I/O activity on the SSD is causing slowdowns, the controller on the SSD may actually decide to disregard the hints. It still processes the TRIM commands, but it doesn't necessarily always preserve the hints.

Due to the simple fact that some hints can be lost in this manner, Windows sends the same TRIM commands again, once per week if you leave the optimization at its default setting. In Windows, this re-sending of the hints is what they call a retrim. (The retrim action sends TRIM commands, as there exists no such thing as a retrim command.) Windows runs the optimization as a maintenance task so it is scheduled to run during those moments when the I/O activity on the SSD will hopefully be more relaxed.

If it's still too busy when the retrim happens, the SSD could potentially throw away some of the hints again, but then, at worst the negative impact from this should still turn out to be negligible in the end, for most users anyway, as these hints still keep getting re-sent every week by default on Windows 11. (In the possible event that you don't subscribe to the club of "most users", you could always consider to buy Condusiv DymaxIO...)

The retrim action is not the only action that is included in the optimization, though. The optimization also performs an analysis, followed by a partial defrag of the SSD if the analysis results indicate that a partial defrag will be beneficial to it, but this analysis is skipped during the optimization until after (by default) one month has passed since the last time when it wasn't skipped.

The analysis also takes into account the fact that excessively defragging a SSD shortens its lifespan so, it doesn't defrag the SSD more than what's needed to achieve some certain approximation of "good" tradeoff between longevity and performance. (DymaxIO offers a lot better optimization, BUT... for "most users", due to how they use their computer, this improvement has no noticeable effect, or it barely does, whereas on heavy workstations and servers, this difference can very often be enormous.)

On the particular subject of when the stale pages will actually be freed. The assertion, that the erase will never/unlikely be postponed by the SSD for very lengthy periods of time is totally incorrect. On many occasions it can actually even be delayed indefinitely. The following explanation is just an oversimplification, but it gets the idea across.

The SSD has a threshold. Stale pages aren't freed until the number of free pages drops below this threshold. The SSD also has a critical threshold. I/O operations have a higher priority than freeing stale pages above this critical number so, during those moments when freeing stale pages would cause I/O operations to suffer slowdowns, stale pages aren't freed until the number of free pages drops below this critical threshold.

To reclaim pages with the stale data, the pages with the good data must first be moved to another block so the original block can be erased. This constant shifting of data results in many more program/erase (P/E) cycles than requested by the host system, a situation referred to as write amplification.

Most controllers also incorporate wear leveling into their garbage collection operations to distribute P/E cycles more evenly across the storage blocks to prevent overused blocks from wearing out. So, to improve the wear leveling strategy, and to reduce write amplification, SSDs don't erase all of the stale data almost immediately.

Instead, they tend to wait it out to a very large degree so that they can continue to gather additional statistical details for longer about what would probably be the more efficient route to take to perform the maintenance, and to further increase the likelihood of growing increasingly more efficient. That is, by proactively planning ahead, also by means of predictions, the accuracy of which heavily relies on the thoroughness of statistics that these predictions will be based on.
 

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
CORRECTION: I looked deeper into task scheduler library > microsoft > windows. The task ran yesterday.
But in the Drive Defrag Windows Tool GUI, it doesn't reflect that this happened.
in the defrag tool, does it recognize the drives correctly? Does it label your ssd as an ssd and the hard drives as hard drives?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Ryzen 7 5700 X3D
    Motherboard
    MSI MPG B550 GAMING PLUS
    Memory
    64 GB DDR4 3600mhz Gskill Ripjaws V
    Graphics Card(s)
    RTX 4070 Super , 12GB VRAM Asus EVO Overclock
    Monitor(s) Displays
    Gigabyte M27Q (rev. 2.0) 2560 x 1440 @ 170hz HDR
    Hard Drives
    2TB Samsung nvme ssd
    2TB XPG nvme ssd
    PSU
    CORSAIR RMx SHIFT Series™ RM750x 80 PLUS Gold Fully Modular ATX Power Supply
    Case
    CORSAIR 3500X ARGB Mid-Tower ATX PC Case – Black
    Cooling
    ID-COOLING FROSTFLOW X 240 CPU Water Cooler
    Internet Speed
    900mbps DOWN, 100mbps UP
  • Operating System
    Chrome OS
    Computer type
    Laptop
    Manufacturer/Model
    HP Chromebook
    CPU
    Intel Pentium Quad Core
    Memory
    4GB LPDDR4
    Monitor(s) Displays
    14 Inch HD SVA anti glare micro edge display
    Hard Drives
    64 GB emmc

Latest Support Threads

Back
Top Bottom