在调试 OOM 错误时,工作集和提交大小之间有什么区别?特别是提交大小的确切含义是什么?
最佳答案
来自 here ,工作集为:
... a count of physical memory (RAM) rather than virtual address space. It represents the subset of the process's virtual address space that is valid, meaning that it can be referenced without incurring a page fault.
提交大小为:
the total amount of pageable virtual address space for which no backing store is assigned other than the pagefile. On systems with a pagefile, it may be thought of as the maximum potential pagefile usage. On systems with no pagefile, it is still counted, but all such virtual address space must remain in physical memory (RAM) at all times.
因此您可以将工作集视为已使用的物理内存量,而提交大小表示已使用的虚拟内存量(没有 DLL 或内存映射文件之类的东西,它们可以由页面以外的文件返回文件)。
也就是说,在尝试查找 .NET 中的“内存泄漏”时,这些数字通常没有用。相反,您应该使用第三方 memory profilers .
关于windows - 工作集和提交大小有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7954781/