ArmSoM
← All stories

Choosing a Log Rotation Budget for an ArmSoM Linux Image

A service that writes a few lines per minute during normal operation can fill storage quickly during a reconnect loop. Set a budget for the failure condition, including both application logs and the system journal when the same messages enter both.

ArmSoM Sige7 single-board computer product photo

ArmSoM Sige7 single-board computer · ArmSoM

Measure a known noisy interval

In a lab, disconnect an expected peripheral and observe bytes written per minute until the service settles. Estimate retention from that rate and the allocated space. Verify that a rotated file actually stops growing. Some processes keep writing to an old file handle unless their documented rotation procedure reopens it.

As an illustration, a 120 MB budget at 2 MB per minute gives about one hour before overhead and compression. A reconnect storm can consume a week's normal logs in a single afternoon.

Limit repeated messages while preserving the first failure, count of occurrences and recovery timestamp. Reconnect the peripheral and check that the sequence remains understandable. A smaller log that captures the transition can be more diagnostic than thousands of identical retries.

Reference material

ArmSoM Sige7 hardware documentation

systemd journal storage settings

Related ArmSoM guide

SSH access backups and recovery for a remote ArmSoM deployment

Explore ArmSoM Sige7