Available pagefile size / virtual memory

我与影子孤独终老i 提交于 2020-01-04 21:32:24

问题


What is the difference between Process.PagedMemorySize64 and PagedSystemMemorySize64 . I could not understand this clearly. Also , I am looking for a way to find out how much of the paging file is still availalbe. Do I have to loop through all the processes and sum up the PagedMemorySize64 for each one and subtract this from the total size of paging file ?


回答1:


PagedSystemMemorySize64 is the total number bytes of operating system kernel memory in the paged memory pool attributed to the process. It corresponds with the "Paged Pool" column in Taskmgr.exe.

PagedMemorySize64 is the total number of bytes of user mode virtual memory allocated for the process. It corresponds with the "Commit Size" column in Taskmgr.exe.

Note that processes share memory in these sections, the sum of the allocations of all processes is much greater than the actual amount of memory used. You furthermore cannot reasonably calculate the amount of "unused" space in the paging file, Windows dynamically expands and shrinks it based on what running processes require.



来源:https://stackoverflow.com/questions/14590162/available-pagefile-size-virtual-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!