linux内存分析工具pmap

news/2024/11/23 17:08:16/

👦博主介绍:程序员悟啦(乌拉~)

个人仓库:码云

🔊座右铭:“懒”对一个人的毁灭性有多大,早起的重要性就多大

📚免责声明:文章由博主原创、部分文章整理于网络,仅供学习和知识分享

💬相遇是缘,既然来了就拎着小板凳🪑坐下来一起唠会儿👁‍🗨,如果在文中有所收获,请别忘了一键三连,动动你发财的小手👍,你的鼓励,是我创作的动力🤤!


文章目录

  • linux-内存分析工具pmap
    • pmap简介
    • 使用教程
    • 示例
      • 示例pmap -d 30242
      • 示例pmap -x 30242
      • 示例pmap -XX 30242

linux-内存分析工具pmap

pmap简介

pmap工具是linux的工具,能够查看进程用了多少内存,还能分析内存用在上面环节,对于一些长期占用内存居高不下的程序可以分析其行为,命令简单,信息简洁。

使用教程

[root@pmap ~]# pmap -hUsage:pmap [options] PID [PID ...]Options:-x, --extended              show details-X                          show even more detailsWARNING: 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 fileNOTE: 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 exitFor more details see pmap(1).

示例

说明:

  • Address: 内存开始地址
  • Kbytes: 占用内存的字节数(KB)
  • RSS: 保留内存的字节数(KB)
  • Dirty: 脏页的字节数(包括共享和私有的)(KB)
  • Mode: 内存的权限:read、write、execute、shared、private (写时复制)
  • Mapping: 占用内存的文件、或[anon](分配的内存)、或[stack](堆栈)
  • Offset: 文件偏移
  • Device: 设备名 (major:minor)

示例pmap -d 30242

查找进程id

[root@pmap ~]# top
top - 15:31:56 up 115 days,  5:34,  1 user,  load average: 0.05, 0.03, 0.05
Tasks:  82 total,   1 running,  81 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.5 us,  0.5 sy,  0.0 ni, 98.8 id,  0.2 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  3880948 total,  1491616 free,   197496 used,  2191836 buff/cache
KiB Swap:  4194300 total,  4031436 free,   162864 used.  3357968 avail MemPID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
30242 root      20   0 1137252  82100  11936 S   0.7  2.1   1115:13 YDService5586 root      20   0  161876   2228   1560 R   0.3  0.1   0:00.01 top

展示进程内存 - 设备信息

[root@pmap ~]# pmap -d 30242
30242:   /usr/local/dsjprs/pmap/YDEyes/YDService
Address           Kbytes Mode  Offset           Device    Mapping
0000000000400000   19416 r-x-- 0000000000000000 0fd:00001 YDService
00000000018f5000    6520 rw--- 00000000012f5000 0fd:00001 YDService
0000000001f53000     540 rw--- 0000000000000000 000:00000   [ anon ]
0000000002206000  181088 rw--- 0000000000000000 000:00000   [ anon ]
000000c000000000   65536 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d4445000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d4446000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d4c46000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d4c47000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d5447000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d5448000    8448 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d5c88000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d5c89000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d6489000    4096 rw-s- 0000000000000000 000:00007   [ anon ]
00007f42d6889000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d688a000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d708a000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d708b000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d788b000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d788c000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d808c000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d808d000    8448 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d88cd000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d88ce000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d90ce000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d90cf000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d98cf000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d98d0000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42da0d0000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42da0d1000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42da8d1000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42da8d2000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42db0d2000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42db0d3000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42db8d3000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42db8d4000    8448 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dc114000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42dc115000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dc915000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42dc916000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dd116000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42dd117000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dd917000      88 r-x-- 0000000000000000 0fd:00001 libresolv-2.17.so
00007f42dd92d000    2044 ----- 0000000000016000 0fd:00001 libresolv-2.17.so
00007f42ddb2c000       4 r---- 0000000000015000 0fd:00001 libresolv-2.17.so
00007f42ddb2d000       4 rw--- 0000000000016000 0fd:00001 libresolv-2.17.so
00007f42ddb2e000       8 rw--- 0000000000000000 000:00000   [ anon ]
00007f42ddb30000      20 r-x-- 0000000000000000 0fd:00001 libnss_dns-2.17.so
00007f42ddb35000    2048 ----- 0000000000005000 0fd:00001 libnss_dns-2.17.so
00007f42ddd35000       4 r---- 0000000000005000 0fd:00001 libnss_dns-2.17.so
00007f42ddd36000       4 rw--- 0000000000006000 0fd:00001 libnss_dns-2.17.so
00007f42ddd37000      48 r-x-- 0000000000000000 0fd:00001 libnss_files-2.17.so
00007f42ddd43000    2044 ----- 000000000000c000 0fd:00001 libnss_files-2.17.so
00007f42ddf42000       4 r---- 000000000000b000 0fd:00001 libnss_files-2.17.so
00007f42ddf43000       4 rw--- 000000000000c000 0fd:00001 libnss_files-2.17.so
00007f42ddf44000    1432 rw--- 0000000000000000 000:00000   [ anon ]
00007f42de0aa000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42de0ab000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42de8ab000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42de8ac000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42df0ac000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42df0ad000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42df8ad000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42df8ae000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42e00ae000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42e00af000   44100 rw--- 0000000000000000 000:00000   [ anon ]
00007f42e2bc0000  263680 ----- 0000000000000000 000:00000   [ anon ]
00007f42f2d40000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f42f2d41000  293564 ----- 0000000000000000 000:00000   [ anon ]
00007f4304bf0000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f4304bf1000   36692 ----- 0000000000000000 000:00000   [ anon ]
00007f4306fc6000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f4306fc7000    4068 ----- 0000000000000000 000:00000   [ anon ]
00007f43073c0000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f43073c1000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f4307bc1000    1800 r-x-- 0000000000000000 0fd:00001 libc-2.17.so
00007f4307d83000    2048 ----- 00000000001c2000 0fd:00001 libc-2.17.so
00007f4307f83000      16 r---- 00000000001c2000 0fd:00001 libc-2.17.so
00007f4307f87000       8 rw--- 00000000001c6000 0fd:00001 libc-2.17.so
00007f4307f89000      20 rw--- 0000000000000000 000:00000   [ anon ]
00007f4307f8e000      84 r-x-- 0000000000000000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f4307fa3000    2044 ----- 0000000000015000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f43081a2000       4 r---- 0000000000014000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f43081a3000       4 rw--- 0000000000015000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f43081a4000    1028 r-x-- 0000000000000000 0fd:00001 libm-2.17.so
00007f43082a5000    2044 ----- 0000000000101000 0fd:00001 libm-2.17.so
00007f43084a4000       4 r---- 0000000000100000 0fd:00001 libm-2.17.so
00007f43084a5000       4 rw--- 0000000000101000 0fd:00001 libm-2.17.so
00007f43084a6000     932 r-x-- 0000000000000000 0fd:00001 libstdc++.so.6.0.19
00007f430858f000    2048 ----- 00000000000e9000 0fd:00001 libstdc++.so.6.0.19
00007f430878f000      32 r---- 00000000000e9000 0fd:00001 libstdc++.so.6.0.19
00007f4308797000       8 rw--- 00000000000f1000 0fd:00001 libstdc++.so.6.0.19
00007f4308799000      84 rw--- 0000000000000000 000:00000   [ anon ]
00007f43087ae000      92 r-x-- 0000000000000000 0fd:00001 libpthread-2.17.so
00007f43087c5000    2044 ----- 0000000000017000 0fd:00001 libpthread-2.17.so
00007f43089c4000       4 r---- 0000000000016000 0fd:00001 libpthread-2.17.so
00007f43089c5000       4 rw--- 0000000000017000 0fd:00001 libpthread-2.17.so
00007f43089c6000      16 rw--- 0000000000000000 000:00000   [ anon ]
00007f43089ca000      28 r-x-- 0000000000000000 0fd:00001 librt-2.17.so
00007f43089d1000    2044 ----- 0000000000007000 0fd:00001 librt-2.17.so
00007f4308bd0000       4 r---- 0000000000006000 0fd:00001 librt-2.17.so
00007f4308bd1000       4 rw--- 0000000000007000 0fd:00001 librt-2.17.so
00007f4308bd2000       8 r-x-- 0000000000000000 0fd:00001 libdl-2.17.so
00007f4308bd4000    2048 ----- 0000000000002000 0fd:00001 libdl-2.17.so
00007f4308dd4000       4 r---- 0000000000002000 0fd:00001 libdl-2.17.so
00007f4308dd5000       4 rw--- 0000000000003000 0fd:00001 libdl-2.17.so
00007f4308dd6000     136 r-x-- 0000000000000000 0fd:00001 ld-2.17.so
00007f4308e08000     512 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308e88000     512 ----- 0000000000000000 000:00000   [ anon ]
00007f4308f08000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308f09000     508 ----- 0000000000000000 000:00000   [ anon ]
00007f4308f88000     408 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308ff4000      12 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308ff7000       4 r---- 0000000000021000 0fd:00001 ld-2.17.so
00007f4308ff8000       4 rw--- 0000000000022000 0fd:00001 ld-2.17.so
00007f4308ff9000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007ffeb9da0000     276 rw--- 0000000000000000 000:00000   [ stack ]
00007ffeb9df1000       8 r-x-- 0000000000000000 000:00000   [ anon ]
ffffffffff600000       4 r-x-- 0000000000000000 000:00000   [ anon ]
mapped: 1137256K    writeable/private: 489808K    shared: 4096K

