read-only,这是 cgroup 不同类型的内存使用量信息,以下统计单位是 bytes。
如果一个 entry 不属于 per-node counter,那么它将不会显示在 memory.numa_stat 中。
并且使用 npn (non-per-node) 来标记这些 entry。
文件中定义了以下 entry :
anon 匿名页的内存使用量,包括 brk(), sbrk() and mmap(MAP_ANONYMOUS)
file 文件页的内存使用量,包括 tmpfs and shared memory
kernel (npn) 内核空间的总内存使用量,
包括 kernel_stack, pagetables, percpu, vmalloc, slab
kernel_stack kernel stacks 的内存使用量
pagetables page tables 的内存使用量
sec_pagetables secondary page tables 的内存使用量,
包括 x86/arm64 上的 KVM mmu page tables,IOMMU page tables
percpu (npn) per-cpu kernel data structures 的内存使用量
sock (npn) network transmission buffers 的内存使用量
vmalloc (npn) vmap backed memory 的内存使用量
slab_reclaimable 能够被回收的 slab 内存使用量,包含 dentries and inodes.
slab_unreclaimable 不能被回收的 slab 内存使用量,slab 分配器默认行为。
slab (npn) slab 分配器分配给内核空间使用的总内存使用量,
包含 slab_reclaimable + slab_unreclaimable
shmem swap-backed shared memory 的内存使用量,
包含 tmpfs, shm segments, shared anonymous mmap()s
zswap zswap compression backend 的内存使用量
zswapped 交换到 zswap 的应用程序内存大小
file_mapped 通过 mmap() 映射的文件页的内存使用量
file_dirty 脏文件页的内存使用量
file_writeback 正在回写到磁盘的脏文件页的内存使用量
swapcached swapcache 的内存使用量
inactive_anon 在不同 LRU list 上的内存使用量
active_anon
inactive_file
active_file
unevictable
pgscan (npn) 内存回收时,在 inactive LRU list 上扫描的总页数
pgsteal (npn) 内存回收时,成功回收的总页数
pgscan_kswapd (npn) 内存回收时,通过 kswapd 在 inactive LRU list 上扫描的页数
pgscan_direct (npn) 内存回收时,通过 direct reclaim 在 inactive LRU list 上扫描的页数
pgscan_khugepaged (npn) 内存回收时,通过 khugepaged 在 inactive LRU list 上扫描的页数
pgsteal_kswapd (npn) 内存回收时,通过 kswapd 成功回收的页数
pgsteal_direct (npn) 内存回收时,通过 direct reclaim 成功回收的页数
pgsteal_khugepaged (npn) 内存回收时,通过 khugepaged 成功回收的页数
pgrefill (npn) 在 active LRU list 上扫描的总页数
pgactivate (npn) 移动到 active LRU list 的总页数
pgdeactivate (npn) 移动到 inactive LRU list 的总页数
pglazyfree (npn) 在内存压力下,lazyfree 的页数
pglazyfreed (npn) 回收 lazyfree 的页数
workingset_refault_anon 之前回收的匿名页,再一次触发 pagefault 的次数
workingset_refault_file 之前回收的文件页,再一次触发 pagefault 的次数
workingset_activate_anon 之前回收的匿名页,马上立刻再一次触发 pagefault 的次数。
workingset_activate_file 之前回收的文件页,马上立刻再一次触发 pagefault 的次数。
workingset_restore_anon 之前回收的匿名页(位于 active workingset),
马上立刻再一次触发 pagefault 的次数
workingset_restore_file 之前回收的文件页(位于 active workingset),
马上立刻再一次触发 pagefault 的次数
workingset_nodereclaim shadow node 被回收的次数
pgfault (npn) 发生 page fault 的次数,包括 minorfault + majorfault。
pgmajfault (npn) 发生 major page fault 的次数
zswpin 从 zswap 移入到内存的页数
zswpout 从内存移出到 zswap 的页数
zswpwb 从 zswap 回写到 swap 的页数
anon_thp THP 匿名页的内存使用量
file_thp THP 文件页的内存使用量
shmem_thp THP shm, tmpfs, shared anonymous mmap()s 的内存使用量
thp_fault_alloc (npn) 在 page fault 过程中分配 THP 的页数
thp_collapse_alloc (npn) 合并现有 page 范围而分配 THP 的页数
thp_swpout (npn) 直接 swapout 整个 THP 的页数
thp_swpout_fallback (npn) 由于无法分配连续的 swap 空间,进行拆分 THP 后再 swapout 的页数