Entry in /proc/meminfo

前端 未结 3 588
粉色の甜心
粉色の甜心 2021-01-16 05:55

I am now study linux. cat /proc/meminfo produces as following. Please tell me the mean of entry \"Active(file)/Inactive(file)\". I can\'t find the explanation of these entry

相关标签:
3条回答
  • 2021-01-16 06:08

    According to the output, result of Active(file) + Inactive(file) + Shmem doesn't equal to that of Cached + Buffer + SwapCached

    0 讨论(0)
  • 2021-01-16 06:14

    And FYI.

    1. Active = Active(anon) + Active(file) Inactive = Inactive(anon) + Inactive(file)
    2. Active(file), Inactive(file) has file back-end which means its original file is in disk but to use it faster it was loaded on RAM.
    3. Active(file) + Inactive(file) + Shmem = Cached + Buffer + SwapCached
    0 讨论(0)
  • 2021-01-16 06:32

    Active — The total amount of buffer or page cache memory, in kilobytes, that is in active use. This is memory that has been recently used and is usually not reclaimed for other purposes.

    Inactive — The total amount of buffer or page cache memory, in kilobytes, that are free and and available. This is memory that has not been recently used and can be reclaimed for other purposes.

    Ref : https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html

    0 讨论(0)
提交回复
热议问题