帮助我了解 Process Explorer 中的这些内存统计信息
我正在尝试对我的大型财务计算运行所需的内存量进行非常粗略的测量。它是一个非常简单的命令行工具,可以对大量金融工具定价,然后打印结果。
我决定使用 Process Explorer 来查看程序的内存需求。有人可以解释一下屏幕截图中标记为a和b的两个字段之间的区别吗:
我目前认为:
标记为“a”的值(峰值专用字节)是最大的内存量(包括实际物理内存和磁盘上的虚拟内存) )在任何瞬时分配给进程。
标记为“b”的值(Pealworking Set)是进程生命周期中任何时刻分配的最大物理内存量。
I'm trying to do a very rough measurement of the amount of memory my large financial calculation requires in order to run. Its a very simple command line tool which prices up a large number of financial instruments and then prints out a result.
I decided to use Process Explorer to view the memory requirements of the program. Can somebody kindly explain the difference between the two fields labeled a and b in the screenshot:
I currently believe that:
The value labeled "a" (Peak Private Bytes) is the largest amount of memory (both actual physical memory and virtual memory on disk) which was allocated to the process at any instantaneous moment.
The value labeled "b" (Peal Working Set) is the largest amount of physical memory allocated at any instant during the life of the process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自此处:
在这种情况下“峰值”的含义应该是显而易见的。
From here:
What "peak" means in that context should be obvious.
来自观察的随机想法以及过程浏览器的显示内容。
工作集位于显示器的物理内存部分,因此任何说它是虚拟内存的人都会感到困惑。由于 RAM 使用情况通常会发生变化,因此它会以奇数变化,因此看起来工作集是物理内存。
另一方面,专用字节被列为虚拟内存。看着它的变化似乎变化了 16K 的倍数,因为虚拟内存通常会随着内存页面的交换而变化,而不仅仅是随机位。出于某种原因,我认为这应该是 64 k 页,但我认为这取决于计算机和 Windows 版本。
Random thoughts from observations and what the display of Process explorer says.
Working set is in Physical Memory section of the display so anyone saying it is virtual memory is confused. And it changes by odd numbers as RAM usage would normally change so it looks like working set is physical memory.
Private Bytes on the other hand is listed as Virtual memory. And watching it change seems to change is multiples of 16K, as Virtual memory normally changes as it swaps out pages of memory and not just random bits. For some reason I thought this should be 64 k pages but depends on the machine and version of Windows I suppose.