Sunday, January 21, 2007

The vm size on the task manager is confusing.



Everybody who has taken a course of Operating system knows the difference between the virtual memory and physical memory. There is a good definition here : Virtual (or logical) memory is a concept that, when implemented by a computer and its operating system, allows programmers to use a very large range of memory or storage addresses for stored data. The computing system maps the programmer's virtual addresses to real hardware storage addresses. Usually, the programmer is freed from having to be concerned about the availability of data storage.

And the physical memory is the memory actually used by the process right now. So normally, you would think that virtual memory used by one process should be larger than its physical memory.

But if you open the task manager,and compare the size of the virtual memory and physical memory, you will get a different answer.


The vm size is actually smaller than the physical memory size. The "VM size" used by the task manager is pretty misleading.

The VM is actually the "Private Bytes" used by the popular process explorer, which are part of the VM, but they exclude the memory allocated by the system. The process explorer depicts a much better picture of the system state.

No comments: