Why does my MBP sometimes report VM Size: 300+ GB
in Activity Monitor under System Memory tab, when my hard disk size is only 250 GB (total) and RAM is 4GB? I know it can't magically get that extra space, but what is it trying to tell me?
How to virtual memory be greater than the total available space
activity-monitormemorysnow leopardvirtual-memory
Related Question
- MacOS – If a Mac has 1GB inactive, and it has been idle for an hour, why it doesn’t swap the inactive RAM to the pagefile for “readiness”
- MacOS – OS X startup disk has no more space available for application memory
- MacOS – Performance issues, can I recover memory
- MacOS – Memory terminology in Mavericks Activity Monitory
- MacOS – How to tell which apps are using up the graphics memory
- MacOS – OS X: Memory usage freaking me out
- MacOS – How to hunt down which tab or webpage (on Google Chrome) used a lot of memory
Best Answer
It's all imaginary since virtual memory doesn’t need to exist until a program stores something specific. In this case, some combination of programs is saying to the OS they might some day use that much space. Don't worry unless:
Basically, this idea makes memory handling faster as the system is running. Since programs keep asking for more and more memory, the system lays out un-mapped chunks of virtual RAM with tons of space in between each process' allocation. This makes some very common memory calculations easier and faster and makes it very unlikely that the regions will ever overlap. When virtual memory regions overlap, it's more costly to pause things and re-map the memory under a running program. All this mental olympics involving virtual memory makes your mac run faster.