What Is Taking Space in /var/vm on Mac?
macOS parks sleep images and swap files in /var/vm, the hidden directory behind mysterious disk usage.
Last updated
The /var/vm directory is where macOS keeps its memory overflow. Sleepimage holds RAM contents for hibernation, sized near physical memory. Swapfiles multiply as pressure grows, numbered sequentially.
The folder needs root to even list, which is why disk analyzers show a mysterious chunk instead. Normal desktops carry a few gigabytes here without concern. Only runaway growth with memory pressure warnings deserves investigation rather than acceptance.
Where macOS stores this, by platform
/var/vm
sleepimage matches RAM size, swapfile0 and up grow with pressure. Listing needs sudo. Reclaim by easing memory load, not by deleting live files.
Frequently asked questions
Why is /var/vm enormous?
Mostly sleep and swap doing their jobs. A giant sleepimage matches your RAM size by design, and swap grows with memory pressure. Check Activity Monitor memory pressure before deleting anything.
Can I reclaim the space?
Yes, with tradeoffs. Disabling hibernation removes sleepimage at the cost of battery safety during sleep. Swap can shrink but never safely vanish while apps overcommit memory. Prefer adding RAM to fighting the files.
Notice an outdated path? Let us know.