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. 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.
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
/proc/execdomains文件用于显示当前系统中可执行文件的域列表。每个域都对应着一组可执行文件,这些文件共享相同的执行环境和权限。该文件可以帮助我们了解系统中不同域的可执行文件情况[^1]。 /proc/filesystems文件用于显示当前系统支持的文件系统类型。每一行代表一个支持的文件系统类型,包括文件系统名称和对应的标志。通过查看该文件,我们可以了解系统支持的文件系统类型。 /proc/kpagecgroup文件用于显示内存页的控制组信息。每一行代表一个控制组,包括控制组名称和对应的内存页信息。通过查看该文件,我们可以了解系统中不同控制组的内存页使用情况。 /proc/tp_selftest文件用于显示当前系统中的触摸屏自检信息。该文件包含了触摸屏自检的详细结果,可以帮助我们了解触摸屏的状态和性能。 /proc/meminfo文件用于显示系统内存的使用情况。该文件包含了系统内存的各种统计信息,如总内存、可用内存、缓存、交换空间等。通过查看该文件,我们可以了解系统内存的分配和使用情况。 从这些文件中,我们无法直接获取用户是否安装了第三方ko模块的信息。这些文件主要提供了系统的一些状态和统计信息,而不涉及具体的用户安装模块的情况。要获取用户安装的第三方ko模块信息,可以通过其他途径,如查看系统日志或使用特定的命令来获取相关信息。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值