76
4.2.26 /proc/slabinfo
This file gives information about memory usage on the slab level. Linux kernels greater than 2.2 use
slab pools to manage memory above the page level. Commonly used objects have their own slab
pools.
The /proc/slabinfo file can be rather long, but it starts off similar to this:
slabinfo - version: 1.1
kmem_cache
ip_fib_hash
ip_conntrack
urb_priv
uhci_desc
clip_arp_cache
ip_mrt_cache
tcp_tw_bucket
tcp_bind_bucket
tcp_open_request
inet_peer_cache
ip_dst_cache
The values in this file occur in the following order: cache name, number of active objects, number of
total objects, size of the object, number of active slabs (blocks) of the objects, total number of slabs
of the objects, and the number of pages per slab.
It should be noted that active in this case means to be in use. An active object is one that is in use, and
an active slab is one that contains any used objects.
4.2.27 /proc/stat
This file keeps track of a variety of different statistics about the system since it was last restarted. The
contents of /proc/stat, which can be quite long, begins something like this:
cpu
7361636 3040186 1150480 23431255
cpu0 7361636 3040186 1150480 23431255
page 213089 98198
swap 28914 15951
intr 37566857 34983557 1313 0 4 4 128683
disk_io: (3,0):(171639,103942,1549132,67697,784888)
ctxt 323724291
btime 988921599
processes 14882
kstat.input_fastpath: 0
kstat.input_slowpath: 0
kstat.inputqueue_got_packet: 0
59
78
100
10
113
32
0
0
352
0
0
32
1038
1062
64
0
0
128
0
0
96
0
0
128
6
113
32
0
0
96
0
0
64
26
40
192
Chapter 4:The /proc Filesystem
2
2
1
1
1
1
0
0
1
0
0
1
18
18
1
0
0
1
0
0
1
0
0
1
1
1
1
0
0
1
0
0
1
2
2
1
<CONTENT-SNIPPED>
Need help?
Do you have a question about the LINUX 7.2 and is the answer not in the manual?
Questions and answers