pmap – report memory map of a process

A UNIX Command
$pmap 2307 | more
2307:   bash
0000000000400000    868K r-x--  /bin/bash
00000000006d9000     36K rw---  /bin/bash
00000000006e2000     24K rw---    [ anon ]
00000000010b9000    304K rw---    [ anon ]
00007f1e4c89b000     44K r-x--  /lib/libnss_files-2.13.so
00007f1e4c8a6000   2044K -----  /lib/libnss_files-2.13.so
00007f1e4caa5000      4K r----  /lib/libnss_files-2.13.so
00007f1e4caa6000      4K rw---  /lib/libnss_files-2.13.so
00007f1e4caa7000     40K r-x--  /lib/libnss_nis-2.13.so
00007f1e4cab1000   2044K -----  /lib/libnss_nis-2.13.so
00007f1e4ccb0000      4K r----  /lib/libnss_nis-2.13.so
00007f1e4ccb1000      4K rw---  /lib/libnss_nis-2.13.so
00007f1e4ccb2000     84K r-x--  /lib/libnsl-2.13.so
00007f1e4ccc7000   2044K -----  /lib/libnsl-2.13.so
00007f1e4cec6000      4K r----  /lib/libnsl-2.13.so
00007f1e4cec7000      4K rw---  /lib/libnsl-2.13.so
00007f1e4cec8000      8K rw---    [ anon ]
00007f1e4ceca000     28K r-x--  /lib/libnss_compat-2.13.so
00007f1e4ced1000   2044K -----  /lib/libnss_compat-2.13.so
00007f1e4d0d0000      4K r----  /lib/libnss_compat-2.13.so
00007f1e4d0d1000      4K rw---  /lib/libnss_compat-2.13.so
00007f1e4d0d2000 106700K r----  /usr/lib/locale/locale-archive
00007f1e53905000   1512K r-x--  /lib/libc-2.13.so
00007f1e53a7f000   2044K -----  /lib/libc-2.13.so
00007f1e53c7e000     16K r----  /lib/libc-2.13.so
00007f1e53c82000      4K rw---  /lib/libc-2.13.so
00007f1e53c83000     20K rw---    [ anon ]
00007f1e53c88000      8K r-x--  /lib/libdl-2.13.so
00007f1e53c8a000   2048K -----  /lib/libdl-2.13.so
00007f1e53e8a000      4K r----  /lib/libdl-2.13.so
--More--

$pmap -d 2307 | more
2307:   bash
Address           Kbytes Mode  Offset           Device    Mapping
0000000000400000     868 r-x-- 0000000000000000 008:00001 bash
00000000006d9000      36 rw--- 00000000000d9000 008:00001 bash
00000000006e2000      24 rw--- 0000000000000000 000:00000   [ anon ]
00000000010b9000     304 rw--- 0000000000000000 000:00000   [ anon ]
00007f1e4c89b000      44 r-x-- 0000000000000000 008:00001 libnss_files-2.13.so
00007f1e4c8a6000    2044 ----- 000000000000b000 008:00001 libnss_files-2.13.so
00007f1e4caa5000       4 r---- 000000000000a000 008:00001 libnss_files-2.13.so
00007f1e4caa6000       4 rw--- 000000000000b000 008:00001 libnss_files-2.13.so
00007f1e4caa7000      40 r-x-- 0000000000000000 008:00001 libnss_nis-2.13.so
00007f1e4cab1000    2044 ----- 000000000000a000 008:00001 libnss_nis-2.13.so
00007f1e4ccb0000       4 r---- 0000000000009000 008:00001 libnss_nis-2.13.so
00007f1e4ccb1000       4 rw--- 000000000000a000 008:00001 libnss_nis-2.13.so
00007f1e4ccb2000      84 r-x-- 0000000000000000 008:00001 libnsl-2.13.so
00007f1e4ccc7000    2044 ----- 0000000000015000 008:00001 libnsl-2.13.so
00007f1e4cec6000       4 r---- 0000000000014000 008:00001 libnsl-2.13.so
00007f1e4cec7000       4 rw--- 0000000000015000 008:00001 libnsl-2.13.so
00007f1e4cec8000       8 rw--- 0000000000000000 000:00000   [ anon ]

UNIX Explanation

The pmap command reports the memory map of a process or
processes.

 

Leave a Reply

Your email address will not be published. Required fields are marked *