linux中 pmap 命令詳解
更新時間:2017年09月29日 14:19:03 作者:idiotcoder
這篇文章主要介紹了linux中 pmap 命令詳解,需要的朋友可以參考下
通過查看幫助,返回了如下信息:
Usage: pmap [options] pid [pid ...]
Options:
-x, --extended show details
-X show even more details
WARNING: format changes according to /proc/PID/smaps
-XX show everything the kernel provides
-c, --read-rc read the default rc
-C, --read-rc-from=<file> read the rc from file
-n, --create-rc create new default rc
-N, --create-rc-to=<file> create new rc to file
NOTE: pid arguments are not allowed with -n, -N
-d, --device show the device format
-q, --quiet do not display header and footer
-p, --show-path show path in the mapping
-A, --range=<low>[,<high>] limit results to the given range
-h, --help display this help and exit -V, --version output version information and exit
For more details see pmap(1).
然后列出某個進程(PID:8868)的信息時如下:
pmap -x 8868 Address Kbytes RSS Dirty Mode Mapping 00007f789ec2d000 1668 1384 0 r-x-- libc-2.19.so 00007f789edce000 2048 0 0 ----- libc-2.19.so 00007f789efce000 16 16 16 r---- libc-2.19.so 00007f789efd2000 8 8 8 rw--- libc-2.19.so 00000000020e0000 4008 4008 4008 rw--- [ anon ] 00007f787c000000 132 24 24 rw--- [ anon ] 00007f787c021000 65404 0 0 ----- [ anon ] 00007f7880000000 132 12 12 rw--- [ anon ] 00007f7880021000 65404 0 0 ----- [ anon ] 00007f7884000000 148 92 92 rw--- [ anon ] 00007f7884025000 65388 0 0 ----- [ anon ]
以上列表項的含義如下:
Address: 內存分配地址
Kbytes: 實際分配的內存大小
RSS: 程序實際占用的內存大小
Mapping: 分配該內存的模塊的名稱
總結
以上所述是小編給大家介紹的linux中 pmap 命令詳解,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!
您可能感興趣的文章:
相關文章
linux下數(shù)據(jù)壓縮的幾種方法與查看方式(示例代碼)
這篇文章主要介紹了linux下數(shù)據(jù)壓縮的幾種方法與查看方式,本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下2019-10-10
linux shell實現(xiàn)批量主機遠程執(zhí)行命令腳本
這篇文章主要介紹了linux shell實現(xiàn)批量主機遠程執(zhí)行命令腳本,文章通過代碼示例講解的非常詳細,對大家的學習或工作有一定的幫助,需要的朋友可以參考下2024-09-09

