Defrag/Trim


KevTech

New member
Local time
10:43 PM
Posts
10
OS
Windows 11 Pro
Can anyone else verify if defrag is messed up again?
Or did MS change the way trim works?
Scheduled task is running defrag and trim on my two SSD drives every seven days (weekly).
On Win 10 this seemed to only happen monthly but ever since I upgraded to 11 it happens like clockwork every seven days.
Filter application event log for event 258 and see what your system is doing.

Thanks.

defrag.jpg
 
Windows Build/Version
21H2 22000.376

My Computer

System One

  • OS
    Windows 11 Pro

Ghot

Well-known member
Pro User
VIP
Local time
1:43 AM
Posts
3,433
Location
PA, USA
OS
Win 11 Home ♦♦♦22000.856
Can anyone else verify if defrag is messed up again?
Or did MS change the way trim works?
Scheduled task is running defrag and trim on my two SSD drives every seven days (weekly).
On Win 10 this seemed to only happen monthly but ever since I upgraded to 11 it happens like clockwork every seven days.
Filter application event log for event 258 and see what your system is doing.

Thanks.

View attachment 16908



Just open Task Scheduler library and go to: Microsoft > Windows > Defrag ...and set it however you want.
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22000.856
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security (latest)
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724

hsehestedt

Well-known member
Power User
VIP
Local time
12:43 AM
Posts
811
Location
Texas, USA
OS
Windows 11 21H2
If you right-click on your C: drive, choose Properties > Tools > Optimize you'll also see a nice little summary.

The screenshot below from my system shows that the default appears to perform an optimization weekly. Note that this is after a clean install of Windows just a week or so ago. For SSDs this is very different than a defrag on a spinning disk so doing this frequently is no problem at all. In fact, you could do this multiple time a day with no ill effects, although I'd be hard pressed to see a need to do so unless are writing a lot of data to an SSD with very little free space.


Image1.jpg
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Windows 11 21H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

Ghot

Well-known member
Pro User
VIP
Local time
1:43 AM
Posts
3,433
Location
PA, USA
OS
Win 11 Home ♦♦♦22000.856
I know how to do that but in Win 10 even set on weekly trim was only happening once a month.
What I was asking is if others are seeing this on Win 11 since it did not happen on Win 10.

From 10 forum: SSD Trim Windows 10 - Windows 10 Help Forums



Microsoft fixed that issue (on Win 10), early 2021.

As @hsehestedt mentioned, you can just right click a drive and set it how you like.
Or... I personally, just disable "Optimize" and do it manually.



Seriously though... this day, there's more important things to worry about... like how they made this video... :-)


 
Last edited:

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22000.856
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security (latest)
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724

KevTech

New member
Thread Starter
Local time
10:43 PM
Posts
10
OS
Windows 11 Pro
Fixed what issue?
You mean when defrag would forget last run time and run over and over again?
What I am referring to is different.
On Win10 I would see my drives sometimes say 25 or more days since last optimized now the most I see on Win 11 is 6 so something changed.
Filter application log for event ID 258 and see how often yours is running is what I was asking.
 

My Computer

System One

  • OS
    Windows 11 Pro

Ghot

Well-known member
Pro User
VIP
Local time
1:43 AM
Posts
3,433
Location
PA, USA
OS
Win 11 Home ♦♦♦22000.856
Fixed what issue?
You mean when defrag would forget last run time and run over and over again?
What I am referring to is different.
On Win10 I would see my drives sometimes say 25 or more days since last optimized now the most I see on Win 11 is 6 so something changed.
Filter application log for event ID 258 and see how often yours is running is what I was asking.



Well, right now, I'm on Windows 10.
But I've never seen Event ID 258 on Win 10 or Win 11. But I have that Task disabled on both.

But IF it is running every 7 days on your computer... it's either Task Scheduler, or the actual Optimize app, running it.

Maybe I'm not being clear.
That pic you posted is just an "Information" alert. It's Win 11 telling you it's running defrag, every 7 days.

Have you tried changing the frequency to say... 30 days?



If you're just asking... WHY it's this way on Windows 11... only Microsoft knows for sure.
It'd be like asking why the START button and Taskbar icons are in the middle.


I'm not trying to be a smart-aleck or anything, I don't really understand what you're asking.