最后一行的值

1.mapped 表示该进程映射的虚拟地址空间大小,也就是该进程预先分配的虚拟内存大小,即ps出的vsz

2.writeable/private 表示进程所占用的私有地址空间大小,也就是该进程实际使用的内存大小

3.shared 表示进程和其他进程共享的内存大小

不显示头尾行, 加 ‘-d’参数

[root@pmap ~]# pmap -d -q 30242
30242:   /usr/local/dsjprs/pamp/YDEyes/YDService
0000000000400000   19416 r-x-- 0000000000000000 0fd:00001 YDService
00000000018f5000    6520 rw--- 00000000012f5000 0fd:00001 YDService
0000000001f53000     540 rw--- 0000000000000000 000:00000   [ anon ]
0000000002206000  181088 rw--- 0000000000000000 000:00000   [ anon ]
000000c000000000   65536 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d4445000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d4446000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d4c46000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d4c47000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d5447000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d5448000    8448 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d5c88000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d5c89000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d6489000    4096 rw-s- 0000000000000000 000:00007   [ anon ]
00007f42d6889000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d688a000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d708a000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d708b000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d788b000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d788c000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d808c000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d808d000    8448 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d88cd000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d88ce000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d90ce000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d90cf000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42d98cf000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42d98d0000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42da0d0000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42da0d1000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42da8d1000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42da8d2000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42db0d2000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42db0d3000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42db8d3000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42db8d4000    8448 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dc114000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42dc115000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dc915000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42dc916000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dd116000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42dd117000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42dd917000      88 r-x-- 0000000000000000 0fd:00001 libresolv-2.17.so
00007f42dd92d000    2044 ----- 0000000000016000 0fd:00001 libresolv-2.17.so
00007f42ddb2c000       4 r---- 0000000000015000 0fd:00001 libresolv-2.17.so
00007f42ddb2d000       4 rw--- 0000000000016000 0fd:00001 libresolv-2.17.so
00007f42ddb2e000       8 rw--- 0000000000000000 000:00000   [ anon ]
00007f42ddb30000      20 r-x-- 0000000000000000 0fd:00001 libnss_dns-2.17.so
00007f42ddb35000    2048 ----- 0000000000005000 0fd:00001 libnss_dns-2.17.so
00007f42ddd35000       4 r---- 0000000000005000 0fd:00001 libnss_dns-2.17.so
00007f42ddd36000       4 rw--- 0000000000006000 0fd:00001 libnss_dns-2.17.so
00007f42ddd37000      48 r-x-- 0000000000000000 0fd:00001 libnss_files-2.17.so
00007f42ddd43000    2044 ----- 000000000000c000 0fd:00001 libnss_files-2.17.so
00007f42ddf42000       4 r---- 000000000000b000 0fd:00001 libnss_files-2.17.so
00007f42ddf43000       4 rw--- 000000000000c000 0fd:00001 libnss_files-2.17.so
00007f42ddf44000    1432 rw--- 0000000000000000 000:00000   [ anon ]
00007f42de0aa000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42de0ab000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42de8ab000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42de8ac000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42df0ac000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42df0ad000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42df8ad000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42df8ae000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f42e00ae000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f42e00af000   44100 rw--- 0000000000000000 000:00000   [ anon ]
00007f42e2bc0000  263680 ----- 0000000000000000 000:00000   [ anon ]
00007f42f2d40000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f42f2d41000  293564 ----- 0000000000000000 000:00000   [ anon ]
00007f4304bf0000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f4304bf1000   36692 ----- 0000000000000000 000:00000   [ anon ]
00007f4306fc6000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f4306fc7000    4068 ----- 0000000000000000 000:00000   [ anon ]
00007f43073c0000       4 ----- 0000000000000000 000:00000   [ anon ]
00007f43073c1000    8192 rw--- 0000000000000000 000:00000   [ anon ]
00007f4307bc1000    1800 r-x-- 0000000000000000 0fd:00001 libc-2.17.so
00007f4307d83000    2048 ----- 00000000001c2000 0fd:00001 libc-2.17.so
00007f4307f83000      16 r---- 00000000001c2000 0fd:00001 libc-2.17.so
00007f4307f87000       8 rw--- 00000000001c6000 0fd:00001 libc-2.17.so
00007f4307f89000      20 rw--- 0000000000000000 000:00000   [ anon ]
00007f4307f8e000      84 r-x-- 0000000000000000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f4307fa3000    2044 ----- 0000000000015000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f43081a2000       4 r---- 0000000000014000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f43081a3000       4 rw--- 0000000000015000 0fd:00001 libgcc_s-4.8.5-20150702.so.1
00007f43081a4000    1028 r-x-- 0000000000000000 0fd:00001 libm-2.17.so
00007f43082a5000    2044 ----- 0000000000101000 0fd:00001 libm-2.17.so
00007f43084a4000       4 r---- 0000000000100000 0fd:00001 libm-2.17.so
00007f43084a5000       4 rw--- 0000000000101000 0fd:00001 libm-2.17.so
00007f43084a6000     932 r-x-- 0000000000000000 0fd:00001 libstdc++.so.6.0.19
00007f430858f000    2048 ----- 00000000000e9000 0fd:00001 libstdc++.so.6.0.19
00007f430878f000      32 r---- 00000000000e9000 0fd:00001 libstdc++.so.6.0.19
00007f4308797000       8 rw--- 00000000000f1000 0fd:00001 libstdc++.so.6.0.19
00007f4308799000      84 rw--- 0000000000000000 000:00000   [ anon ]
00007f43087ae000      92 r-x-- 0000000000000000 0fd:00001 libpthread-2.17.so
00007f43087c5000    2044 ----- 0000000000017000 0fd:00001 libpthread-2.17.so
00007f43089c4000       4 r---- 0000000000016000 0fd:00001 libpthread-2.17.so
00007f43089c5000       4 rw--- 0000000000017000 0fd:00001 libpthread-2.17.so
00007f43089c6000      16 rw--- 0000000000000000 000:00000   [ anon ]
00007f43089ca000      28 r-x-- 0000000000000000 0fd:00001 librt-2.17.so
00007f43089d1000    2044 ----- 0000000000007000 0fd:00001 librt-2.17.so
00007f4308bd0000       4 r---- 0000000000006000 0fd:00001 librt-2.17.so
00007f4308bd1000       4 rw--- 0000000000007000 0fd:00001 librt-2.17.so
00007f4308bd2000       8 r-x-- 0000000000000000 0fd:00001 libdl-2.17.so
00007f4308bd4000    2048 ----- 0000000000002000 0fd:00001 libdl-2.17.so
00007f4308dd4000       4 r---- 0000000000002000 0fd:00001 libdl-2.17.so
00007f4308dd5000       4 rw--- 0000000000003000 0fd:00001 libdl-2.17.so
00007f4308dd6000     136 r-x-- 0000000000000000 0fd:00001 ld-2.17.so
00007f4308e08000     512 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308e88000     512 ----- 0000000000000000 000:00000   [ anon ]
00007f4308f08000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308f09000     508 ----- 0000000000000000 000:00000   [ anon ]
00007f4308f88000     408 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308ff4000      12 rw--- 0000000000000000 000:00000   [ anon ]
00007f4308ff7000       4 r---- 0000000000021000 0fd:00001 ld-2.17.so
00007f4308ff8000       4 rw--- 0000000000022000 0fd:00001 ld-2.17.so
00007f4308ff9000       4 rw--- 0000000000000000 000:00000   [ anon ]
00007ffeb9da0000     276 rw--- 0000000000000000 000:00000   [ stack ]
00007ffeb9df1000       8 r-x-- 0000000000000000 000:00000   [ anon ]
ffffffffff600000       4 r-x-- 0000000000000000 000:00000   [ anon ] 

