Every SSD runs garbage collection in the background. The controller copies still-valid data out of a partially used block, erases the whole block, and returns the space to the free pool. The work is invisible, but it decides how fast the drive writes after it has been in use for months.
Understanding the process explains two things users notice but rarely connect: an SSD that benchmarks well when empty but crawls when nearly full, and a drive that feels slower after a large delete.
NAND flash is written in pages and erased in blocks. A page might be 4 KB to 16 KB; a block contains hundreds of pages. You can write a page once after erasing, but you cannot overwrite it in place. When a file changes, the controller writes the new version to a fresh page and marks the old page invalid.
Over time, blocks fill with a mix of valid and invalid pages. Garbage collection picks a block, copies the valid pages to a new location, erases the block, and adds it to the pool of free blocks. The invalid pages disappear with the erase.
Placing those copied pages correctly depends on the flash translation layer, the table that links every address the host writes to a physical page on the flash. Each move during collection rewrites part of that table, so the mapping and the collection routine work as one system.
Without garbage collection, the drive would run out of erased blocks even though most of its data is stale. The process is the SSD equivalent of defragmentation, except it exists to reclaim erased space rather than to make files contiguous.
It also evens out wear. Because the controller chooses which blocks to recycle, it can favour blocks with low erase counts and spread writes across the whole chip. This is why an SSD does not wear out in the order files are written.
Garbage collection needs somewhere to put the valid pages it copies. When the drive is 90% full, few empty blocks remain, so the controller must collect more aggressively and copy more valid data for each block it frees. That extra work shows up as a write speed drop, sometimes from 1,000 MB/s to 100 MB/s or less.
The effect is worst with small random writes and with workloads that delete and rewrite the same files, such as virtual machines, databases and browser caches. Leaving 15% to 20% of the drive unused gives the controller room to work and keeps sustained speed closer to the rated figure.
TRIM tells the SSD which pages belong to deleted files. Without it, the controller treats those pages as valid and copies them during collection, wasting time and endurance. Windows sends TRIM automatically on modern systems, but the feature can be disabled.
Check it from an elevated Command Prompt with fsutil behavior query DisableDeleteNotify. A result of 0 means TRIM is enabled. A result of 1 means deleted data is still being preserved, which accelerates wear and slows collection.
If you need to return a drive to a clean state, a secure erase is better than a format because it erases every block and rebuilds the mapping table. Qiling Disk Master can wipe a disk when the drive is being repurposed.
A surface test reads every block and reports errors, which separates a slow drive from a failing one. Run it before you blame garbage collection for a performance problem.
Step 1. Connect the SSD, launch Qiling Disk Master, select the disk and click Surface test.

Step 2. Start the test and let it run. A high error count points at hardware rather than at garbage collection.

Step 3. Back up important data before any repair, wipe or replacement.

It causes extra writes, which is why write amplification matters. On a healthy drive with free space and TRIM enabled, the overhead stays low enough that endurance is not a practical concern.
No. The controller schedules it. You influence it by leaving free space, keeping TRIM on and avoiding sustained small random writes.
Benchmarks often run on an empty drive with a fresh SLC cache. Daily use fills the drive and forces collection, which is why real-world results differ.