| 1 |
.\" |
| 2 |
.\" Copyright (c) 2011-2023 Craig Small <[email protected]> |
| 3 |
.\" Copyright (c) 2013-2023 Jim Warner <[email protected]> |
| 4 |
.\" Copyright (c) 2011-2012 Sami Kerola <[email protected]> |
| 5 |
.\" Copyright (c) 2004-2006 Albert Cahalan |
| 6 |
.\" Copyright (C) 2003 Chris Rivera |
| 7 |
.\" |
| 8 |
.\" This program is free software; you can redistribute it and/or modify |
| 9 |
.\" it under the terms of the GNU Lesser General Public License as |
| 10 |
.\" published by the Free Software Foundation; either version 2.1 of the |
| 11 |
.\" License, or (at your option) any later version. |
| 12 |
.\" |
| 13 |
.\" |
| 14 |
.TH SLABTOP 1 2023-12-26 procps-ng |
| 15 |
.SH NAME |
| 16 |
slabtop \- display kernel slab cache information in real time |
| 17 |
.SH SYNOPSIS |
| 18 |
.B slabtop |
| 19 |
.RI [ option " .\|.\|.]" |
| 20 |
.SH DESCRIPTION |
| 21 |
.B slabtop |
| 22 |
displays detailed kernel slab cache information in real time. It displays a |
| 23 |
listing of the top caches sorted by one of the listed sort criteria. It also |
| 24 |
displays a statistics header filled with slab layer information. |
| 25 |
.SH OPTIONS |
| 26 |
Normal invocation of |
| 27 |
.B slabtop |
| 28 |
does not require any options. The behavior, however, can be fine-tuned by |
| 29 |
specifying one or more of the following flags: |
| 30 |
.TP |
| 31 |
\fB\-d\fR, \fB\-\-delay\fR=\fIN\fR |
| 32 |
Refresh the display every |
| 33 |
.I n |
| 34 |
in seconds. By default, |
| 35 |
.B slabtop |
| 36 |
refreshes the display every three seconds. To exit the program, hit |
| 37 |
.BR q . |
| 38 |
This cannot be combined with the \fB-o\fR option. |
| 39 |
.TP |
| 40 |
\fB\-s\fR, \fB\-\-sort\fR=\fIS\fR |
| 41 |
Sort by \fIS\fR, where \fIS\fR is one of the sort criteria. |
| 42 |
.TP |
| 43 |
\fB\-o\fR, \fB\-\-once\fR |
| 44 |
Display the output once and then exit. |
| 45 |
.TP |
| 46 |
.B \-\-human |
| 47 |
Show slab sizes automatically scaled to shortest three digit unit and |
| 48 |
display the units of print out. Following units are used. |
| 49 |
.sp |
| 50 |
.nf |
| 51 |
B = bytes |
| 52 |
Ki = kibibyte |
| 53 |
Mi = mebibyte |
| 54 |
Gi = gibibyte |
| 55 |
Ti = tebibyte |
| 56 |
Pi = pebibyte |
| 57 |
.fi |
| 58 |
.sp |
| 59 |
.TP |
| 60 |
If this flag is not used, the slab sizes will be shown in KiB. |
| 61 |
.TP |
| 62 |
\fB\-V\fR, \fB\-\-version\fR |
| 63 |
Display version information and exit. |
| 64 |
.TP |
| 65 |
\fB\-h\fR, \fB\-\-help\fR |
| 66 |
Display usage information and exit. |
| 67 |
.SH SORT CRITERIA |
| 68 |
The following are valid sort criteria used to sort the individual slab caches |
| 69 |
and thereby determine what are the "top" slab caches to display. The default |
| 70 |
sort criteria is to sort by the number of objects ("o"). |
| 71 |
.PP |
| 72 |
The sort criteria can also be changed while |
| 73 |
.B slabtop |
| 74 |
is running by pressing the associated character. |
| 75 |
.TS |
| 76 |
l l l. |
| 77 |
\fBcharacter description header\fR |
| 78 |
a number of active objects ACTIVE |
| 79 |
b objects per slab OBJ/SLAB |
| 80 |
c cache size CACHE SIZE |
| 81 |
l number of slabs SLABS |
| 82 |
v number of active slabs N/A |
| 83 |
n name NAME\: |
| 84 |
o number of objects OBJS |
| 85 |
p pages per slab N/A |
| 86 |
s object size OBJ SIZE |
| 87 |
u cache utilization USE |
| 88 |
.TE |
| 89 |
.SH COMMANDS |
| 90 |
.B slabtop |
| 91 |
accepts keyboard commands from the user during use. The following are |
| 92 |
supported. In the case of letters, both cases are accepted. |
| 93 |
.PP |
| 94 |
Each of the valid sort characters are also accepted, to change the sort |
| 95 |
routine. See the section |
| 96 |
.BR "SORT CRITERIA" . |
| 97 |
.TP |
| 98 |
.B <SPACEBAR> |
| 99 |
Refresh the screen. |
| 100 |
.TP |
| 101 |
.B Q |
| 102 |
Quit the program. |
| 103 |
.SH FILES |
| 104 |
.TP |
| 105 |
.I /proc/slabinfo |
| 106 |
slab information |
| 107 |
.SH "SEE ALSO" |
| 108 |
.BR free (1), |
| 109 |
.BR ps (1), |
| 110 |
.BR top (1), |
| 111 |
.BR vmstat (8) |
| 112 |
.SH NOTES |
| 113 |
Currently, |
| 114 |
.B slabtop |
| 115 |
requires a 2.4 or later kernel (specifically, a version 1.1 or later |
| 116 |
.IR /proc/slabinfo ). |
| 117 |
Kernel 2.2 should be supported in the future. |
| 118 |
.PP |
| 119 |
The |
| 120 |
.B slabtop |
| 121 |
statistic header is tracking how many bytes of slabs are being |
| 122 |
used and is not a measure of physical memory. The 'Slab' field in the |
| 123 |
\fI/proc/meminfo\fR file is tracking information about used slab physical memory. |
| 124 |
.PP |
| 125 |
The |
| 126 |
.B CACHE SIZE |
| 127 |
column is not accurate, it's the upper limit of memory used by specific slab. When system |
| 128 |
using slub (most common case) is under high memory pressure, there are slab order |
| 129 |
fallbacks, which means "pages per slab" is not constant and may decrease. |
| 130 |
.SH AUTHORS |
| 131 |
Written by Chris Rivera and Robert Love. |
| 132 |
.PP |
| 133 |
.B slabtop |
| 134 |
was inspired by Martin Bligh's perl script, |
| 135 |
.BR vmtop . |
| 136 |
.SH "REPORTING BUGS" |
| 137 |
Please send bug reports to |
| 138 |
.MT [email protected] |
| 139 |
.ME . |