Linux的思想是一切皆文件,那么进程对应的内存也是保存在文件系统中的,虽然/proc目录是一个伪文件系统; 该文件从/proc/pid/maps中获得数据。

[root@pmap ~]# cat /proc/30242/maps
00400000-016f6000 r-xp 00000000 fd:01 545991                             /usr/local/dsjprs/pamp/YDEyes/YDService
018f5000-01f53000 rw-p 012f5000 fd:01 545991                             /usr/local/dsjprs/pamp/YDEyes/YDService
01f53000-01fda000 rw-p 00000000 00:00 0
02206000-0d2de000 rw-p 00000000 00:00 0                                  [heap]
c000000000-c004000000 rw-p 00000000 00:00 0
7f42d4445000-7f42d4446000 ---p 00000000 00:00 0
7f42d4446000-7f42d4c46000 rw-p 00000000 00:00 0
7f42d4c46000-7f42d4c47000 ---p 00000000 00:00 0
7f42d4c47000-7f42d5447000 rw-p 00000000 00:00 0
7f42d5447000-7f42d5448000 ---p 00000000 00:00 0
7f42d5448000-7f42d5c88000 rw-p 00000000 00:00 0
7f42d5c88000-7f42d5c89000 ---p 00000000 00:00 0
7f42d5c89000-7f42d6489000 rw-p 00000000 00:00 0
7f42d6489000-7f42d6889000 rw-s 00000000 00:07 34628688                   socket:[34628688]
7f42d6889000-7f42d688a000 ---p 00000000 00:00 0
7f42d688a000-7f42d708a000 rw-p 00000000 00:00 0
7f42d708a000-7f42d708b000 ---p 00000000 00:00 0
7f42d708b000-7f42d788b000 rw-p 00000000 00:00 0
7f42d788b000-7f42d788c000 ---p 00000000 00:00 0
7f42d788c000-7f42d808c000 rw-p 00000000 00:00 0
7f42d808c000-7f42d808d000 ---p 00000000 00:00 0
7f42d808d000-7f42d88cd000 rw-p 00000000 00:00 0
7f42d88cd000-7f42d88ce000 ---p 00000000 00:00 0
7f42d88ce000-7f42d90ce000 rw-p 00000000 00:00 0
7f42d90ce000-7f42d90cf000 ---p 00000000 00:00 0
7f42d90cf000-7f42d98cf000 rw-p 00000000 00:00 0
7f42d98cf000-7f42d98d0000 ---p 00000000 00:00 0
7f42d98d0000-7f42da0d0000 rw-p 00000000 00:00 0
7f42da0d0000-7f42da0d1000 ---p 00000000 00:00 0
7f42da0d1000-7f42da8d1000 rw-p 00000000 00:00 0
7f42da8d1000-7f42da8d2000 ---p 00000000 00:00 0
7f42da8d2000-7f42db0d2000 rw-p 00000000 00:00 0
7f42db0d2000-7f42db0d3000 ---p 00000000 00:00 0
7f42db0d3000-7f42db8d3000 rw-p 00000000 00:00 0
7f42db8d3000-7f42db8d4000 ---p 00000000 00:00 0
7f42db8d4000-7f42dc114000 rw-p 00000000 00:00 0
7f42dc114000-7f42dc115000 ---p 00000000 00:00 0
7f42dc115000-7f42dc915000 rw-p 00000000 00:00 0
7f42dc915000-7f42dc916000 ---p 00000000 00:00 0
7f42dc916000-7f42dd116000 rw-p 00000000 00:00 0
7f42dd116000-7f42dd117000 ---p 00000000 00:00 0
7f42dd117000-7f42dd917000 rw-p 00000000 00:00 0
7f42dd917000-7f42dd92d000 r-xp 00000000 fd:01 265652                     /usr/lib64/libresolv-2.17.so
7f42dd92d000-7f42ddb2c000 ---p 00016000 fd:01 265652                     /usr/lib64/libresolv-2.17.so
7f42ddb2c000-7f42ddb2d000 r--p 00015000 fd:01 265652                     /usr/lib64/libresolv-2.17.so
7f42ddb2d000-7f42ddb2e000 rw-p 00016000 fd:01 265652                     /usr/lib64/libresolv-2.17.so
7f42ddb2e000-7f42ddb30000 rw-p 00000000 00:00 0
7f42ddb30000-7f42ddb35000 r-xp 00000000 fd:01 265640                     /usr/lib64/libnss_dns-2.17.so
7f42ddb35000-7f42ddd35000 ---p 00005000 fd:01 265640                     /usr/lib64/libnss_dns-2.17.so
7f42ddd35000-7f42ddd36000 r--p 00005000 fd:01 265640                     /usr/lib64/libnss_dns-2.17.so
7f42ddd36000-7f42ddd37000 rw-p 00006000 fd:01 265640                     /usr/lib64/libnss_dns-2.17.so
7f42ddd37000-7f42ddd43000 r-xp 00000000 fd:01 265642                     /usr/lib64/libnss_files-2.17.so
7f42ddd43000-7f42ddf42000 ---p 0000c000 fd:01 265642                     /usr/lib64/libnss_files-2.17.so
7f42ddf42000-7f42ddf43000 r--p 0000b000 fd:01 265642                     /usr/lib64/libnss_files-2.17.so
7f42ddf43000-7f42ddf44000 rw-p 0000c000 fd:01 265642                     /usr/lib64/libnss_files-2.17.so
7f42ddf44000-7f42de0aa000 rw-p 00000000 00:00 0
7f42de0aa000-7f42de0ab000 ---p 00000000 00:00 0
7f42de0ab000-7f42de8ab000 rw-p 00000000 00:00 0
7f42de8ab000-7f42de8ac000 ---p 00000000 00:00 0
7f42de8ac000-7f42df0ac000 rw-p 00000000 00:00 0
7f42df0ac000-7f42df0ad000 ---p 00000000 00:00 0
7f42df0ad000-7f42df8ad000 rw-p 00000000 00:00 0
7f42df8ad000-7f42df8ae000 ---p 00000000 00:00 0
7f42df8ae000-7f42e00ae000 rw-p 00000000 00:00 0
7f42e00ae000-7f42e00af000 ---p 00000000 00:00 0
7f42e00af000-7f42e2bc0000 rw-p 00000000 00:00 0
7f42e2bc0000-7f42f2d40000 ---p 00000000 00:00 0
7f42f2d40000-7f42f2d41000 rw-p 00000000 00:00 0
7f42f2d41000-7f4304bf0000 ---p 00000000 00:00 0
7f4304bf0000-7f4304bf1000 rw-p 00000000 00:00 0
7f4304bf1000-7f4306fc6000 ---p 00000000 00:00 0
7f4306fc6000-7f4306fc7000 rw-p 00000000 00:00 0
7f4306fc7000-7f43073c0000 ---p 00000000 00:00 0
7f43073c0000-7f43073c1000 ---p 00000000 00:00 0
7f43073c1000-7f4307bc1000 rw-p 00000000 00:00 0
7f4307bc1000-7f4307d83000 r-xp 00000000 fd:01 265624                     /usr/lib64/libc-2.17.so
7f4307d83000-7f4307f83000 ---p 001c2000 fd:01 265624                     /usr/lib64/libc-2.17.so
7f4307f83000-7f4307f87000 r--p 001c2000 fd:01 265624                     /usr/lib64/libc-2.17.so
7f4307f87000-7f4307f89000 rw-p 001c6000 fd:01 265624                     /usr/lib64/libc-2.17.so
7f4307f89000-7f4307f8e000 rw-p 00000000 00:00 0
7f4307f8e000-7f4307fa3000 r-xp 00000000 fd:01 266389                     /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f4307fa3000-7f43081a2000 ---p 00015000 fd:01 266389                     /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f43081a2000-7f43081a3000 r--p 00014000 fd:01 266389                     /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f43081a3000-7f43081a4000 rw-p 00015000 fd:01 266389                     /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f43081a4000-7f43082a5000 r-xp 00000000 fd:01 265632                     /usr/lib64/libm-2.17.so
7f43082a5000-7f43084a4000 ---p 00101000 fd:01 265632                     /usr/lib64/libm-2.17.so
7f43084a4000-7f43084a5000 r--p 00100000 fd:01 265632                     /usr/lib64/libm-2.17.so
7f43084a5000-7f43084a6000 rw-p 00101000 fd:01 265632                     /usr/lib64/libm-2.17.so
7f43084a6000-7f430858f000 r-xp 00000000 fd:01 265950                     /usr/lib64/libstdc++.so.6.0.19
7f430858f000-7f430878f000 ---p 000e9000 fd:01 265950                     /usr/lib64/libstdc++.so.6.0.19
7f430878f000-7f4308797000 r--p 000e9000 fd:01 265950                     /usr/lib64/libstdc++.so.6.0.19
7f4308797000-7f4308799000 rw-p 000f1000 fd:01 265950                     /usr/lib64/libstdc++.so.6.0.19
7f4308799000-7f43087ae000 rw-p 00000000 00:00 0
7f43087ae000-7f43087c5000 r-xp 00000000 fd:01 265650                     /usr/lib64/libpthread-2.17.so
7f43087c5000-7f43089c4000 ---p 00017000 fd:01 265650                     /usr/lib64/libpthread-2.17.so
7f43089c4000-7f43089c5000 r--p 00016000 fd:01 265650                     /usr/lib64/libpthread-2.17.so
7f43089c5000-7f43089c6000 rw-p 00017000 fd:01 265650                     /usr/lib64/libpthread-2.17.so
7f43089c6000-7f43089ca000 rw-p 00000000 00:00 0
7f43089ca000-7f43089d1000 r-xp 00000000 fd:01 265654                     /usr/lib64/librt-2.17.so
7f43089d1000-7f4308bd0000 ---p 00007000 fd:01 265654                     /usr/lib64/librt-2.17.so
7f4308bd0000-7f4308bd1000 r--p 00006000 fd:01 265654                     /usr/lib64/librt-2.17.so
7f4308bd1000-7f4308bd2000 rw-p 00007000 fd:01 265654                     /usr/lib64/librt-2.17.so
7f4308bd2000-7f4308bd4000 r-xp 00000000 fd:01 265630                     /usr/lib64/libdl-2.17.so
7f4308bd4000-7f4308dd4000 ---p 00002000 fd:01 265630                     /usr/lib64/libdl-2.17.so
7f4308dd4000-7f4308dd5000 r--p 00002000 fd:01 265630                     /usr/lib64/libdl-2.17.so
7f4308dd5000-7f4308dd6000 rw-p 00003000 fd:01 265630                     /usr/lib64/libdl-2.17.so
7f4308dd6000-7f4308df8000 r-xp 00000000 fd:01 265617                     /usr/lib64/ld-2.17.so
7f4308e08000-7f4308e88000 rw-p 00000000 00:00 0
7f4308e88000-7f4308f08000 ---p 00000000 00:00 0
7f4308f08000-7f4308f09000 rw-p 00000000 00:00 0
7f4308f09000-7f4308f88000 ---p 00000000 00:00 0
7f4308f88000-7f4308fee000 rw-p 00000000 00:00 0
7f4308ff4000-7f4308ff7000 rw-p 00000000 00:00 0
7f4308ff7000-7f4308ff8000 r--p 00021000 fd:01 265617                     /usr/lib64/ld-2.17.so
7f4308ff8000-7f4308ff9000 rw-p 00022000 fd:01 265617                     /usr/lib64/ld-2.17.so
7f4308ff9000-7f4308ffa000 rw-p 00000000 00:00 0
7ffeb9da0000-7ffeb9de5000 rw-p 00000000 00:00 0                          [stack]
7ffeb9df1000-7ffeb9df3000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

