Linux2017. 5. 10. 16:49

봐도 모르겠다 -ㅁ-

VIRT는 해당 프로그램에서 사용하는 전체 메모리 용량을 지칭하는 것 같고

(공유 메모리, 스택, 힙, 다이나믹 라이브러리 등등등)

RES는 스왑등에 의해서 내려지고 남은 "실제 물리 메모리에 적재된" 용량을 의미하는 것 같다.


VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it has mapped into itself (for instance the video card’s RAM for the X server), files on disk that have been mapped into it (most notably shared libraries), and memory shared with other processes. VIRT represents how much memory the program is able to access at the present moment.


RES stands for the resident size, which is an accurate representation of how much actual physical memory a process is consuming. (This also corresponds directly to the %MEM column.) This will virtually always be less than the VIRT size, since most programs depend on the C library.


SHR indicates how much of the VIRT size is actually sharable (memory or libraries). In the case of libraries, it does not necessarily mean that the entire library is resident. For example, if a program only uses a few functions in a library, the whole library is mapped and will be counted in VIRT and SHR, but only the parts of the library file containing the functions being used will actually be loaded in and be counted under RES. 

[링크 : http://mugurel.sumanariu.ro/linux/the-difference-among-virt-res-and-shr-in-top-output/]

    [링크 : https://serverfault.com/questions/138427/top-what-does-virtual-memory-size-mean-linux-ubuntu]

'Linux' 카테고리의 다른 글

limits.conf와 ulimit  (0) 2017.08.24
elf 파일에서 컴파일러 버전 알아내기  (0) 2017.06.07
cpulimit 백그라운드 실행 이유  (0) 2017.05.10
wget 로그인 정보 설정  (0) 2017.04.17
원격지 mac address 얻기  (0) 2017.03.13
Posted by 구차니