前言
VM 將 cache pages 分為 “active” and “inactive” memory。
關(guān)于Active、 Inactive的解釋 (源自Red Hat)
Interpreting /proc/meminfo and free output for Red Hat Enterprise Linux - Red Hat Customer Portal
E.2.18. /proc/meminfo Red Hat Enterprise Linux 6 | Red Hat Customer Portal
Active— 最近被使用過的,非必要不會釋放的內(nèi)存總量,以kb計
Inactive— 最近使用較少的,更具備釋放條件的內(nèi)存總量,以kb計
Active(anon)— 最近一次system交換到swap后,正處于active use或曾處于active use的anonymousandtmpfs/shmem內(nèi)存總量
Inactive(anon)— 被候選驅(qū)逐的anonymousandtmpfs/shmem內(nèi)存總量
Active(file)— 最近一次system內(nèi)存回收后,正處于active use或曾處于active use的cache memory總量,以kb計
Inactive(file)— The amount of file cache memory, in kibibytes, that is newly loaded from the disk, or is a candidate for reclaiming.
RHEL 5, RHEL 6 and RHEL 7/8
Active: 最近使用較多的內(nèi)存,通常不會被交換出或被回收
Inactive: 最近未使用過的內(nèi)存,可以交換出或被回收
RHEL 6 and RHEL 7/8 only
Active(anon): 最近使用較多的anonymous memory,通常不會被交換出
Inactive(anon): 最近沒有被使用的anonymous memory,可以被交換出
Active(file): 最近使用較多的pagecache memory,通常不會被釋放直到需要
Inactive(file): 可以被釋放的pagecache memory,不會產(chǎn)生大的性能影響
Unevictable: 基于某些原因不可被交換出的不可驅(qū)逐頁面
Mlocked: mlock() system call鎖定到內(nèi)存的頁面。Mlocked pages 也不可驅(qū)逐。