Indeed, when I switched from pfSense to OPNsense I was surprised by the huge amount of disk writes that OPNsense makes. My gateway was averaging ~3.5GB writes/day, which I found to be rather excessive. I did a bit of digging and with a few small changes I reduced the daily writes significantly (it's averaging 50MB/day now with no loss in functionality or stability). (...)
(...) There are a number of contributors to writes, one of the largest of which is the RRD data for the Reporting + Health dashboard in the OPNsense control panel. This is actually straightforward to address - you can simply add an entry in your fstab for "/var/db/rrd" as a tmpfs volume (I use a 64MB volume size for this, also a reboot will be necessary to enable this). Then go to System + Settings + Miscellaneous in the OPNsense control panel, then in the "Periodic Backups" section, and change the "Periodic RRD Backup" to "Power off" for maximum write savings (or pick a backup time period you would like). (...)
systemhealth:1462 Uncaught TypeError: Cannot read properties of undefined (reading '0') at systemhealth:1462:67 at Object.complete (opnsense.js?v=4567372b83d8bd1e:298:21) at c (jquery-3.5.1.min.js?v=4567372b83d8bd1e:2:28294) at Object.fireWith (jquery-3.5.1.min.js?v=4567372b83d8bd1e:2:29039) at l (jquery-3.5.1.min.js?v=4567372b83d8bd1e:2:79928) at XMLHttpRequest.<anonymous> (jquery-3.5.1.min.js?v=4567372b83d8bd1e:2:82254)
First of all for your question to make sense you need to say if you mean on UFS or ZFS...Cheers,Franco
Ok, so ZFS likes to flush metadata to the disk even if no single file has been touched. The metadata is huge, about 20GB per day in some cases, which is 140GB per week not too far from your reported 200GB.We switched the standard sync to be 5 minutes instead of 30 seconds late in 23.7.x, but ZFS can still exhibit this excess write behaviour due to other reasons mentioned here.