通过查看帮助,返回了如下信息:

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 命令详解,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!

标签:
pmap,命令,详解

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
内蒙古资源网 Copyright www.nmgbbs.com

评论“linux中 pmap 命令详解”

暂无“linux中 pmap 命令详解”评论...

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。