<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>VMMap - A Peek Inside Virtual Memory</title><link>http://blogs.technet.com/b/askperf/archive/2010/01/29/vmmap-a-peek-inside-virtual-memory.aspx</link><description>Today I would like to do a quick walkthrough of the VMMap tool from Windows Sysinternals . 
 This tool gives us a neat summary of a process’ virtual and physical memory usage. It shows a graphical summary as well as a detailed report of a given process</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: VMMap - A Peek Inside Virtual Memory</title><link>http://blogs.technet.com/b/askperf/archive/2010/01/29/vmmap-a-peek-inside-virtual-memory.aspx#3528377</link><pubDate>Wed, 24 Oct 2012 11:09:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3528377</guid><dc:creator>Paul Gürtler</dc:creator><description>&lt;p&gt;VMMap is a very nice tool, but for some reason, there is often a mismatch in Private Bytes when comparing to pslist or Process Explorer. The deviation seems to originate from &amp;quot;Image&amp;quot;, where the sum of Private Bytes usually does not match the listed sum in the upper pane. The deviation is small unless the module is loaded from a file share, where the full module size seems to be added to the Private Bytes sum. A very small program loading imageres.dll (~20 MBytes on Windows 7) can demo this behavior (both for x86 and x64):&lt;/p&gt;
&lt;p&gt;#include &amp;lt;windows.h&amp;gt;&lt;/p&gt;
&lt;p&gt;void main(void)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;HMODULE hMod;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;hMod = LoadLibrary(&amp;quot;imageres.dll&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;//hMod = LoadLibrary(&amp;quot;u:\\imageres.dll&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;if(!hMod)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;printf(&amp;quot;GLE=%d\n&amp;quot;, GetLastError());&lt;/p&gt;
&lt;p&gt; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Sleep(60000);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;When loading from local disk, total Private Bytes for &amp;quot;Image&amp;quot; remains small, but if you copy imageres.dll to a file share (U:\ in the example above) and load it from there, the full module size seems to be added to the total, but does not appear in the details pane (the module is not relocated in any case). This is just a small demo with simple standard ingredients. If you have a larger application with several modules on a file share, the deviation can be huge. This was tested with VMMap 3.11 on 64 bit Windows 7.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3528377" width="1" height="1"&gt;</description></item></channel></rss>