gpt4 book ai didi

windows - 帮助我了解 Process Explorer 中的这些内存统计信息

转载 作者:可可西里 更新时间:2023-11-01 09:42:46 27 4
gpt4 key购买 nike

我正在尝试对我的大型财务计算运行所需的内存量进行非常粗略的测量。它是一个非常简单的命令行工具,可以为大量金融工具定价,然后打印出结果。

我决定使用 Process Explorer 查看程序的内存需求。有人可以解释一下屏幕截图中标记为 a 和 b 的两个字段之间的区别吗:

我目前认为:

标记为“a”(峰值专用字节数)的值是在任何瞬间分配给进程的最大内存量(磁盘上的实际物理内存和虚拟内存)。

标记为“b”(Peal Working Set)的值是进程生命周期中任何时刻分配的最大物理内存量。

alt text

最佳答案

来自 here :

The working set is the set of memory pages that were touched recently by the threads in the process. If free memory in the computer is above a threshold, pages are left in the working set of a process, even if they are not in use. When free memory falls below a threshold, pages are trimmed from working sets. If the pages are needed, they will be soft-faulted back into the working set before leaving main memory.

[Private bytes are] bytes, that this process has allocated that cannot be shared with other processes.

在这种情况下,“峰值”的含义应该很明显。

关于windows - 帮助我了解 Process Explorer 中的这些内存统计信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1439239/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com