리눅스 메모리 사용량 확인 세부 사항

리눅스 메모리 사용량 확인 세부 사항

메모리 사용량을 찾을 수 없지만 top에서는 다음 결과를 보여줍니다.

Tasks:  90 total,   2 running,  88 sleeping,   0 stopped,   0 zombie
Cpu(s): 21.1%us,  1.4%sy,  0.0%ni, 74.0%id,  2.4%wa,  0.0%hi,  1.0%si,  0.0%st
Mem:   8313376k total,  7969976k used,   343400k free,   185496k buffers
Swap:  4096564k total,       92k used,  4096472k free,  7511688k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+ COMMAND                                                                
28213 apache    15   0 48964  33m 3264 R 56.6  0.4   0:07.64 httpd                                                                  
25170 mysql     23   0  156m  39m 4688 S 37.3  0.5  83:34.76 mysqld                                                                 
 1469 root      10  -5     0    0    0 S  0.3  0.0  28:40.90 kjournald                                                              
25981 root      15   0 10192 2936 2352 S  0.3  0.0   0:00.69 sshd                                                                   
    1 root      15   0  2156  644  552 S  0.0  0.0   0:05.31 init

무료는 다음을 보여줍니다.

             total       used       free     shared    buffers     cached
Mem:          8118       7764        354          0        181       7335
-/+ buffers/cache:        247       7870
Swap:         4000          0       4000
Total:       12119       7764       4354

누구든지 상단 및 무료로 표시되는 메모리 사용량을 어떻게 찾을 수 있는지 알려주십시오.

답변1

무엇을 원하시는지 잘 모르겠지만 몇 가지 팁을 알려드리겠습니다.

cat /proc/meminfo
vmstat 1

답변2

에서http://www.linuxforums.org/articles/using-top-more-efficiently_89.html:-

VIRT :  Virtual Size of the task. This includes the size of process's executable binary, the data area and all the loaded shared libraries.
RES :   The size of RAM currently consumed by the task. Swapped out portion of the task is not included.
SHR :   Some memory areas could be shared between two or more task, this field reflects that shared areas. The example of shared area are shared library and SysV shared memory.

(오답 수정됨 - @mattdm에게 감사드립니다)

답변3

메모리는 Linux 커널에서 디스크 버퍼로 사용됩니다. 이는 정상적인 현상이며 걱정할 필요가 없습니다. 실행 중인 프로세스에 메모리가 필요한 경우 버퍼에서 사용할 수 있습니다. 보세요linuxatemyram.com자세한 내용은.

관련 정보