>  기사  >  운영 및 유지보수  >  Linux의 pmap 명령 예 분석

Linux의 pmap 명령 예 분석

黄舟
黄舟원래의
2017-09-30 11:12:182593검색

이 글은 주로 리눅스에서 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 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.