Logs, database transactions, temporary files, and upload caches can all be primary write sources. First, sample the target board according to typical shifts, and then compare it with the endurance information of the specific memory device.
First find the daily business writing volume
If 4 KB of logs are appended every second, this alone will write approximately 346 MB per day, calculated in decimal units. Log compression and rotation affect reserved space, and file system metadata and internal write amplification affect actual writes to the media. Business bytes are only a starting point for budgeting.
Design two groups of meaningful samples
Observe the directory growth and block device write count during normal networking and server disconnection respectively. Fix the sampling length and record the device restart time. If the service is disconnected and complete errors will be printed repeatedly, frequency limiting or sampling first is often more effective than simply shortening the retention period.
Also retain diagnostic capabilities
Preserve startup exceptions, key configuration changes and the latest fault context. High-frequency debug tracing is enabled on demand. Verify that the business continues to run when logs are full and rotated, and then use daily reports to adjust partitioning and spare parts strategies.
Board documentation and references

- ArmSoM CM5 · hardware and interface manual · CM5 · product page
- ArmSoM CM5 Carrier-Board Design: From Raspberry Pi Prototype to Product
- systemd unit dependency and startup sequence
