title: Windbg memory size in heap summary did not match the usage statistic
body: <p>I have a <code>.dmp</code> file, created from TaskManager. When using windbg command:</p>
  
  <pre><code>!heap -s 
  </code></pre>
  
  <p>it shows result like this:</p>
  
  <p><a href="https://i.stack.imgur.com/pHVrb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pHVrb.png" alt="!heap -s result"></a></p>
  
  <p>In this line:   </p>
  
  <pre><code>00a40000 00000002 1084772 1074756 1084772 339109  3979   218    4     6b   LFH
  </code></pre>
  
  <p>we can see the memory usage is about 1Gb, then I use the command </p>
  
  <pre><code>!heap -stat -h 00a40000 
  </code></pre>
  
  <p>to check the usage statistic, the result shows here:</p>
  
  <p><a href="https://i.stack.imgur.com/a1CCT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a1CCT.png" alt="!heap -stat -h 00a40000 result"></a></p>
  
  <p>The question here is: from the statistic, the top line is: </p>
  
  <pre><code>a0 24 - 1680  (17.14)
  </code></pre>
  
  <p>which means the memory used is <strong>1680(HEX) = 5Kb</strong>, and the total memory is <strong>5Kb / 17.14% = 29.17Kb</strong>, which is quite different from 1Gb in the summary.</p>
  
  <p>Did I make any mistake here? How do I solve this problem?</p>