示例pmap -x 30242

展示进程内存 - 拓展信息

[root@pmap ~]# pmap -x 30242
30242:   /usr/local/dsjprs/pamp/YDEyes/YDService
Address           Kbytes     RSS   Dirty Mode  Mapping
0000000000400000   19416    4964       0 r-x-- YDService  # YDService 代码段
00000000018f5000    6520    2252     112 rw--- YDService  # YDService 数据段
0000000001f53000     540     220     220 rw---   [ anon ] 
0000000002206000  181088   62384   61208 rw---   [ anon ] # YDService 堆(分配的内存)
000000c000000000   65536    3780    3760 rw---   [ anon ]
00007f42d4445000       4       0       0 -----   [ anon ]
00007f42d4446000    8192      20      20 rw---   [ anon ]
00007f42d4c46000       4       0       0 -----   [ anon ]
00007f42d4c47000    8192      12      12 rw---   [ anon ]
00007f42d5447000       4       0       0 -----   [ anon ]
00007f42d5448000    8448      88      88 rw---   [ anon ]
00007f42d5c88000       4       0       0 -----   [ anon ]
00007f42d5c89000    8192      32      32 rw---   [ anon ]
00007f42d6489000    4096    4096    1024 rw-s-   [ anon ]
00007f42d6889000       4       0       0 -----   [ anon ]
00007f42d688a000    8192      20      20 rw---   [ anon ]
00007f42d708a000       4       0       0 -----   [ anon ]
00007f42d708b000    8192      16      16 rw---   [ anon ]
00007f42d788b000       4       0       0 -----   [ anon ]
00007f42d788c000    8192      16      16 rw---   [ anon ]
00007f42d808c000       4       0       0 -----   [ anon ]
00007f42d808d000    8448      68      68 rw---   [ anon ]
00007f42d88cd000       4       0       0 -----   [ anon ]
00007f42d88ce000    8192      32      32 rw---   [ anon ]
00007f42d90ce000       4       0       0 -----   [ anon ]
00007f42d90cf000    8192      32      32 rw---   [ anon ]
00007f42d98cf000       4       0       0 -----   [ anon ]
00007f42d98d0000    8192       0       0 rw---   [ anon ]
00007f42da0d0000       4       0       0 -----   [ anon ]
00007f42da0d1000    8192       0       0 rw---   [ anon ]
00007f42da8d1000       4       0       0 -----   [ anon ]
00007f42da8d2000    8192      32      32 rw---   [ anon ]
00007f42db0d2000       4       0       0 -----   [ anon ]
00007f42db0d3000    8192      32      32 rw---   [ anon ]
00007f42db8d3000       4       0       0 -----   [ anon ]
00007f42db8d4000    8448     156     156 rw---   [ anon ]
00007f42dc114000       4       0       0 -----   [ anon ]
00007f42dc115000    8192      20      20 rw---   [ anon ]
00007f42dc915000       4       0       0 -----   [ anon ]
00007f42dc916000    8192      16      16 rw---   [ anon ]
00007f42dd116000       4       0       0 -----   [ anon ]
00007f42dd117000    8192      12      12 rw---   [ anon ]
00007f42dd917000      88      32       0 r-x-- libresolv-2.17.so
00007f42dd92d000    2044       0       0 ----- libresolv-2.17.so
00007f42ddb2c000       4       4       4 r---- libresolv-2.17.so
00007f42ddb2d000       4       4       4 rw--- libresolv-2.17.so
00007f42ddb2e000       8       0       0 rw---   [ anon ]
00007f42ddb30000      20      12       0 r-x-- libnss_dns-2.17.so
00007f42ddb35000    2048       0       0 ----- libnss_dns-2.17.so
00007f42ddd35000       4       4       4 r---- libnss_dns-2.17.so
00007f42ddd36000       4       4       4 rw--- libnss_dns-2.17.so
00007f42ddd37000      48      20       0 r-x-- libnss_files-2.17.so
00007f42ddd43000    2044       0       0 ----- libnss_files-2.17.so
00007f42ddf42000       4       4       4 r---- libnss_files-2.17.so
00007f42ddf43000       4       4       4 rw--- libnss_files-2.17.so
00007f42ddf44000    1432     356      32 rw---   [ anon ]
00007f42de0aa000       4       0       0 -----   [ anon ]
00007f42de0ab000    8192       0       0 rw---   [ anon ]
00007f42de8ab000       4       0       0 -----   [ anon ]
00007f42de8ac000    8192       8       8 rw---   [ anon ]
00007f42df0ac000       4       0       0 -----   [ anon ]
00007f42df0ad000    8192       8       8 rw---   [ anon ]
00007f42df8ad000       4       0       0 -----   [ anon ]
00007f42df8ae000    8192      28      28 rw---   [ anon ]
00007f42e00ae000       4       0       0 -----   [ anon ]
00007f42e00af000   44100    2376    2376 rw---   [ anon ]
00007f42e2bc0000  263680       0       0 -----   [ anon ]
00007f42f2d40000       4       4       4 rw---   [ anon ]
00007f42f2d41000  293564       0       0 -----   [ anon ]
00007f4304bf0000       4       4       4 rw---   [ anon ]
00007f4304bf1000   36692       0       0 -----   [ anon ]
00007f4306fc6000       4       4       4 rw---   [ anon ]
00007f4306fc7000    4068       0       0 -----   [ anon ]
00007f43073c0000       4       0       0 -----   [ anon ]
00007f43073c1000    8192      32      32 rw---   [ anon ]
00007f4307bc1000    1800     580       0 r-x-- libc-2.17.so
00007f4307d83000    2048       0       0 ----- libc-2.17.so
00007f4307f83000      16      16      12 r---- libc-2.17.so
00007f4307f87000       8       8       8 rw--- libc-2.17.so
00007f4307f89000      20      20      20 rw---   [ anon ]
00007f4307f8e000      84       0       0 r-x-- libgcc_s-4.8.5-20150702.so.1
00007f4307fa3000    2044       0       0 ----- libgcc_s-4.8.5-20150702.so.1
00007f43081a2000       4       0       0 r---- libgcc_s-4.8.5-20150702.so.1
00007f43081a3000       4       0       0 rw--- libgcc_s-4.8.5-20150702.so.1
00007f43081a4000    1028       0       0 r-x-- libm-2.17.so
00007f43082a5000    2044       0       0 ----- libm-2.17.so
00007f43084a4000       4       0       0 r---- libm-2.17.so
00007f43084a5000       4       0       0 rw--- libm-2.17.so
00007f43084a6000     932     156       0 r-x-- libstdc++.so.6.0.19
00007f430858f000    2048       0       0 ----- libstdc++.so.6.0.19
00007f430878f000      32      20      16 r---- libstdc++.so.6.0.19
00007f4308797000       8       8       8 rw--- libstdc++.so.6.0.19
00007f4308799000      84      12      12 rw---   [ anon ]
00007f43087ae000      92      44       0 r-x-- libpthread-2.17.so
00007f43087c5000    2044       0       0 ----- libpthread-2.17.so
00007f43089c4000       4       4       4 r---- libpthread-2.17.so
00007f43089c5000       4       4       4 rw--- libpthread-2.17.so
00007f43089c6000      16       4       4 rw---   [ anon ]
00007f43089ca000      28       0       0 r-x-- librt-2.17.so
00007f43089d1000    2044       0       0 ----- librt-2.17.so
00007f4308bd0000       4       0       0 r---- librt-2.17.so
00007f4308bd1000       4       0       0 rw--- librt-2.17.so
00007f4308bd2000       8       0       0 r-x-- libdl-2.17.so
00007f4308bd4000    2048       0       0 ----- libdl-2.17.so
00007f4308dd4000       4       0       0 r---- libdl-2.17.so
00007f4308dd5000       4       0       0 rw--- libdl-2.17.so
00007f4308dd6000     136       8       0 r-x-- ld-2.17.so
00007f4308e08000     512     328     328 rw---   [ anon ]
00007f4308e88000     512       0       0 -----   [ anon ]
00007f4308f08000       4       4       4 rw---   [ anon ]
00007f4308f09000     508       0       0 -----   [ anon ]
00007f4308f88000     408      60      48 rw---   [ anon ]
00007f4308ff4000      12       8       8 rw---   [ anon ]
00007f4308ff7000       4       4       4 r---- ld-2.17.so
00007f4308ff8000       4       4       4 rw--- ld-2.17.so
00007f4308ff9000       4       4       0 rw---   [ anon ]
00007ffeb9da0000     276      28      28 rw---   [ stack ]
00007ffeb9df1000       8       4       0 r-x--   [ anon ]
ffffffffff600000       4       0       0 r-x--   [ anon ]
---------------- ------- ------- -------
total kB         1137256   82536   69960

