SDD fast wear ?

Started by @lex, March 23, 2025, 03:32:36 PM

Previous topic - Next topic
Hi,

I just made a quick check on the SMART info of my SSD on which OPNsense runs.

I have a TBW of 430 TB, that is around 100 TBW per year running.

This is enormous and I wonder what setup is recommended to avoid burning SSD Drives within a few years.  It's a small setup with Zenarmor, ntopng, and HAProxy on top of the usual services (DNS, NTP, DHCP).  Nothing fancy and a few dozen different local IPs.

I have to replace my SSD ASAP, and I will put a spare that I have here, but if I keep a similar setup, it will be the same story.

Should I add a mechanical drive and map some of the logging to it ?

What are the best practices ?

There are already lots of threads about this, use the search, Luke. There are certain things that cause massive writes to disk, Netflow, RRD and excessive logging being in the top list in that order. You can disable each of those and also put /tmp and / or /var/log into a ram disk.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+

Smells like ZFS. I wouldn't run ZFS-related things on any low-write consumer SSD.

ZFS already defaults to 90 sec async flush interval to help wear, I agree with the others, use a ram disk when using SSD storage.
OPNsense 25.1