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

目录
相关文章
|
数据采集 数据库
Kettle之错误处理(Error Handling)里面的坑
Kettle之错误处理(Error Handling)里面的坑
|
开发工具 git
从 github 执行 git clone 一个大的项目时提示 error: RPC failed
目前克隆一个比较大的项目,出现RPC failed的错误 Cloning into 'bigfiles'... remote: Counting objects: 190, done. remote: Compressing objects: 100% (157/157), done.
4044 0
|
资源调度 监控 前端开发
第七章(原理篇) 微前端技术之依赖管理与版本控制
第七章(原理篇) 微前端技术之依赖管理与版本控制
469 0
|
12月前
|
存储 缓存 C++
C++番外篇——list与vector的比较
C++番外篇——list与vector的比较
164 0
|
11月前
|
SQL 安全 算法
网络安全与信息安全:关于网络安全漏洞、加密技术、安全意识等方面的知识分享###
本文深入探讨了网络安全与信息安全的重要性,重点分析了网络安全漏洞、加密技术以及安全意识三个方面。通过详细阐述这些方面的基本概念、常见类型、应对措施及实际应用,旨在提升读者对网络安全防护的认识和理解。文章强调,在数字化时代,保障网络安全不仅是技术问题,更是关乎个人隐私、企业机密和国家安全的重要课题。 ###
|
消息中间件 Linux 数据处理
Linux命令ipcrm详解:轻松管理IPC对象
`ipcrm`是Linux下用于删除IPC(进程间通信)对象的命令,如消息队列、共享内存和信号量。它通过指定对象ID或键值进行操作,如`-m ID`删除共享内存,`-q ID`删除消息队列,`-s ID`删除信号量。使用时需注意确认对象未被使用,以免影响系统运行。结合`ipcs`命令检查对象详情,并可定期清理不再需要的IPC对象以优化系统资源。
|
Linux 数据处理
深入了解Linux命令kill:终止进程的艺术
**Linux的`kill`命令详解:高效管理进程的工具** `kill`命令在Linux中用于向进程发送信号,如SIGTERM(默认)和SIGKILL,以终止或影响进程行为。它通过进程ID(PID)操作,支持多种信号和选项,如`-l`列出信号,`-9`强制杀进程。例如,`kill 1234`发送TERM信号,`kill -9 1234`发送KILL信号。使用时注意,SIGKILL是不可忽视的,可能导致数据丢失。配合`pgrep`和`pkill`能更灵活管理进程。了解进程依赖和使用其他命令如`ps`和`top`可优化系统资源管理。
|
安全 Java 网络安全
如何处理Java中的SSLException异常?
如何处理Java中的SSLException异常?
|
Linux 编译器 C语言
解决 glibc 版本冲突:实用指南与策略分析
解决 glibc 版本冲突:实用指南与策略分析
1520 2
|
存储 安全 中间件
【Go语言专栏】Go语言中的安全认证与授权机制
【4月更文挑战第30天】本文探讨了Go语言中实现安全认证与授权的方法。认证机制包括HTTP Basic Auth、表单认证、OAuth和JWT,可借助`net/http`及第三方库实现。授权则通过中间件或拦截器,如RBAC、ABAC和上下文相关授权,`casbin`和`go-permission`等库提供解决方案。实践中,需设计认证流程、存储用户凭证、实现逻辑、定义授权策略和编写中间件,并确保安全性。案例分析展示了认证授权在RESTful API服务中的应用。在Go开发中,不断学习和优化安全策略以应对安全挑战至关重要。
338 0