示例pmap -XX 30242

展示进程内存 - 所有信息

[root@pmap ~]# pmap -XX 30242
30242:   /usr/local/dsjprs/pamp/YDEyes/YDServiceAddress Perm   Offset Device    Inode    Size   Rss   Pss Shared_Clean Shared_Dirty Private_Clean Private_Dirty Referenced Anonymous AnonHugePages   Swap KernelPageSize MMUPageSize Locked                      VmFlagsMapping00400000 r-xp 00000000  fd:01   545991   19416  4964  4964            0            0          4964             0       4964         0             0      0              4           4      0       rd ex mr mw me dw sd  YDService018f5000 rw-p 012f5000  fd:01   545991    6520  2252  2252            0            0          2140           112       2252       120             0     28              4           4      0    rd wr mr mw me dw ac sd  YDService01f53000 rw-p 00000000  00:00        0     540   220   220            0            0             0           220        220       220             0     36              4           4      0       rd wr mr mw me ac sd02206000 rw-p 00000000  00:00        0  181088 62384 62384            0            0          1176         61208      62248     62384             0 118704              4           4      0       rd wr mr mw me ac sd  [heap]c000000000 rw-p 00000000  00:00        0   65536  4120  4120            0            0            20          4100       4120      4120             0   1012              4           4      0       rd wr mr mw me ac sd7f42d4445000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d4446000 rw-p 00000000  00:00        0    8192    20    20            0            0             0            20         20        20             0      0              4           4      0       rd wr mr mw me ac sd7f42d4c46000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d4c47000 rw-p 00000000  00:00        0    8192    12    12            0            0             0            12         12        12             0      8              4           4      0       rd wr mr mw me ac sd7f42d5447000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d5448000 rw-p 00000000  00:00        0    8448    88    88            0            0             0            88         88        88             0     28              4           4      0       rd wr mr mw me ac sd7f42d5c88000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d5c89000 rw-p 00000000  00:00        0    8192    32    32            0            0             0            32         32        32             0      4              4           4      0       rd wr mr mw me ac sd7f42d6489000 rw-s 00000000  00:07 34628688    4096  4096  2560         3072            0             0          1024       4096         0             0      0              4           4      0 rd wr sh mr mw me ms sd mm  socket:[34628688]7f42d6889000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d688a000 rw-p 00000000  00:00        0    8192    20    20            0            0             0            20         20        20             0      0              4           4      0       rd wr mr mw me ac sd7f42d708a000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d708b000 rw-p 00000000  00:00        0    8192    16    16            0            0             0            16         16        16             0      4              4           4      0       rd wr mr mw me ac sd7f42d788b000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d788c000 rw-p 00000000  00:00        0    8192    16    16            0            0             0            16         16        16             0      4              4           4      0       rd wr mr mw me ac sd7f42d808c000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d808d000 rw-p 00000000  00:00        0    8448    68    68            0            0             0            68         68        68             0      4              4           4      0       rd wr mr mw me ac sd7f42d88cd000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d88ce000 rw-p 00000000  00:00        0    8192    32    32            0            0             0            32         32        32             0      4              4           4      0       rd wr mr mw me ac sd7f42d90ce000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d90cf000 rw-p 00000000  00:00        0    8192    32    32            0            0             0            32         32        32             0      4              4           4      0       rd wr mr mw me ac sd7f42d98cf000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42d98d0000 rw-p 00000000  00:00        0    8192     0     0            0            0             0             0          0         0             0      8              4           4      0       rd wr mr mw me ac sd7f42da0d0000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42da0d1000 rw-p 00000000  00:00        0    8192     0     0            0            0             0             0          0         0             0      8              4           4      0       rd wr mr mw me ac sd7f42da8d1000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42da8d2000 rw-p 00000000  00:00        0    8192    32    32            0            0             0            32         32        32             0      4              4           4      0       rd wr mr mw me ac sd7f42db0d2000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42db0d3000 rw-p 00000000  00:00        0    8192    32    32            0            0             0            32         32        32             0      4              4           4      0       rd wr mr mw me ac sd7f42db8d3000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42db8d4000 rw-p 00000000  00:00        0    8448   156   156            0            0             0           156        156       156             0      8              4           4      0       rd wr mr mw me ac sd7f42dc114000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42dc115000 rw-p 00000000  00:00        0    8192    20    20            0            0             0            20         20        20             0      0              4           4      0       rd wr mr mw me ac sd7f42dc915000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42dc916000 rw-p 00000000  00:00        0    8192    16    16            0            0             0            16         16        16             0      0              4           4      0       rd wr mr mw me ac sd7f42dd116000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42dd117000 rw-p 00000000  00:00        0    8192    12    12            0            0             0            12         12        12             0      0              4           4      0       rd wr mr mw me ac sd7f42dd917000 r-xp 00000000  fd:01   265652      88    32     7           32            0             0             0         32         0             0      0              4           4      0          rd ex mr mw me sd  libresolv-2.17.so7f42dd92d000 ---p 00016000  fd:01   265652    2044     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libresolv-2.17.so7f42ddb2c000 r--p 00015000  fd:01   265652       4     4     4            0            0             0             4          4         4             0      0              4           4      0          rd mr mw me ac sd  libresolv-2.17.so7f42ddb2d000 rw-p 00016000  fd:01   265652       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd  libresolv-2.17.so7f42ddb2e000 rw-p 00000000  00:00        0       8     0     0            0            0             0             0          0         0             0      0              4           4      0       rd wr mr mw me ac sd7f42ddb30000 r-xp 00000000  fd:01   265640      20    12     3           12            0             0             0         12         0             0      0              4           4      0          rd ex mr mw me sd  libnss_dns-2.17.so7f42ddb35000 ---p 00005000  fd:01   265640    2048     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libnss_dns-2.17.so7f42ddd35000 r--p 00005000  fd:01   265640       4     4     4            0            0             0             4          4         4             0      0              4           4      0          rd mr mw me ac sd  libnss_dns-2.17.so7f42ddd36000 rw-p 00006000  fd:01   265640       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd  libnss_dns-2.17.so7f42ddd37000 r-xp 00000000  fd:01   265642      48    20     2           20            0             0             0         20         0             0      0              4           4      0          rd ex mr mw me sd  libnss_files-2.17.so7f42ddd43000 ---p 0000c000  fd:01   265642    2044     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libnss_files-2.17.so7f42ddf42000 r--p 0000b000  fd:01   265642       4     4     4            0            0             0             4          4         4             0      0              4           4      0          rd mr mw me ac sd  libnss_files-2.17.so7f42ddf43000 rw-p 0000c000  fd:01   265642       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd  libnss_files-2.17.so7f42ddf44000 rw-p 00000000  00:00        0    1432   356   356            0            0           324            32        356       356             0    960              4           4      0       rd wr mr mw me ac sd7f42de0aa000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42de0ab000 rw-p 00000000  00:00        0    8192     0     0            0            0             0             0          0         0             0      8              4           4      0       rd wr mr mw me ac sd7f42de8ab000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42de8ac000 rw-p 00000000  00:00        0    8192     8     8            0            0             0             8          8         8             0      4              4           4      0       rd wr mr mw me ac sd7f42df0ac000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42df0ad000 rw-p 00000000  00:00        0    8192     8     8            0            0             0             8          8         8             0      0              4           4      0       rd wr mr mw me ac sd7f42df8ad000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42df8ae000 rw-p 00000000  00:00        0    8192    28    28            0            0             0            28         28        28             0      8              4           4      0       rd wr mr mw me ac sd7f42e00ae000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f42e00af000 rw-p 00000000  00:00        0   44100  2376  2376            0            0             0          2376       2376      2376          2048    124              4           4      0       rd wr mr mw me ac sd7f42e2bc0000 ---p 00000000  00:00        0  263680     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd7f42f2d40000 rw-p 00000000  00:00        0       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd7f42f2d41000 ---p 00000000  00:00        0  293564     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd7f4304bf0000 rw-p 00000000  00:00        0       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd7f4304bf1000 ---p 00000000  00:00        0   36692     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd7f4306fc6000 rw-p 00000000  00:00        0       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd7f4306fc7000 ---p 00000000  00:00        0    4068     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd7f43073c0000 ---p 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0             mr mw me ac sd7f43073c1000 rw-p 00000000  00:00        0    8192    32    32            0            0             0            32         32        32             0      0              4           4      0       rd wr mr mw me ac sd7f4307bc1000 r-xp 00000000  fd:01   265624    1800   580    68          580            0             0             0        580         0             0      0              4           4      0          rd ex mr mw me sd  libc-2.17.so7f4307d83000 ---p 001c2000  fd:01   265624    2048     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libc-2.17.so7f4307f83000 r--p 001c2000  fd:01   265624      16    16    16            0            0             4            12         16        16             0      0              4           4      0          rd mr mw me ac sd  libc-2.17.so7f4307f87000 rw-p 001c6000  fd:01   265624       8     8     8            0            0             0             8          8         8             0      0              4           4      0       rd wr mr mw me ac sd  libc-2.17.so7f4307f89000 rw-p 00000000  00:00        0      20    20    20            0            0             0            20         20        20             0      0              4           4      0       rd wr mr mw me ac sd7f4307f8e000 r-xp 00000000  fd:01   266389      84     0     0            0            0             0             0          0         0             0      0              4           4      0          rd ex mr mw me sd  libgcc_s-4.8.5-20150702.so.17f4307fa3000 ---p 00015000  fd:01   266389    2044     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libgcc_s-4.8.5-20150702.so.17f43081a2000 r--p 00014000  fd:01   266389       4     0     0            0            0             0             0          0         0             0      4              4           4      0          rd mr mw me ac sd  libgcc_s-4.8.5-20150702.so.17f43081a3000 rw-p 00015000  fd:01   266389       4     0     0            0            0             0             0          0         0             0      4              4           4      0       rd wr mr mw me ac sd  libgcc_s-4.8.5-20150702.so.17f43081a4000 r-xp 00000000  fd:01   265632    1028     0     0            0            0             0             0          0         0             0      0              4           4      0          rd ex mr mw me sd  libm-2.17.so7f43082a5000 ---p 00101000  fd:01   265632    2044     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libm-2.17.so7f43084a4000 r--p 00100000  fd:01   265632       4     0     0            0            0             0             0          0         0             0      4              4           4      0          rd mr mw me ac sd  libm-2.17.so7f43084a5000 rw-p 00101000  fd:01   265632       4     0     0            0            0             0             0          0         0             0      4              4           4      0       rd wr mr mw me ac sd  libm-2.17.so7f43084a6000 r-xp 00000000  fd:01   265950     932   156   146           20            0           136             0        156         0             0      0              4           4      0          rd ex mr mw me sd  libstdc++.so.6.0.197f430858f000 ---p 000e9000  fd:01   265950    2048     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libstdc++.so.6.0.197f430878f000 r--p 000e9000  fd:01   265950      32    20    20            0            0             4            16         20        20             0     12              4           4      0          rd mr mw me ac sd  libstdc++.so.6.0.197f4308797000 rw-p 000f1000  fd:01   265950       8     8     8            0            0             0             8          8         8             0      0              4           4      0       rd wr mr mw me ac sd  libstdc++.so.6.0.197f4308799000 rw-p 00000000  00:00        0      84    12    12            0            0             0            12         12        12             0      4              4           4      0       rd wr mr mw me ac sd7f43087ae000 r-xp 00000000  fd:01   265650      92    44     4           44            0             0             0         44         0             0      0              4           4      0          rd ex mr mw me sd  libpthread-2.17.so7f43087c5000 ---p 00017000  fd:01   265650    2044     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libpthread-2.17.so7f43089c4000 r--p 00016000  fd:01   265650       4     4     4            0            0             0             4          4         4             0      0              4           4      0          rd mr mw me ac sd  libpthread-2.17.so7f43089c5000 rw-p 00017000  fd:01   265650       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd  libpthread-2.17.so7f43089c6000 rw-p 00000000  00:00        0      16     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd7f43089ca000 r-xp 00000000  fd:01   265654      28     0     0            0            0             0             0          0         0             0      0              4           4      0          rd ex mr mw me sd  librt-2.17.so7f43089d1000 ---p 00007000  fd:01   265654    2044     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  librt-2.17.so7f4308bd0000 r--p 00006000  fd:01   265654       4     0     0            0            0             0             0          0         0             0      4              4           4      0          rd mr mw me ac sd  librt-2.17.so7f4308bd1000 rw-p 00007000  fd:01   265654       4     0     0            0            0             0             0          0         0             0      4              4           4      0       rd wr mr mw me ac sd  librt-2.17.so7f4308bd2000 r-xp 00000000  fd:01   265630       8     0     0            0            0             0             0          0         0             0      0              4           4      0          rd ex mr mw me sd  libdl-2.17.so7f4308bd4000 ---p 00002000  fd:01   265630    2048     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd  libdl-2.17.so7f4308dd4000 r--p 00002000  fd:01   265630       4     0     0            0            0             0             0          0         0             0      4              4           4      0          rd mr mw me ac sd  libdl-2.17.so7f4308dd5000 rw-p 00003000  fd:01   265630       4     0     0            0            0             0             0          0         0             0      4              4           4      0       rd wr mr mw me ac sd  libdl-2.17.so7f4308dd6000 r-xp 00000000  fd:01   265617     136     8     1            8            0             0             0          8         0             0      0              4           4      0       rd ex mr mw me dw sd  ld-2.17.so7f4308e08000 rw-p 00000000  00:00        0     512   328   328            0            0             0           328        328       328             0     12              4           4      0       rd wr mr mw me ac sd7f4308e88000 ---p 00000000  00:00        0     512     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd7f4308f08000 rw-p 00000000  00:00        0       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd wr mr mw me ac sd7f4308f09000 ---p 00000000  00:00        0     508     0     0            0            0             0             0          0         0             0      0              4           4      0                mr mw me sd7f4308f88000 rw-p 00000000  00:00        0     408    60    60            0            0            12            48         60        60             0     12              4           4      0       rd wr mr mw me ac sd7f4308ff4000 rw-p 00000000  00:00        0      12     8     8            0            0             0             8          8         8             0      4              4           4      0       rd wr mr mw me ac sd7f4308ff7000 r--p 00021000  fd:01   265617       4     4     4            0            0             0             4          4         4             0      0              4           4      0       rd mr mw me dw ac sd  ld-2.17.so7f4308ff8000 rw-p 00022000  fd:01   265617       4     4     4            0            0             0             4          4         4             0      0              4           4      0    rd wr mr mw me dw ac sd  ld-2.17.so7f4308ff9000 rw-p 00000000  00:00        0       4     4     4            0            0             4             0          4         4             0      0              4           4      0       rd wr mr mw me ac sd7ffeb9da0000 rw-p 00000000  00:00        0     276    28    28            0            0             0            28         28        28             0     16              4           4      0       rd wr mr mw me gd ac  [stack]7ffeb9df1000 r-xp 00000000  00:00        0       8     4     0            4            0             0             0          4         0             0      0              4           4      0       rd ex mr mw me de sd  [vdso]
ffffffffff600000 r-xp 00000000  00:00        0       4     0     0            0            0             0             0          0         0             0      0              4           4      0                      rd ex  [vsyscall]======= ===== ===== ============ ============ ============= ============= ========== ========= ============= ====== ============== =========== ======1137256 82876 80717         3788            0          8788         70300      82740     70828          2048 121068            476         476      0 KB

