본문 바로가기

컴퓨터 & 프로그래밍/VirtualBox.Ubuntu

리눅스에서 프로세스의 메모리 정보 보기

/proc/[pid]/smaps (since Linux 2.6.14) This file shows memory consumption for each of the process's mappings. For each of mappings there is a series of lines such as the following: 08048000-080bc000 r-xp 00000000 03:02 13130 /bin/bash Size: 464 kB Rss: 424 kB Shared_Clean: 424 kB Shared_Dirty: 0 kB Private_Clean: 0 kB Private_Dirty: 0 kB The first of these lines shows the same information as is displayed for the mapping in /proc/[pid]/maps. The remaining lines show the size of the mapping, the amount of the mapping that is currently resident in RAM, the number of clean and dirty shared pages in the mapping, and the number of clean and dirty private pages in the mapping. This file is only present if the CONFIG_MMU kernel configuration option is enabled. 출처: http://www.kernel.org/doc/man-pages/online/pages/man5/proc.5.html