Stop wondering why your SSD feels sluggish
Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop wondering why your SSD feels sluggish
🧩 The Challenge
You ever notice your cloud-hosted VM or modern database server crawl to a halt after a few months of heavy I/O, even though the disk isn’t full? It’s because the controller has no idea which blocks are actually empty after you’ve deleted files, and nobody tells you that the kernel won’t always handle it automatically.
💡 The Fix
You need to manually trigger a discard operation to let the SSD controller know which blocks are up for grabs. It’ll clear up the internal garbage collection mess and get your write speeds back to where they belong.
fstrim -av
⚙️ Why It Works
This utility sends a discard command to the filesystem, which maps out the unused blocks and hands that information down to the hardware controller. By running it with -v, you actually get to see which mount points are getting cleaned and how many gigabytes are being reclaimed in real-time.
🚀 Pro-Tip: Stick this in a weekly systemd timer or cron job if your distro doesn’t already have one enabled by default.
Linux Tips & Tricks | © ngelinux.com | 11/19/2026
