What is /proc/slabinfo?

简介: /proc/slabinfo gives information about memory usage on the slab level. Linux kernels uses slab pools to manage memory above the page level.

/proc/slabinfo gives information about memory usage on the slab level. Linux kernels uses slab pools to manage memory above the page level. Commonly used objects have their own slab pools. Instead of parsing the highly verbose /proc/slabinfo file manually, the /usr/bin/slabtop program displays kernel slab cache information in real time. This program allows for custom configurations, including column sorting and screen refreshing.

Sample slabtop :

# /usr/bin/slaptop

Active / Total Objects (% used)    : 286703 / 730599 (39.2%)

Active / Total Slabs (% used)      : 46347 / 46357 (100.0%)

Active / Total Caches (% used)     : 95 / 142 (66.9%)

Active / Total Size (% used)       : 89858.38K / 179248.09K (50.1%)

Minimum / Average / Maximum Object : 0.01K / 0.25K / 128.00K

OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME

279330  86167  30%    0.25K  18622       15     74488K size-256

88046  44665  50%    0.27K   6289       14     25156K radix_tree_node

79350   3621   4%    0.05K   1058       75      4232K buffer_head

71266  32169  45%    0.15K   2741       26     10964K dentry_cache

...

Important parameters in /proc/slabinfo & slaptop are as below :

OBJS — The total number of objects (memory blocks), including those in use (allocated), and some spares not in use.

ACTIVE — The number of objects (memory blocks) that are in use (allocated).

USE — Percentage of total objects that are active. ((ACTIVE/OBJS)(100))

OBJ SIZE — The size of the objects.

SLABS — The total number of slabs.

OBJ/SLAB — The number of objects that fit into a slab.

CACHE SIZE — The cache size of the slab.

NAME — The name of the slab.

原文

http://blog.csdn.net/nancygreen/article/details/7751961

目录
相关文章
|
1月前
|
存储 Linux 索引
/proc的相关知识
`/proc`是Linux的一个伪文件系统,存储内核运行状态和进程信息。它包含以PID命名的子目录,提供对系统硬件、进程详情的查看和内核状态的修改。`/proc/self`是特殊目录,让进程能直接访问其自身信息,无需知道PID。通过`/proc/self/cmdline`、`cwd`、`exe`、`environ`和`maps`等文件,可以获取进程的命令行、工作目录、可执行文件路径、环境变量和内存映射等信息。`maps`显示内存区域和权限,`mem`则提供进程内存映射,但部分区域不可读。
|
2月前
|
存储 Linux Shell
Linux内核追踪(一):proc/sys/debugfs
Linux内核追踪(一):proc/sys/debugfs
160 0
|
Linux Android开发
查看/proc/[pid]/ 查看进程状态
查看/proc/[pid]/ 查看进程状态
96 0
|
存储 缓存 监控
Linux 系统的 proc 和 sys 文件系统|学习笔记
快速学习 Linux 系统的 proc 和 sys 文件系统
623 0
Linux 系统的 proc 和 sys 文件系统|学习笔记
|
监控 Perl
|
IDE 网络协议 Unix