1 Reply Latest reply: Aug 5, 2011 2:54 PM by frederichb RSS

    interpretating Anon and [anon] in pmap -x output

    Alex12
      Hi Everyone,
      I'm confused by pmap -x output for some time: there is a Anon column and multiple [anon] rows for Mapped file column. They refers to different things, I guess, because there are mapped files, such as libc.so.1, that has a non-zero value for Anon column; and there are rows which are mapped to [ anon ] but no value is displayed in Anon column.

      In the maual, it says:
      Anon is The number of pages of anonymous memory associated with the specified mapping
      Memory not relating to any named object or file within the file system is reported as [ anon ]

      I'm kind of confused. Could anyone clarify this a bit?

      <pre>
      # pmap -x 13918
      13918: -sh
      Address Kbytes RSS Anon Locked Mode Mapped File
      00010000 88 88 - - r-x-- sh
      00036000 8 8 - - rwx-- sh
      00038000 16 16 16 - rwx-- [ heap ]
      FF200000 1208 1208 - - r-x-- libc.so.1
      FF33E000 40 40 32 - rwx-- libc.so.1
      FF348000 8 8 - - rwx-- libc.so.1
      FF350000 24 24 - - r-x-- libgen.so.1
      FF366000 8 8 - - rwx-- libgen.so.1
      FF380000 8 8 8 - rwx-- [ anon ]
      FF390000 24 16 8 - rwx-- [ anon ]
      FF3A0000 8 8 - - r-x-- libc_psr.so.1
      FF3B0000 208 208 - - r-x-- ld.so.1
      FF3F0000 8 8 - - rwxs- [ anon ]
      FF3F4000 8 8 8 - rwx-- ld.so.1
      FF3F6000 8 8 8 - rwx-- ld.so.1
      FFBFE000 8 8 8 - rw--- [ stack ]

      total Kb 1680 1672 88 -
      </pre>

      Your help is highly appreciated.

      Alex

      Edited by: 824616 on 30-Dec-2010 12:05 PM

      Edited by: 824616 on 30-Dec-2010 12:09 PM