Unfortunately, in that 17 year old post, @normis just complained about the topic and said it had been previously explained, without any reference to where it is explained, and summarized it as follows.
oh not again the infamous `flash wearing out` topic. it was already explained that this number represents the TOTAL writes per flash, not per sector. even with higher rates, you will be able to live a few years with the flash.
But what type of flash was being used at the time, and its durability compared to what is being produced now I don't know. I also don't know how good the wear leveling in the onboard flash is in the hEX.
I did change mine to
/tool graphing
set store-every=24hours
And it still averaged over 66 sectors written per hour (over the previous 140 hours (5 days 20 hours)
[demo@MikroTik] > /system/routerboard/print
routerboard: yes
board-name: hEX S
model: RB760iGS
serial-number: **redacted**
firmware-type: mt7621L
factory-firmware: 6.46.4
current-firmware: 6.47.10
upgrade-firmware: 7.4
[demo@MikroTik] > /tool graphing/print
store-every: 24hours
page-refresh: 300
[demo@MikroTik] > /system resource print
uptime: 5d20h29m42s
version: 7.4 (stable)
build-time: Jul/19/2022 11:25:54
factory-software: 6.46.4
free-memory: 202.3MiB
total-memory: 256.0MiB
cpu: MIPS 1004Kc V2.15
cpu-count: 4
cpu-frequency: 880MHz
cpu-load: 1%
free-hdd-space: 4240.0KiB
total-hdd-space: 16.0MiB
write-sect-since-reboot: 9284
write-sect-total: 399536
bad-blocks: 0%
architecture-name: mmips
board-name: hEX S
platform: MikroTik
[demo@MikroTik] >
One thing I don't know is if when a "normal" shutdown or reboot is done whether the ram it flushed or not. If the power is just disconnected, it would seem you would lose any data since the last write was done, but my question is if you do a reboot, will you still lose up to a day's worth of samples?
This by @mrz seems to indicate that no extra flush is done on requested reboot.
24h setting means that it will store data every 24hours if your router reboots before that nothing will be stored.
What exactly is not working with 5min?
Does anyone know if a requested reboot (or upgrade or shutdown) flushes the data to disk before shutting off and losing RAM in v7?
I also don't know if there is any hook to link a script to before shutdown is done, or if there is a command to force a write to disk "now" or not.