1

This question concerns the PERFORMANCE_INFORMATION struct from the Process Status API (PSAPI) on Windows.

From the documentation, I would assume that CommitTotal >= (PhysicalTotal - PhysicalAvailable) since CommitTotal also includes the page file in addition to physical memory.

However, on my system I get the following values that violate the assumption:

  • CommitTotal = 7,943,270,400 (~ 7.4 GB)
  • PhysicalTotal – PhysicalAvailable = 9,685,630,976 (~ 9 GB)
  • 1
    Not every RAM page needs to be backed by the paging file. Examples are executable code, memory-mapped files and the biggest chunk, the file system cache. – Hans Passant Jul 07 '17 at 16:25
  • I see. So to get the size of the pagefile, I can compute CommitLimit-PhysicalTotal. Is there also a way to compute how much of the page file is currently used? –  Jul 12 '17 at 11:56

0 Answers0