Have I seen anything about Optimize being broken on Win 11? NO.
Why is yours running every 7 days? It's scheduled to run every 7 days.
Did MS change something about Optimize and should I be worried about it? I don't know. I haven't seen anything bout it.
 
Last edited:

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22000.856
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security (latest)
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724

KevTech

New member
Thread Starter
Local time
10:43 PM
Posts
10
OS
Windows 11 Pro
12/24
The storage optimizer successfully completed defragmentation on Storage (D)
The storage optimizer successfully completed retrim on Storage (D)
The storage optimizer successfully completed defragmentation on 11 (C)
The storage optimizer successfully completed retrim on 11 (C)
12/17
The storage optimizer successfully completed defragmentation on Storage (D)
The storage optimizer successfully completed retrim on Storage (D)
The storage optimizer successfully completed defragmentation on 11 (C)
The storage optimizer successfully completed retrim on 11 (C)
 

My Computer

System One

  • OS
    Windows 11 Pro

geneo

Well-known member
Power User
VIP
Local time
1:43 AM
Posts
1,156
OS
Windows 11 Pro x64
There was something wrong with your Windows 10 if it was set for weekly and only ran monthly. The default for Windows 11 is weekly, so it is working as it should, so I don't understand where you see an issue.

As mentioned try to set it for monthly if you want monthly.

There is nothing wrong with running it more frequently. It isn't going to wear your SSD any faster.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY
    CPU
    10900K, 5.2 GHz all-core
    Motherboard
    Asus Maximus Hero XIII Wifi
    Memory
    32GB G.skill TridentZ RGB 3200CL14 B-die @ 4100 MHz 16-16-34
    Graphics Card(s)
    Asus ROG Strix 2070 Super A8G
    Sound Card
    Onboard Audio, Vanatoo Transparent One; Klipsch R-12SWi Sub
    Monitor(s) Displays
    Eizo CG2730, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    WDC SN850 1TB (OS+), Samsung 980 1TB (games), Raid 0: 1TB 850 EVO + 1TB 860 EVO. Sabrent USB-C DS-SC5B docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2TB WDC Black
    PSU
    750W Seasonic Prime Ultra Titanium Plus
    Case
    Fractal Design Meshify 2 dark tint glass
    Cooling
    EK-AIO 360 D-RGB w/Phanteks T30-120 fans, Noctua NF-A14 Chromax case fan
    Keyboard
    Glorious GMMK TKL - Brown mechanical, lubed modded
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    350 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect 8 ;-)
    Other Info
    Logitech C920e Webcam (crap don't buy)
  • Operating System
    Mac OS
    Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    M1
    Monitor(s) Displays
    2560x1600

KevTech

New member
Thread Starter
Local time
10:43 PM
Posts
10
OS
Windows 11 Pro
So I found out for SSD even if set for weekly it should only be done monthly like in Win 10.
My sister works for Microsoft and I asked her to look into this.
She inquired and was referred to: defrag
As you can see it says defrag task runs weekly by default but for SSD defrag/retrim are done monthly no matter what setting (daily, weekly or monthly) the task is set for.
Thanks all that replied and I am now going to leave this thread.

Screenshot 2021-12-25 125320.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro

geneo

Well-known member
Power User
VIP
Local time
1:43 AM
Posts
1,156
OS
Windows 11 Pro x64
I think you have to look at that carefully. Too bad you left.

"As an Administrator, you can change the how often the task runs by using the Optimize Drives app."
"Changing the frequency of the scheduled task does not affect the once per month cadence for the SSDs."

I interpret this to mean that once per month traditional defrag + retrim occurs no matter what.
and if you set a weekly schedule, retrim occurs weekly (traditional defrag does not occur)

So just disable scheduling in the Optimize drive apps. Have you tried that?
 

My Computers

System One System Two

  • OS
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY
    CPU
    10900K, 5.2 GHz all-core
    Motherboard
    Asus Maximus Hero XIII Wifi
    Memory
    32GB G.skill TridentZ RGB 3200CL14 B-die @ 4100 MHz 16-16-34
    Graphics Card(s)
    Asus ROG Strix 2070 Super A8G
    Sound Card
    Onboard Audio, Vanatoo Transparent One; Klipsch R-12SWi Sub
    Monitor(s) Displays
    Eizo CG2730, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    WDC SN850 1TB (OS+), Samsung 980 1TB (games), Raid 0: 1TB 850 EVO + 1TB 860 EVO. Sabrent USB-C DS-SC5B docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2TB WDC Black
    PSU
    750W Seasonic Prime Ultra Titanium Plus
    Case
    Fractal Design Meshify 2 dark tint glass
    Cooling
    EK-AIO 360 D-RGB w/Phanteks T30-120 fans, Noctua NF-A14 Chromax case fan
    Keyboard
    Glorious GMMK TKL - Brown mechanical, lubed modded
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    350 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect 8 ;-)
    Other Info
    Logitech C920e Webcam (crap don't buy)
  • Operating System
    Mac OS
    Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    M1
    Monitor(s) Displays
    2560x1600

Ghot

Well-known member
Pro User
VIP
Local time
1:43 AM
Posts
3,433
Location
PA, USA
OS
Win 11 Home ♦♦♦22000.856
So I found out for SSD even if set for weekly it should only be done monthly like in Win 10.
My sister works for Microsoft and I asked her to look into this.
She inquired and was referred to: defrag
As you can see it says defrag task runs weekly by default but for SSD defrag/retrim are done monthly no matter what setting (daily, weekly or monthly) the task is set for.
Thanks all that replied and I am now going to leave this thread.

View attachment 16942




Now that's just not fair.
Tell you're sister to make an account on here, so WE can ask her things. :D
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22000.856
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    DRW-24B1ST CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security (latest)
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724

hsehestedt

Well-known member
Power User
VIP
Local time
12:43 AM
Posts
811
Location
Texas, USA
OS
Windows 11 21H2
Old info, but set it to whatever you want. There is no wrong answer here unless you are allowing your drives to become very badly fragmented, or in the case of an SSD, run out of "clean" blocks.

For an SSD, a quick review of what a trim operation actually does:

When data is deleted from a drive, you are not actually removing that data, you are simply deleting the pointers to the areas on the disk where that data is held. For a traditional HD, that's just fine. When you later write to those freed up areas of the disk, there is no performance penalty. You simply write to those areas of the disk the same as always (except in the case of SMR disks, but that's a whole other ball of wax). However, on an SSD, blocks must be erased before they can be written to again. A trim operation will erase areas of the SSD that were previously in use but have now been freed up, doing so in the background so that when the time comes to use those blocks again an erasure does not need to be performed first. A "RETRIM" operation to your SSD is the OS (Windows 11) informing the SSD of all the areas of the disk that should be considered empty. These hints to the SSD will trigger a TRIM operation for areas that the SSD was not already aware that should have been TRIMed.

