Mac Swap Memory: What It Is and How to Monitor It
What Is Swap Memory on Mac?
Swap is disk space that macOS uses as overflow when physical RAM is full. When apps request more memory than available, macOS writes inactive memory pages to a swap file on the startup disk. Reading from swap is much slower than reading from RAM because SSDs, while fast, are still orders of magnitude slower than physical memory.
macOS manages swap automatically. When running applications need more memory than the Mac has physically installed, the kernel identifies memory pages that have not been accessed recently and writes them to a swap file stored on the internal SSD. This frees up physical RAM for the applications that need it most.
Swap usage is a sign that your workload exceeds your available RAM. A small amount of swap is normal and may not produce any noticeable slowdown. However, when swap usage grows to several gigabytes, the system spends increasing amounts of time reading and writing to disk instead of accessing data directly from memory.
How Do You Check Swap Usage on Mac?
Open Activity Monitor and click the Memory tab. The "Swap Used" value appears at the bottom of the window. In Terminal, run sysctl vm.swapusage to see used, total, and free swap values.
Activity Monitor provides the simplest way to check swap. Open it with Cmd+Space, type "Activity Monitor," press Return, then click the Memory tab. The bottom panel shows Physical Memory, Memory Used, Cached Files, and Swap Used. If Swap Used shows 0 bytes, your Mac is operating entirely within physical RAM.
For more detail, the Terminal command sysctl vm.swapusage prints the total swap space allocated, the amount currently used, and the amount free. The vm_stat command provides page-in and page-out statistics, which reveal how actively the system is moving data between RAM and disk. High swap usage combined with yellow or red memory pressure indicates a memory bottleneck.
What Are Page Ins and Page Outs?
A page out occurs when macOS writes a memory page from RAM to the swap file on disk. A page in occurs when macOS reads that page back from disk into RAM. Both operations consume CPU cycles and disk bandwidth, slowing down everything else on the system.
High page out rates mean the system is actively offloading memory to make room for new allocations. This happens when applications collectively demand more memory than the Mac has physically available. Each page out writes a 16 KB chunk of data (on Apple Silicon) from RAM to the swap file on the SSD.
High page in rates mean the system is frequently retrieving previously swapped data. This occurs when an application accesses memory that was paged out earlier, forcing the kernel to read it back from disk. The latency of each page in is measured in microseconds for SSDs, compared to nanoseconds for RAM access.
You can view cumulative page in and page out counts with the vm_statcommand in Terminal. The "Pageins" and "Pageouts" rows show total pages transferred since the last reboot. To calculate rates, compare two readings taken a few seconds apart and divide the difference by the elapsed time.
How Does Swap Affect Performance?
Even on fast NVMe SSDs, swap access is 10 to 100 times slower than RAM access. When the system swaps heavily, every application feels sluggish. Window switching lags, apps take longer to respond, and the spinning wheel appears more frequently.
RAM operates at bandwidths measured in tens or hundreds of gigabytes per second with latencies in the single-digit nanosecond range. Even the fastest NVMe SSDs in modern Macs top out around 7 GB/s with latencies in the tens of microseconds. This gap means every memory access that hits swap instead of RAM takes dramatically longer to complete.
On Macs with 8 GB of unified memory, swap usage is common during multitasking with browsers and creative apps. A browser with 20 or more tabs alongside a design application can easily push total memory demand past 8 GB. The resulting swap activity manifests as perceptible delays when switching between applications, scrolling through documents, or performing any action that touches swapped memory pages. The Mac Running Slow guide covers additional causes of system-wide slowdowns.
How Does MoniThor Monitor Swap?
MoniThor tracks swap usage in real time and displays it in the memory section. It shows both used and total swap values, along with live page-in and page-out rates per second so you can see how actively your Mac is moving data between RAM and disk.
The memory section displays swap used versus total, shown only when swap is active. This avoids cluttering the interface when the Mac is operating entirely within physical RAM. When swap appears, the values update every few seconds so you can see whether usage is climbing or stable.
Page-in and page-out rates are displayed as pages per second, giving you a real time view of how actively the system is moving data between RAM and disk. A sustained high rate in either direction signals that the Mac is under memory pressure and performance is likely degraded.
The memory section also includes the memory pressure ring gauge (green, yellow, or red) and the full memory breakdown including wired, compressed, cached, and free categories. Together, these metrics provide a complete picture of memory health without needing to open Activity Monitor.
How Do You Reduce Swap Usage?
Close applications and browser tabs you are not actively using. Restart the Mac to clear accumulated swap and memory leaks. If swap usage is consistently high during your normal workflow, your Mac may need more RAM than it has.
Close unused applications and tabs. Each open application and browser tab reserves memory. Quitting apps you are not using (Cmd+Q) and closing unnecessary tabs are the fastest ways to reduce memory demand and bring swap usage down.
Restart the Mac. A restart clears all swap files and reclaims memory held by leaking processes. If your Mac has been running for days or weeks, a restart often eliminates swap usage entirely and returns memory pressure to green.
Check Activity Monitor for heavy processes. Sort the Memory tab by memory footprint to identify which processes are consuming the most RAM. Look for applications using more memory than expected, which may indicate a memory leak. The What Is Using My RAM on Mac guide explains how to investigate further.
Reduce Login Items.Applications that launch at startup consume memory from boot. Open System Settings > General > Login Items to review and disable items that do not need to run automatically. Fewer startup apps mean more RAM available for your active work.
Consider your hardware. If swap usage is consistently high during your normal workflow, your Mac may simply need more RAM than it has installed. On Apple Silicon Macs, RAM cannot be upgraded after purchase, so this is an important factor when choosing your next machine.
Marcel Iseli is a software developer and the creator of MoniThor. He builds native macOS utilities focused on performance monitoring and system optimization, with a focus on lightweight, subscription-free tools.