ArmSoM
← All stories

How to Read Linux Memory Pressure on an ArmSoM Board

An embedded Linux appliance can become sluggish before an out-of-memory event ever appears. Free memory alone is a poor guide because useful cache occupies RAM. On an ArmSoM image that exposes Linux pressure stall information, look at how long tasks actually wait.

ArmSoM Sige5 single-board computer product photo

ArmSoM Sige5 single-board computer · ArmSoM

Correlate stalls with a missed deadline

Read the memory pressure values from /proc/pressure/memory during an idle interval and during the affected workflow. The some metric tracks intervals when at least one task stalls. Compare changes in the cumulative stall time with application response times over the same window. Check storage pressure as well if the image uses swap. A brief allocation peak without stalled work calls for a different response from sustained pressure during every frame.

The cumulative total is in microseconds. A 100,000 µs increase in the some counter over a one-second interval corresponds to about 10 percent of that wall interval with at least one stalled task.

Repeat the same workflow after reducing the largest optional memory consumer. Use the application's deadline as the measure of improvement.

Reference material

ArmSoM Sige5 hardware documentation

Linux pressure stall information

Related ArmSoM guide

Low memory Linux design planning services on a 256 mb or 512 mb board

Explore ArmSoM Sige5