I want to stress the importance of having a properly trimmed SSD, because the performance problems can be amplified far more than you might initially think. Note that even if you are going to write only 1 byte of data to a block that has not been trimmed, the ENTIRE block must be erased first and the entire block needs to be rewritten. If there are a lot of untrimmed blocks, this can make an ENORMOUS difference in performance.

If you have a lot of free space on your SSDs and you don't write large amounts of data, then less frequent optimization may be just fine. The drive will try to write to trimmed blocks first, however, there are limits to this as other considerations such as wear leveling algorithms come into play as well.

Also, bear in mind that there is absolutely no negative to performing a trim / retrim more frequently. Only blocks that need to be trimmed will be trimmed, doing so more frequently simply means that you will tend to accumulate fewer untrimmed blocks between runs keeping your drive at peak efficiency. Those blocks are going to have to be trimmed at some point in the future anyway. Note too that a retrim only informs a drive of areas that it should consider to be unused. Usually, when everything is running normally, a trim operation is performed as soon as blocks are freed, but if something interferes with this (unexpected shutdown for example), that's when a retrim helps. Because that does not happen often, a retrim usually results in little disk activity anyway, so again, more frequently retrimming has no negative impacts.
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Windows 11 21H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

Slinky

Member
Local time
6:43 AM
Posts
63
Location
South East England
OS
Windows 11
@hsehestedt
Thank you for your very informative post above :wink: It's not often that I dig into disk defragmentation as usually this is handled automatically, however, since installing Windows 11 a couple of weeks ago I thought it best to check . Good job too it seems as I noticed my Samsung 850 EVO SSD was marked as having been 'retrimmed' just 1 day ago. This immediately rang alarm bells for me, I was certain this feature was turned off for my C-Drive under my previous install of Windows 10. Curious as to the correct settings I Googled the subject which thankfully brought me to this post. I'm certainly glad I've read it because I was about to disable 'Trim' support once again on my C-Drive. I think where my knowledge let me down was because I confused 'Disk Defragmentation' with 'Trim' optimization. I do know that SSD's have no moving parts and therefore don't require defragmenting but no doubt I confused the two as being much the same thing. No doubt an innocent mistake on my part but one that I'm glad I checked (y) Thanks again :)
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS Prime B350 Plus
    CPU
    AMD Ryzen 5 1600 AM4 Hex Core Processor 3200GHz
    Motherboard
    ASUS Prime B350 Plus
    Memory
    Corsair Vengeance LPX 16 GB (2x8 GB) DDR4 2666 MHz C16 XMP 2.0 High Performance Desktop Memory Kit - Red
    Graphics Card(s)
    NVidia Geforce GTX 1050 Ti
    Sound Card
    Onboard
    Monitor(s) Displays
    DELL U2412M
    Screen Resolution
    1920 x 1200
    Hard Drives
    Samsung 850 EVO SSD 120Gb
    Seagate 2 TB
    PSU
    EVGA SuperNOVA 750 G2, 80+ GOLD 750W, Fully Modular
    Case
    Chieftec Scorpio TX 10BWD Mid Tower
    Cooling
    Arctic F8 PWM Rev.2
    Keyboard
    Logitech K520
    Mouse
    Logitech MX Master 3
    Internet Speed
    72.35 Mbps Down - 18.53 Mbps Up
    Browser
    Microsoft Edge
    Antivirus
    Windows Defender

hsehestedt

Well-known member
Power User
VIP
Local time
12:43 AM
Posts
811
Location
Texas, USA
OS
Windows 11 21H2
@hsehestedt
Thank you for your very informative post above :wink: It's not often that I dig into disk defragmentation as usually this is handled automatically, however, since installing Windows 11 a couple of weeks ago I thought it best to check . Good job too it seems as I noticed my Samsung 850 EVO SSD was marked as having been 'retrimmed' just 1 day ago. This immediately rang alarm bells for me, I was certain this feature was turned off for my C-Drive under my previous install of Windows 10. Curious as to the correct settings I Googled the subject which thankfully brought me to this post. I'm certainly glad I've read it because I was about to disable 'Trim' support once again on my C-Drive. I think where my knowledge let me down was because I confused 'Disk Defragmentation' with 'Trim' optimization. I do know that SSD's have no moving parts and therefore don't require defragmenting but no doubt I confused the two as being much the same thing. No doubt an innocent mistake on my part but one that I'm glad I checked (y) Thanks again :)
Thanks for taking the time to share your comments. That's very much appreciated. Yeah, I have to say that this forum is really a highly useful resource for me as well. It seems like not a day goes by where I don't glean some sort of helpful nugget of information.
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Windows 11 21H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

Slinky

Member
Local time
6:43 AM
Posts
63
Location
South East England
OS
Windows 11
Thanks for taking the time to share your comments. That's very much appreciated. Yeah, I have to say that this forum is really a highly useful resource for me as well. It seems like not a day goes by where I don't glean some sort of helpful nugget of information.
You're welcome, credit where it's due (y) I've long been a fan of forums such as these and have amassed a wealth of useful information over the years. It makes me wonder how we all coped in the old days when you had to read a book to learn something. Nowadays a quick click of the mouse can have you sorted in no time :wink: Thank you for sharing..
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS Prime B350 Plus
    CPU
    AMD Ryzen 5 1600 AM4 Hex Core Processor 3200GHz
    Motherboard
    ASUS Prime B350 Plus
    Memory
    Corsair Vengeance LPX 16 GB (2x8 GB) DDR4 2666 MHz C16 XMP 2.0 High Performance Desktop Memory Kit - Red
    Graphics Card(s)
    NVidia Geforce GTX 1050 Ti
    Sound Card
    Onboard
    Monitor(s) Displays
    DELL U2412M
    Screen Resolution
    1920 x 1200
    Hard Drives
    Samsung 850 EVO SSD 120Gb
    Seagate 2 TB
    PSU
    EVGA SuperNOVA 750 G2, 80+ GOLD 750W, Fully Modular
    Case
    Chieftec Scorpio TX 10BWD Mid Tower
    Cooling
    Arctic F8 PWM Rev.2
    Keyboard
    Logitech K520
    Mouse
    Logitech MX Master 3
    Internet Speed
    72.35 Mbps Down - 18.53 Mbps Up
    Browser
    Microsoft Edge
    Antivirus
    Windows Defender

