
{"id":5314,"date":"2011-07-12T12:03:30","date_gmt":"2011-07-12T12:03:30","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=5314"},"modified":"2011-07-12T12:03:30","modified_gmt":"2011-07-12T12:03:30","slug":"pmap-report-memory-map-of-a-process","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/07\/12\/pmap-report-memory-map-of-a-process\/","title":{"rendered":"pmap &#8211; report memory map of a process"},"content":{"rendered":"<h5><u> A UNIX Command <\/u><\/h5>\n<pre>\n$pmap 2307 | more\n2307:   bash\n0000000000400000    868K r-x--  \/bin\/bash\n00000000006d9000     36K rw---  \/bin\/bash\n00000000006e2000     24K rw---    [ anon ]\n00000000010b9000    304K rw---    [ anon ]\n00007f1e4c89b000     44K r-x--  \/lib\/libnss_files-2.13.so\n00007f1e4c8a6000   2044K -----  \/lib\/libnss_files-2.13.so\n00007f1e4caa5000      4K r----  \/lib\/libnss_files-2.13.so\n00007f1e4caa6000      4K rw---  \/lib\/libnss_files-2.13.so\n00007f1e4caa7000     40K r-x--  \/lib\/libnss_nis-2.13.so\n00007f1e4cab1000   2044K -----  \/lib\/libnss_nis-2.13.so\n00007f1e4ccb0000      4K r----  \/lib\/libnss_nis-2.13.so\n00007f1e4ccb1000      4K rw---  \/lib\/libnss_nis-2.13.so\n00007f1e4ccb2000     84K r-x--  \/lib\/libnsl-2.13.so\n00007f1e4ccc7000   2044K -----  \/lib\/libnsl-2.13.so\n00007f1e4cec6000      4K r----  \/lib\/libnsl-2.13.so\n00007f1e4cec7000      4K rw---  \/lib\/libnsl-2.13.so\n00007f1e4cec8000      8K rw---    [ anon ]\n00007f1e4ceca000     28K r-x--  \/lib\/libnss_compat-2.13.so\n00007f1e4ced1000   2044K -----  \/lib\/libnss_compat-2.13.so\n00007f1e4d0d0000      4K r----  \/lib\/libnss_compat-2.13.so\n00007f1e4d0d1000      4K rw---  \/lib\/libnss_compat-2.13.so\n00007f1e4d0d2000 106700K r----  \/usr\/lib\/locale\/locale-archive\n00007f1e53905000   1512K r-x--  \/lib\/libc-2.13.so\n00007f1e53a7f000   2044K -----  \/lib\/libc-2.13.so\n00007f1e53c7e000     16K r----  \/lib\/libc-2.13.so\n00007f1e53c82000      4K rw---  \/lib\/libc-2.13.so\n00007f1e53c83000     20K rw---    [ anon ]\n00007f1e53c88000      8K r-x--  \/lib\/libdl-2.13.so\n00007f1e53c8a000   2048K -----  \/lib\/libdl-2.13.so\n00007f1e53e8a000      4K r----  \/lib\/libdl-2.13.so\n--More--\n\n$pmap -d 2307 | more\n2307:   bash\nAddress           Kbytes Mode  Offset           Device    Mapping\n0000000000400000     868 r-x-- 0000000000000000 008:00001 bash\n00000000006d9000      36 rw--- 00000000000d9000 008:00001 bash\n00000000006e2000      24 rw--- 0000000000000000 000:00000   [ anon ]\n00000000010b9000     304 rw--- 0000000000000000 000:00000   [ anon ]\n00007f1e4c89b000      44 r-x-- 0000000000000000 008:00001 libnss_files-2.13.so\n00007f1e4c8a6000    2044 ----- 000000000000b000 008:00001 libnss_files-2.13.so\n00007f1e4caa5000       4 r---- 000000000000a000 008:00001 libnss_files-2.13.so\n00007f1e4caa6000       4 rw--- 000000000000b000 008:00001 libnss_files-2.13.so\n00007f1e4caa7000      40 r-x-- 0000000000000000 008:00001 libnss_nis-2.13.so\n00007f1e4cab1000    2044 ----- 000000000000a000 008:00001 libnss_nis-2.13.so\n00007f1e4ccb0000       4 r---- 0000000000009000 008:00001 libnss_nis-2.13.so\n00007f1e4ccb1000       4 rw--- 000000000000a000 008:00001 libnss_nis-2.13.so\n00007f1e4ccb2000      84 r-x-- 0000000000000000 008:00001 libnsl-2.13.so\n00007f1e4ccc7000    2044 ----- 0000000000015000 008:00001 libnsl-2.13.so\n00007f1e4cec6000       4 r---- 0000000000014000 008:00001 libnsl-2.13.so\n00007f1e4cec7000       4 rw--- 0000000000015000 008:00001 libnsl-2.13.so\n00007f1e4cec8000       8 rw--- 0000000000000000 000:00000   [ anon ]\n\n<\/pre>\n<p><\/p>\n<h5><u> UNIX Explanation <\/u><\/h5>\n<p>The pmap command  reports the memory map of  a process or<br \/>\nprocesses.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A UNIX Command $pmap 2307 | more 2307: bash 0000000000400000 868K r-x&#8211; \/bin\/bash 00000000006d9000 36K rw&#8212; \/bin\/bash 00000000006e2000 24K rw&#8212; [ anon ] 00000000010b9000 304K rw&#8212; [ anon ] 00007f1e4c89b000 44K r-x&#8211; \/lib\/libnss_files-2.13.so 00007f1e4c8a6000 2044K &#8212;&#8211; \/lib\/libnss_files-2.13.so 00007f1e4caa5000 4K r&#8212;- \/lib\/libnss_files-2.13.so 00007f1e4caa6000 4K rw&#8212; \/lib\/libnss_files-2.13.so 00007f1e4caa7000 40K r-x&#8211; \/lib\/libnss_nis-2.13.so 00007f1e4cab1000 2044K &#8212;&#8211; \/lib\/libnss_nis-2.13.so 00007f1e4ccb0000 4K &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2011\/07\/12\/pmap-report-memory-map-of-a-process\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;pmap &#8211; report memory map of a process&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[1111,1274,1301,1308],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5314"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=5314"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5314\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=5314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=5314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=5314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}