如在文中有所收获,请点赞👍+关注,传统美德不能丢🙌



http://www.ppmy.cn/news/159093.html

相关文章

微型计算机d3000,微机实验

SSTACK SEGMENT STACK DW 64 DUP(?) SSTACK ENDS PUBLIC XH, XL, YH, YL, ZH, ZL ;设置全局变量 DATA SEGMENT XL DW ? ;X低位 XH DW ? ;X高位 YL DW ? ;Y低位 YH DW ? ;Y高位 ZL DW ? ;Z低位 ZH DW ? ;Z高位 DATA ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA START: MO…

微型计算机d3000,微机(二次)消谐(多功能)

一、装置概述 HH-KXD3000系列“多功能微机消谐装置”适用于0.38kV&#xff5e;66kV的中性点不接地的电力系统。当系统发生铁磁谐振时&#xff0c;不但可以迅速消除铁磁谐振&#xff0c;还可以对谐振过电压、单相接地作出指示。 装置采用32位ARM芯片作为检测、控制的核心元件&am…

微型计算机d3000,13级仪表微机重点解读.doc

13级仪表微机重点解读 第1章 1、微型计算机的组成 2、数值之间的转换 1)非十进制数到十进制数的转换 2)十进制到非十进制数的转换 3)二进制与十六进制数之间的转换 3、原码&#xff0c;反码&#xff0c;补码的求法 原码:最高位为符号位(用“0”表示正&#xff0c;用“1”表示负…

