Thrum

How do you check memory pressure in Terminal?

Last reviewed: 19 November 2026.

Run sysctl kern.memorystatus_vm_pressure_level. It prints 1 when memory pressure is normal, 2 at the warning level and 4 when it is critical, the same states as the green, yellow and red Memory Pressure graph in Activity Monitor. Do not use the memory_pressure command to check: its man page describes it as a tool to apply or simulate memory pressure.

How do you read the pressure level?

  1. Open Terminal. Open Terminal from Applications > Utilities.
  2. Print the level. Run sysctl kern.memorystatus_vm_pressure_level. Add -n to print the number only.
  3. Check it repeatedly. Run while true; do sysctl -n kern.memorystatus_vm_pressure_level; sleep 5; done to print the level every 5 seconds while you work. Press Control-C to stop.

What do the numbers mean?

ValueLevelActivity Monitor color
1NormalGreen
2WarningYellow
4CriticalRed

The level is a state, not a percentage. It changes when macOS decides memory is getting short. At the warning and critical levels macOS sends low-memory notifications so that apps can release caches, and it compresses and swaps more.

Why not use the memory_pressure command?

The name suggests it reports pressure, but man memory_pressure describes it as a "tool to apply real or simulate memory pressure on the system". With -l warn or -l critical it allocates memory until the system reaches that level, and -p allocates until only a given percentage is free. That slows the Mac down on purpose, so it is for testing apps, not for checking.

If you run memory_pressure by mistake, press Control-C to stop it. The memory it allocated is released when it exits.

What other Terminal output helps explain the level?

top -l 1 -n 0 | grep PhysMem
sysctl vm.swapusage

PhysMem shows memory used, wired and held by the compressor. A large compressor figure together with level 2 or 4 means macOS is compressing to keep up. vm.swapusage shows how much has gone to disk. To find the apps responsible, run top -o mem and look at the top of the list.

How can Thrum help?

Thrum's Memory tab shows memory pressure, swap, and the eight processes using the most memory. An optional alert tells you when memory pressure turns critical.

Thrum is $4.99 once with a 14-day free trial and no account. It requires macOS 26 Tahoe on Apple silicon or Intel.

Questions

Is there a percentage for memory pressure?

Activity Monitor draws a graph, not a number, and the documented Terminal reading is the level (1, 2 or 4). Treat any percentage from third-party scripts as their own calculation.

Why is the level 1 while Memory Used is almost full?

Memory Used includes memory macOS can reclaim quickly. Level 1 means it is still finding memory without strain.

Sources