[heap]或[anon]在memps输出中意味着什么?

What does [heap] or [anon] means in memps output

本文关键字:意味着 什么 输出 heap anon memps      更新时间:2023-10-16

当我为其中一个进程运行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.

这里也有两个pdf

您可能应该为此使用更通用的关键字,因为您正在使用的实用程序只是memtool套件的一部分。下次试试像"memtool anon"这样的关键词作为你的搜索。