美文网首页
Linux cache pages, "active" "ina

Linux cache pages, "active" "ina

作者: 偷油考拉 | 来源:发表于2022-02-09 09:54 被阅读0次

前言

VM 将 cache pages 分为 “active” and “inactive” memory。

关于ActiveInactive的解释 (源自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 — 最近被使用过的,非必要不会释放的内存总量,以kb计
Inactive — 最近使用较少的,更具备释放条件的内存总量,以kb计
Active(anon) — 最近一次system交换到swap后,正处于active use或曾处于active use的anonymous and tmpfs/shmem内存总量
Inactive(anon) — 被候选驱逐的 anonymous and tmpfs/shmem 内存总量
Active(file) — 最近一次system内存回收后,正处于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: 最近使用较多的内存,通常不会被交换出或被回收
Inactive: 最近未使用过的内存,可以交换出或被回收
RHEL 6 and RHEL 7/8 only
Active(anon): 最近使用较多的anonymous memory,通常不会被交换出
Inactive(anon): 最近没有被使用的anonymous memory,可以被交换出
Active(file): 最近使用较多的pagecache memory,通常不会被释放直到需要
Inactive(file): 可以被释放的pagecache memory,不会产生大的性能影响
Unevictable: 基于某些原因不可被交换出的不可驱逐页面
Mlocked: mlock() system call锁定到内存的页面。Mlocked pages 也不可驱逐。

相关文章

网友评论

      本文标题:Linux cache pages, "active" "ina

      本文链接:https://www.haomeiwen.com/subject/ccomiltx.html