Rockchip · AI & Linux Hub

Storage & networking

Estimating daily eMMC log writes on a Rockchip terminal

After choosing an eMMC with sufficient capacity, you still need to understand the continuous writing workload.

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

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →