원문 링크
http://www.redhat.com/advice/tips/meminfo.html

Tips & Tricks
Featured Article: /proc/meminfo Explained


"Free," "buffer," "swap," "dirty." What does it all mean? If you said, "something to do with the Summer of '68", you may need a primer on 'meminfo'.
"Free," "buffer," "swap," "dirty." 그것은 모두 무엇을 의미하는가? 만약 당신이 "68년 여름과 함께할 수 있는 무언가"를 말한다면, 당신에겐 'meminfo' 초급서가 필요할 수 있습니다.

The entries in the /proc/meminfo can help explain what's going on with your memory usage, if you know how to read it.
당신이 /proc/meminfo 읽는 법을 안다면, /proc/meminfo의 엔트리는 메모리 사용하는 동안 무슨 일이 일어나고 있는지에 대한 설명을 도와줄 수 있습니다.
Example of "cat /proc/meminfo":

root:    total:        used:        free:          shared:    buffers:    cached:
Mem:      1055760384    1041887232    13873152    0    100417536     711233536
Swap:     1077501952      8540160     1068961792
                       

MemTotal:        1031016 kB   
MemFree:        13548 kB
MemShared:        0 kB
Buffers:        98064 kB
Cached:            692320 kB
SwapCached:        2244 kB
Active:            563112 kB
Inact_dirty:        309584 kB
Inact_clean:        79508 kB
Inact_target:        190440 kB
HighTotal:        130992 kB
HighFree:        1876 kB
LowTotal:        900024 kB
LowFree:        11672 kB
SwapTotal:        1052248 kB
SwapFree:        1043908 kB
Committed_AS:        332340 kB
                       

The information comes in the form of both high-level and low-level statistics. At the top you see a quick summary of the most common values people would like to look at. Below you find the individual values we will discuss. First we will discuss the high-level statistics.
High-Level Statistics
그 정보는 high-level과 low-level 통계 형태로 제공됩니다. 최상단에서 당신은 사람들이 보고 싶어하는 가장 공통적인 값의 빠른 요약을 봅니다. 당신이 찾은 개개의 값인 아래 내용으로 우리는 토론할 것입니다. 첫번째로 우리는 high-level 통계에 대해 토론할 것입니다.

    MemTotal: Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code)
    MemTotal: 사용할 수 있는 전체 ram (일부 예약된 비트와 커널 바이너리 코드를 뺀 물리 ram)


    MemFree: Is sum of LowFree+HighFree (overall stat)
    MemFree: LowFree+HighFree 합 (전체 합계)


    MemShared: 0; is here for compat reasons but always zero.
    MemShared: 0; compat한 이유가 있으나 항상 0.


    Buffers: Memory in buffer cache. mostly useless as metric nowadays
    Buffers: buffer cache 메모리. 오늘날 측정 기준으로 대개 쓸모없음


    Cached: Memory in the pagecache (diskcache) minus SwapCache
    Cached: SwapCache를 뺀 pagecache (diskcache) 메모리


    SwapCache: Memory that once was swapped out, is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O)
    SwapCache: 한 번 스왑아웃된 메모리, 이는 스왑백되나 여전히 swapfile에 있습니다 (만약 메모리가 필요하다면 이미 swapfile에 있기 때문에 다시 스왑아웃될 필요 없습니다.)


Detailed Level Statistics
자세한 레벨 통계

VM Statistics
VM 통계

VM splits the cache pages into "active" and "inactive" memory. The idea is that if you need memory and some cache needs to be sacrificed for that, you take it from inactive since that's expected to be not used. The vm checks what is used on a regular basis and moves stuff around.
VM은 cache page를 "active"와 "inactive" 메모리로 분할합니다. 이 아이디어는 이렇습니다. 당신이 메모리를 필요로 하고 몇몇 cache가 희생될 필요가 있다면, 사용되지 않을 것으로 예상되는 때부터 얻습니다.

When you use memory, the CPU sets a bit in the pagetable and the VM checks that bit occasionally, and based on that, it can move pages back to active. And within active there's an order of "longest ago not used" (roughly, it's a little more complex in reality). The longest-ago used ones can get moved to inactive. Inactive is split into two in the above kernel (2.4.18-24.8.0). Some have it three.
메모리를 사용할 때, CPU는 페이지테이블에 비트를 설정하고 VM은 때때로 비트를 검사하고, 그 기반으로, 메모리는 페이지를 active로 이동시킵니다. 그리고 active 내에서 "가장 오랫동안 사용되지 않은" 순서(대략, 그것은 실제로 조금 더 복잡합니다)가 존재합니다. 가장 오래 사용된 것은 inactive로 이동될 수 있습니다. Inactive는 커널 (2.4.18-24.8.0) 상위 버전에서 둘로 분할됩니다. 일부는 셋을 갖습니다.

    Active: Memory that has been used more recently and usually not reclaimed unless absolutely necessary.
    Active: 더욱 최근에 사용되면서 반드시 필요한 경우를 제외하고는 일반적으로 reclaim되지 않는 메모리


    Inact_dirty: Dirty means "might need writing to disk or swap." Takes more work to free. Examples might be files that have not been written to yet. They aren't written to memory too soon in order to keep the I/O down. For instance, if you're writing logs, it might be better to wait until you have a complete log ready before sending it to disk.
    Inact_dirty: Dirty는 "디스크에 write하거나 스왑이 필요할 수 있음"을 의미합니다. free하기 위하여 더 많은 작업을 합니다. 예로 아직 write되지 않은 파일이 될 수 있습니다.

    Inact_clean: Assumed to be easily freeable. The kernel will try to keep some clean stuff around always / to have a bit of breathing room.
    Inact_clean: 쉽게 free될 수 있도록 가정됨. 커널은 breathing room(a short rest in the middle of a busy period)의 비트를 항상 갖기 위해 몇몇 clean stuff 주위를 지키는 시도를 할 것입니다.

