登录  /  注册
首页 > 运维 > linux运维 > 正文

linux中关于pmap的命令实例分析

黄舟
发布: 2017-09-30 11:12:18
原创
2386人浏览过

这篇文章主要介绍了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的命令实例分析的详细内容,更多请关注php中文网其它相关文章!

智能AI问答
PHP中文网智能助手能迅速回答你的编程问题,提供实时的代码和解决方案,帮助你解决各种难题。不仅如此,它还能提供编程资源和学习指导,帮助你快速提升编程技能。无论你是初学者还是专业人士,AI智能助手都能成为你的可靠助手,助力你在编程领域取得更大的成就。
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号