读书人

Windows 虚拟内存有关问题

发布时间: 2012-09-25 09:55:59 作者: rapoo

Windows 虚拟内存问题
开始->附件->系统工具->系统信息 中的"总的虚拟内存"和"可用虚拟内存"是如何获取的? 我用GlobalMemoryStatusEx 函数获取的虚拟内存信息为什么跟 系统信息 中的虚拟内存信息对应不上呢?(windows 2000/windows 2003/ windows 7)它们俩是不是不是一个概念?系统信息 中的虚拟内存总量和可用虚拟内存如何获取呢?我是新手,希望能得到高手的指点,谢谢!!!

[解决办法]
注册表:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management

PagingFiles
[解决办法]
对于虚拟内存,有如下情况:
预定/没预定
已调拨/没调拨
可能预定了,但是不调拨
------------------------
MEMORYSTATUSEX 结构体中的:
dwMemoryLoad
Number between 0 and 100 that gives a general idea of current memory utilization, in which 0 indicates no memory use and 100 indicates full memory use.
ullTotalPhys
Total size of physical memory, in bytes.
ullAvailPhys
Size of physical memory available, in bytes.
ullTotalPageFile
Size of the committed memory limit, in bytes.
ullAvailPageFile
Size of available memory to commit, in bytes.
ullTotalVirtual
Total size of the user mode portion of the virtual address space of the calling process, in bytes.
ullAvailVirtual
Size of unreserved and uncommitted memory in the user mode portion of the virtual address space of the calling process, in bytes.
ullAvailExtendedVirtual
Size of unreserved and uncommitted memory in the extended portion of the virtual address space of the calling process, in bytes.

读书人网 >C++

热点推荐