※ breathing room - a short rest in the middle of a busy period:
I've got very little breathing room in my afternoon schedule.


    Inact_target: Just a goal metric the kernel uses for making sure there are enough inactive pages around.
    Inact_target:  커널이 주변에 충분한 inactive 페이지가 있는지 확인하기 위하여 사용하는 목표 측정 기준.

When exceeded, the kernel will not do work to move pages from active to inactive.
초과할 때, 커널은 active에서 inactive로 페이지를 이동시키는 작업을 하지 않을 것입니다.

A page can also get inactive in a few other ways, e.g. if you do a long sequential I/O, the kernel assumes you're not going to use that memory and makes it inactive preventively.
페이지는 몇 가지 다른 방법으로 또한 inactive를 얻을 수 있습니다. 예를 들면 만약 당신이 긴 연속적인 I/O를 한다면, 커널은 당신이 그 메모리를 사용하지 않을 것이라고 가정하고 그것을 예방차원에서 inactive로 만듭니다.

So you can get more inactive pages than the target because the kernel marks some cache as "more likely to be never used" and lets it cheat in the "last used" order.
그래서 몇몇 cache를 "사용될 가능성이 더욱 없다고" 마킹하고 "최근 사용된" 순서에서 그것을 치트하도록 만들기 때문에 당신은 목표치보다 더 많은 inactive 페이지를 얻을 수 있습니다.


Memory Statistics
메모리 통계

    HighTotal: is the total amount of memory in the high region. Highmem is all memory above (approx) 860MB of physical RAM. Kernel uses indirect tricks to access the high memory region. Data cache can go in this memory region.
    HighTotal: high region의 메모리 총량. Highmem은 물리 RAM의 (약) 860MB 이상의 모든 메모리입니다. 커널은 high memory region를 액세스하기 위해 간접 트릭을 사용합니다. Data cache는 이 memory region에 갈 수 있습니다.


    LowTotal: The total amount of non-highmem memory.
    LowTotal: non-highmem memory 총량


    LowFree: The amount of free memory of the low memory region. This is the memory the kernel can address directly. All kernel datastructures need to go into low memory.
    LowFree: low memory region의 free memory 총량. 이것은 커널이 직접 address할 수 있는 메모리입니다. 모든 커널 데이터구조체는 low memory로 갈 수 있어야 합니다.


    SwapTotal: Total amount of physical swap memory.
    SwapTotal: 물리 swap memory 총량.

    SwapFree: Total amount of swap memory free.
    SwapFree:  swap memory free 총량.


    Committed_AS: An estimate of how much RAM you would need to make a 99.99% guarantee that there never is OOM (out of memory) for this workload.
    Committed_AS: 이 워크로드를 위해 OOM(out of memory)이 절대 없는 99.99% 보증을 만들기 위해 필요로 하는 RAM 예상수치.

Normally the kernel will overcommit memory.
일반적으로 커널은 메모리를 오버커밋할 것입니다.

That means, say you do a 1GB malloc, nothing happens, really. Only when you start USING that malloc memory you will get real memory on demand, and just as much as you use.
당신이 1GB malloc을 한다고 말하십시오. 그것은 실제로 아무것도 일어나지 않음을 의미합니다. 오직 당신이 memory를 malloc하는 USING을 시작할 때 당신은 수요에 따라 real memory를 얻을 것이고 당신이 사용하는 만큼의 양을 차지합니다.

So you sort of take a mortgage and hope the bank doesn't go bust.
그래서 당신은 모기지 수행을 분류하고 은행이 불황에 빠지지 않기를 소망합니다.


Other cases might include when you mmap a file that's shared only when you write to it / and you get a private copy of that data.
다른 경우들은 그것은 오직 당신이 그것을 write할 때에만 공유되는 파일을 mmap할 때를 포함할 수 있고 당신은 비공개 데이터 사본을 얻습니다.


While it normally is shared between processes.
반면에 일반적으로 그것은 프로세스들 간에 공유됩니다.


The Committed_AS is a guesstimate of how much RAM/swap you would need worst-case.
Committed_AS는 당신이 최악의 경우에 필요로 하는 RAM/swap 예상 시간입니다.
Creative Commons License