What are page-ins and page-outs on a Mac?
Last reviewed: 19 November 2026.
A page-in happens when macOS reads a page of memory from disk into RAM, and a page-out when it writes one from RAM to disk. Page-ins happen all the time as apps load their code and files, so a large total is normal. Steady page-outs and swap-outs while you work mean the Mac is short of memory.
Where do you see page-ins and page-outs?
Terminal shows the totals since startup:
vm_stat
vm_stat 5
The lines to read are Pageins, Pageouts, Swapins and Swapouts. With a number after it, vm_stat prints a new line every that many seconds showing the change since the last one, which is more useful than the totals. Press Control-C to stop.
Activity Monitor shows a per-process count: double-click a process, click Statistics, and read Page Ins, described in its tooltip as the number of times this process has paged in stored memory.
What is the difference between page-ins and swap-ins?
| vm_stat line | Meaning (from the man page) | What it tells you |
|---|---|---|
| Pageins | Requests for pages from a pager, such as the file pager. | Mostly app code and files being read. Normal. |
| Pageouts | Pages that have been paged out. | Modified pages written to disk. |
| Swapins | Compressed pages swapped back in from disk. | Memory macOS had moved to swap and an app needed again. |
| Swapouts | Compressed pages swapped out to disk. | macOS ran out of room in RAM even after compressing. |
On current macOS, memory goes through the compressor before it reaches swap, which is why swap-ins and swap-outs are counted in compressed pages.
When do page-outs mean the Mac needs more memory?
Watch vm_stat 5 while doing your usual work. If Swapouts rises in most intervals and the Memory Pressure graph in Activity Monitor is yellow or red, active apps need more memory than the Mac has, and they will pause while data is read back. Occasional bursts during a large export or after opening many tabs are normal.
A high Pageins rate by itself is not a memory problem; launching an app or opening a large project reads many pages from disk. What Swap Used means explains how swap is reduced.
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
What is a page?
The fixed-size unit macOS manages memory in. vm_stat prints the size on its first line: 16384 bytes on Apple silicon.
What is a page fault?
An event where a process touches a page that is not ready in its memory map, so the kernel has to supply it. Some faults are filled from RAM; a page-in is a fault that has to read from disk. Activity Monitor's process window lists Faults next to Page Ins.
Sources
- vm_stat(1) man page: run man vm_stat in Terminal
- Activity Monitor process window, Statistics tab, macOS 26