C++ 中的时间测试与空间申请

C 中的时间测试 在各种 oj 平台做题的时候&#xff0c;经常会出现时间要求&#xff0c;即你的算法复杂度一般不能太高&#xff0c;否则会超时。 同时&#xff0c;在CCF考试中&#xff0c;练超时都不会告诉你&#xff0c;考试的时候不会出程序结果&#xff0c;因此&#xff0…

Nginx: error while loading shared libraries: libpcre.so.1解决

Shell代码 [roottmsapp65 conf]# /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 确认已经安装PCRE: Shell代码 [ew69SCLABHADOOP01 lib]$ cd /l…

java socket tcpservice_Consumres正在等待使用Java ExecutorService运行

我有一个生产者和多个消费者的样品。生产者将事件放入阻塞队列。消费者从队列中获取消息,然后将其插入数据库。这工作了很多天。 然而,它昨天下降了好几次,制片人被封锁,当时交通非常困难。 我用 jstack EnterClassData-Consumer-Service 所有线程都在等待运行 ConsumeMessageT…

联想计算机不能进入系统桌面,win10电脑开机后进不了系统桌面只有联想logo

情况一&#xff1a; 如果是黑屏时转圈&#xff0c;安全模式也进不去&#xff0c;反复强行关机还是不行&#xff0c;可以试着拔掉鼠标接口&#xff0c;再换个USB接口。 情况二&#xff1a;Win10更新显卡驱动程序后无法开机 为了让电脑的显示效果变得更好&#xff0c;很多win10系…

mysql数据库error1046_MYSQL error28000报错及error1046报错相关指南

首先出现 ERROR 1045 (28000)&#xff1a;Access denied for user rootlocalhost (using password: NO) (拒绝访问用户“root”“localhost”(使用密码:NO)) 此时提醒你需要输入密码才可进入数据库&#xff0c;使用mysql -u root -p之后提示输入密码&#xff0c;成功输入密码后…