什么是工作集和提交大小的区别? [英] what's the difference between working set and commit size?

查看:1178
本文介绍了什么是工作集和提交大小的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调试OOM时的错误,什么是工作集和提交大小的区别?尤其是有什么确切含义提交大小?

when debugging OOM bugs, what's the difference between working set and commit size? Especially what's the exact meaning for commit size?

推荐答案

从这里 ,该工作组是:

From here, the working set is:

...的物理存储器(RAM),而不是虚拟地址空间的计数。它重新presents的   该进程的虚拟地址空间的子集是有效的,这意味着   它可以在不招致页面错误被引用。

... 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.

在提交大小为:

的分页的虚拟地址空间的总量对于没有   后备存储分配以外的其他页面文件。在带系统   页面文件,它可以被认为是潜在的最大页面文件   用法。在没有页面文件系统,它仍然计数,但所有这些   虚拟地址空间必须保留在物理存储器(RAM),在所有   次。

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或内存映射文件,可以通过文件比页面其它回来文件)。

So you can think of the working set as the amount of physical memory used, while the commit size indicates the amount of virtual memory used (sans things like DLLs or memory mapped files, which can be back by files other than the page file).

这就是说,试图找到内存泄漏在.NET中,当这些数字是不是非常有用。相反,你应该使用第三方内存分析器的。

That said, these numbers are not generally useful when trying to find "memory leaks" in .NET. Instead, you should use third-party memory profilers.

这篇关于什么是工作集和提交大小的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