Linux Commands / IT Support Guides
Read Linux memory pressure with free
Use free -h to check how much memory Linux can make available to applications.
Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution
Understand the problem
Run the check on the Linux machine that is slow. A single reading captures the system at that moment, so record when you took it.
Run the command
Run free -h. The -h option displays sizes in readable units. Focus on the Mem: row first, then look at Swap: separately.
free -h
Read the output
Read the available column on the Mem: row. For example, 16 GiB total, 500 MiB free and 6 GiB available means Linux estimates roughly 6 GiB can be used for new work without swapping.
Choose the next step
Take another reading while the slowdown occurs. If available memory stays low, compare the processes using memory and check whether swapping is active before deciding what to change.
Before making changes
Swap usage can remain after a period of memory pressure. A single nonzero value is a reason to look for more evidence before restarting services or changing memory settings.