brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: set the SSD TRIM schedule so your cache keeps its write speed

Cache
~/tips/tip-unraid-ssd-trim-schedule

fstrim -v /mnt/cache

Where Unraid schedules TRIM for pool SSDs, and how to run it once by hand.

SSDs write faster when the drive knows which blocks are free. TRIM tells it.

Unraid has a schedule under Settings, Scheduler, SSD TRIM. Weekly at a quiet hour is a good choice. btrfs on current Unraid also discards in the background, and forum users report that running both does no harm.

To run it once now on a pool:

fstrim -v /mnt/cache

The command prints how much it trimmed. A message that the operation is not supported means that device or its connection does not pass TRIM on.

Array disks do not support TRIM, so SSDs belong in a pool.

Further reading: Unraid docs: cache pools

Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it

More Cache tips fincore /var/lib/example/data.db npm cache verify fc-cache -f -v ~/.local/share/fonts proxy_cache app; Cache-Control: no-cache All Cache tips (24) All topics

Link