MemTotal: 1859964 kB
MemFree: 226356 kB
MemAvailable: 847856 kB
Buffers: 23332 kB
Cached: 710996 kB
SwapCached: 64 kB
Active: 308020 kB
Inactive: 655400 kB
Active(anon): 97916 kB
Inactive(anon): 222764 kB
Active(file): 210104 kB
Inactive(file): 432636 kB
Unevictable: 87344 kB
Mlocked: 86160 kB
SwapTotal: 1572860 kB
SwapFree: 1402108 kB
Dirty: 108 kB
Writeback: 0 kB
AnonPages: 316416 kB
Mapped: 355044 kB
Shmem: 6572 kB
KReclaimable: 71152 kB
Slab: 212216 kB
SReclaimable: 64240 kB
SUnreclaim: 147976 kB
KernelStack: 19520 kB
ShadowCallStack: 4900 kB
PageTables: 29520 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2502840 kB
Committed_AS: 28877012 kB
VmallocTotal: 263061440 kB
VmallocUsed: 75532 kB
VmallocChunk: 0 kB
Percpu: 3872 kB
CmaTotal: 114688 kB
CmaFree: 0 kB
- SLAB 不包含Anonpage这些。
- SLAB = SReclaimable + SUnreclaim
- SReclaimable(专注于slab内存可以回收的部分),KReclaimable(专注于kernel可回收的部分)
- Cache包含Inactive(file),但不包含Active(file),Cache = Inactive(file)+ SwapCached + SReclaimable + 内核对象缓冲(例如page table + 内核栈相关)
Unevictable
指的是那些因为某些原因不能被交换出内存(即不能被 page out 到磁盘或 swap out 到交换空间)的内存页。这些内存页被锁定在物理内存中,通常是因为它们被用户程序通过特定的系统调用锁定。