windows - 工作集和提交大小有什么区别?

标签 windows memory-leaks ram

在调试 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/

相关文章:

opencv - 如何修复图像捕获中的 Julia OpenCV Cxx 内存泄漏?

javascript - 运行 javascript 过夜后系统挂起

linux - Beagleboard xM 中使用的 mDDR 芯片

c++ - sprintf 一个 LPCWSTR 变量

windows - Git 钩子(Hook)没有触发

windows - 如何找到映射驱动器的可用空间百分比?

C-尝试删除链表中的第一个节点时出现双重释放错误

ruby-on-rails - 减少 Redmine 的内存使用 - 低挂果

memory - Quartus 初始化 RAM

windows - 奇怪的 send() 问题(使用 Wireshark 日志)