gpt4 book ai didi

c++ - [heap] 或 [anon] 在 memps 输出中意味着什么

转载 作者:太空狗 更新时间:2023-10-29 20:40:48 26 4
gpt4 key购买 nike

当我为其中一个进程运行 memps 命令时,我得到以下行(以及其他行)作为输出。

S(CODE)  S(DATA)  P(CODE)  P(DATA)  3D(RSS)  3D(PSS)   ADDR(start-end)OBJECT NAME
-------- -------- -------- -------- ------- --------- -----------------------------
0 0 0 1592 0 0 b8ca6000-b8e54000 [heap]
0 404 0 404 0 0 b8bdc000-b8ca6000 [heap]
0 0 0 4 0 0 b6fb5000-b6fb6000 [anon]
0 0 0 20 0 0 b6fb0000-b6fb5000 [anon]

我输出的最后一列中的 [heap] 和 [anon] 是什么意思。

最佳答案

          o  Anonymous memory: Memory  not  relating  to  any
named object or file within the file system is
reported as [ anon ].

The pmap command displays common names for cer-
tain known anonymous memory mappings, such as:

[ heap ]
The process heap.

[ stack ]
The process stack.

If the common name for the mapping is unknown,
pmap displays [ anon ] as the mapping name.

source

还有2个pdf here

您可能应该为此使用更通用的关键字,因为您使用的实用程序只是 memtool 套件的一部分。下次尝试使用类似“memtool anon” 的关键字作为搜索关键字。

关于c++ - [heap] 或 [anon] 在 memps 输出中意味着什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22659085/

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