hsehestedt

Well-known member
Power User
VIP
Local time
12:43 AM
Posts
811
Location
Texas, USA
OS
Windows 11 21H2
You are so right! I remember it taking me days or weeks to find solutions that I can now sometimes find in minutes.
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Windows 11 21H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

abactuon

Active member
Member
Local time
12:43 PM
Posts
176
OS
Microsoft Windows 11 Home
TRIM - Sata SSD
Deallocate - NVMe SSD

They are very different devices.
 

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Dash F15 FX516PM_FX516PM
    CPU
    Intel Core i7-11370H
    Motherboard
    ASUS FX516PM
    Memory
    Micron 4ATF1G64HZ-3G2E2/8G + Patriot PSD416G320081S
    Graphics Card(s)
    NVIDIA GeForce RTX 3060 Laptop
    Sound Card
    Intel Tiger Lake-U/Y PCH-LP - cAVS (Audio, Voice, Speech)
    Monitor(s) Displays
    LM156LF-2F03
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. Noname 128GB SSD
    2. HFM512GD3JX013N
    PSU
    200W
    Mouse
    HP USB Fingerprint Mouse
    Internet Speed
    70 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus

geneo

Well-known member
Power User
VIP
Local time
1:43 AM
Posts
1,156
OS
Windows 11 Pro x64

My Computers

System One System Two

  • OS
    Windows 11 Pro x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    DIY
    CPU
    10900K, 5.2 GHz all-core
    Motherboard
    Asus Maximus Hero XIII Wifi
    Memory
    32GB G.skill TridentZ RGB 3200CL14 B-die @ 4100 MHz 16-16-34
    Graphics Card(s)
    Asus ROG Strix 2070 Super A8G
    Sound Card
    Onboard Audio, Vanatoo Transparent One; Klipsch R-12SWi Sub
    Monitor(s) Displays
    Eizo CG2730, ViewSonic VP2768
    Screen Resolution
    2560 x 1440p x 2
    Hard Drives
    WDC SN850 1TB (OS+), Samsung 980 1TB (games), Raid 0: 1TB 850 EVO + 1TB 860 EVO. Sabrent USB-C DS-SC5B docking station: 6TB WDC Black, 6TB Ironwolf Pro; 2TB WDC Black
    PSU
    750W Seasonic Prime Ultra Titanium Plus
    Case
    Fractal Design Meshify 2 dark tint glass
    Cooling
    EK-AIO 360 D-RGB w/Phanteks T30-120 fans, Noctua NF-A14 Chromax case fan
    Keyboard
    Glorious GMMK TKL - Brown mechanical, lubed modded
    Mouse
    Logitech G305 wireless gaming
    Internet Speed
    350 Mb/s down, 12 Mb/s up
    Browser
    Firefox
    Antivirus
    Defender, Macrium Reflect 8 ;-)
    Other Info
    Logitech C920e Webcam (crap don't buy)
  • Operating System
    Mac OS
    Computer type
    Laptop
    Manufacturer/Model
    Apple 13" Macbook Pro 2020 (m1)
    CPU
    M1
    Monitor(s) Displays
    2560x1600

abactuon

Active member
Member
Local time
12:43 PM
Posts
176
OS
Microsoft Windows 11 Home
I am interested in whether the nvme drive сontroller has a built in garbage collection function like for sata ssd drives.
 

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    ASUS TUF Dash F15 FX516PM_FX516PM
    CPU
    Intel Core i7-11370H
    Motherboard
    ASUS FX516PM
    Memory
    Micron 4ATF1G64HZ-3G2E2/8G + Patriot PSD416G320081S
    Graphics Card(s)
    NVIDIA GeForce RTX 3060 Laptop
    Sound Card
    Intel Tiger Lake-U/Y PCH-LP - cAVS (Audio, Voice, Speech)
    Monitor(s) Displays
    LM156LF-2F03
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. Noname 128GB SSD
    2. HFM512GD3JX013N
    PSU
    200W
    Mouse
    HP USB Fingerprint Mouse
    Internet Speed
    70 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus
Top Bottom