VM size in Activity Monitor: hundreds of GB?

When I open the Activity Monitor, I get something looking like this: http://support.apple.com/kb/HT1342.

But why the heck is "VM size" around 100-200 GB??

Here is the capture from the apple support:

Activity Monitor

See the "VM size: 172.23 GB".

Is that a bug, or can you explain to me where are those GB?


Solution 1:

They are virtual and cost nothing to make. The VM hands out space to each program that asks for any but leaves tons of room to grow between each real allocation. These virtual addresses get mapped into the real RAM space as needed and mapped out when they are freed or otherwise inactive. They can even get paged to your storage if needed.

You can reboot to convince yourself it starts back at zero. This is expected that it grows over time and not a bug. The real query is what apps are requesting all that data and if you don't mind looking at files in the terminal sudo sysdiagnose is a great tool to dive deeper into virtual and real memory allocation.