Linux cache pages, "active" "inactive" memory

前言

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的anonymous and tmpfs/shmem內(nèi)存總量
Inactive(anon) — 被候選驅(qū)逐的 anonymous and tmpfs/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ū)逐。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容