此内容没有您所选择的语言版本。
5.2.26. /proc/slabinfo
This file gives full information about memory usage on the slab level. Linux kernels greater than version 2.2 use 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.
A sample screen shot of
/usr/bin/slabtop
usually looks like the following example:
Some of the more commonly used statistics in
/proc/slabinfo
that are included into /usr/bin/slabtop
include:
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.
For more information on the
/usr/bin/slabtop
program, refer to the slabtop
man page.