virtual memory view in windows server 2008

0

AFAIK, Task Manager in windows 2008 shows the physical memory. I have a program that sums up the FREE physical & FREE virtual memory in MG.

How can I confirm it has the right output of this sum? the physical I can take from task manager at the same second, but where do I take the virtual from? performance counters or something?

user1025852

Posted 2014-02-04T16:00:12.493

Reputation: 117

There is really no such thing as "free virtual memory". Modern operating systems can create massive amounts of virtual memory on demand. For example, start a 64-bit process, memory map an 8GB file, and you now have 8G more virtual memory in use. When you remove that mapping, you don't have 8GB of virtual memory that's free, the virtual memory ceases to exist. "Free virtual memory" is really equivalent to nothing at all. When a process terminates, does its VM become free? No, it ceases to exist. – David Schwartz – 2014-02-04T18:08:36.097

Thanks. so what is this Free Virtual MEmory that OS supplies in this link - http://msdn.microsoft.com/en-us/library/windows/desktop/aa387937(v=vs.85).aspx?

– user1025852 – 2014-02-04T21:41:57.143

According to the part of that web page that makes sense, it's how much the commit charge can grow before the OS would have to overcommit to allow it to grow -- free RAM plus unused paging file space. This is gobbledygook though, "Number of kilobytes of virtual memory currently unused and available." (For the reason I explained. Are file mappings virtual memory? Of course they are.) – David Schwartz – 2014-02-04T22:39:43.573

No answers