2011-06-05 01:40:29 +08:00
|
|
|
.\" slabtop.1 - manpage for the slabtop(1) utility, part of procps-ng
|
2004-01-25 06:33:56 +08:00
|
|
|
.\"
|
|
|
|
.\" Copyright (C) 2003 Chris Rivera
|
|
|
|
.\" Licensed under the terms of the GNU Library General Public License, v2
|
2011-06-07 04:40:58 +08:00
|
|
|
.TH SLABTOP "1" "June 2011" "procps-ng" "User Commands"
|
2004-01-25 06:33:56 +08:00
|
|
|
.SH NAME
|
|
|
|
slabtop \- display kernel slab cache information in real time
|
|
|
|
.SH SYNOPSIS
|
2011-02-23 16:17:54 +08:00
|
|
|
.B slabtop
|
2011-06-07 04:40:58 +08:00
|
|
|
[\fIoptions\fR]
|
2004-01-25 06:33:56 +08:00
|
|
|
.SH DESCRIPTION
|
2011-02-23 16:17:54 +08:00
|
|
|
.B slabtop
|
2004-01-25 06:33:56 +08:00
|
|
|
displays detailed kernel slab cache information in real time. It displays a
|
2005-10-30 11:06:07 +08:00
|
|
|
listing of the top caches sorted by one of the listed sort criteria. It also
|
2004-01-25 06:33:56 +08:00
|
|
|
displays a statistics header filled with slab layer information.
|
|
|
|
.SH OPTIONS
|
2013-03-11 14:00:00 +08:00
|
|
|
Normal invocation of
|
2011-02-23 16:17:54 +08:00
|
|
|
.B slabtop
|
2004-01-25 06:33:56 +08:00
|
|
|
does not require any options. The behavior, however, can be fine-tuned by
|
|
|
|
specifying one or more of the following flags:
|
|
|
|
.TP
|
2011-06-07 04:40:58 +08:00
|
|
|
\fB\-d\fR, \fB\-\-delay\fR=\fIN\fR
|
2011-02-23 16:17:54 +08:00
|
|
|
Refresh the display every
|
|
|
|
.I n
|
|
|
|
in seconds. By default,
|
|
|
|
.B slabtop
|
2004-01-25 06:33:56 +08:00
|
|
|
refreshes the display every three seconds. To exit the program, hit
|
|
|
|
.BR q.
|
|
|
|
.TP
|
2011-06-07 04:40:58 +08:00
|
|
|
\fB\-s\fR, \fB\-\-sort\fR=\fIS\fR
|
2011-02-23 16:17:54 +08:00
|
|
|
Sort by \fIS\fR, where \fIS\fR is one of the sort criteria.
|
2004-01-25 06:33:56 +08:00
|
|
|
.TP
|
2011-06-07 04:40:58 +08:00
|
|
|
\fB\-o\fR, \fB\-\-once\fR
|
2004-01-25 06:33:56 +08:00
|
|
|
Display the output once and then exit.
|
|
|
|
.TP
|
2011-06-07 04:40:58 +08:00
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
2004-01-25 06:33:56 +08:00
|
|
|
Display version information and exit.
|
|
|
|
.TP
|
2011-06-07 04:40:58 +08:00
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
2004-01-25 06:33:56 +08:00
|
|
|
Display usage information and exit.
|
|
|
|
.SH SORT CRITERIA
|
|
|
|
The following are valid sort criteria used to sort the individual slab caches
|
|
|
|
and thereby determine what are the "top" slab caches to display. The default
|
|
|
|
sort criteria is to sort by the number of objects ("o").
|
2011-06-07 04:40:58 +08:00
|
|
|
.PP
|
2004-01-25 06:33:56 +08:00
|
|
|
The sort criteria can also be changed while slabtop is running by pressing
|
|
|
|
the associated character.
|
2012-01-06 03:11:34 +08:00
|
|
|
.TS
|
|
|
|
l l l.
|
|
|
|
\fBcharacter description header\fR
|
|
|
|
a number of active objects ACTIVE
|
|
|
|
b objects per slab OBJ/SLAB
|
|
|
|
c cache size CACHE SIZE
|
|
|
|
l number of slabs SLABS
|
|
|
|
v number of active slabs N/A
|
|
|
|
n name NAME
|
|
|
|
o number of objects OBJS
|
|
|
|
p pages per slab N/A
|
|
|
|
s object size OBJ SIZE
|
|
|
|
u cache utilization USE
|
|
|
|
.TE
|
2004-01-25 06:33:56 +08:00
|
|
|
.SH COMMANDS
|
2011-02-23 16:17:54 +08:00
|
|
|
.B slabtop
|
2004-01-25 06:33:56 +08:00
|
|
|
accepts keyboard commands from the user during use. The following are
|
|
|
|
supported. In the case of letters, both cases are accepted.
|
2011-06-07 04:40:58 +08:00
|
|
|
.PP
|
2004-01-25 06:33:56 +08:00
|
|
|
Each of the valid sort characters are also accepted, to change the sort
|
|
|
|
routine. See the section
|
2011-06-07 04:40:58 +08:00
|
|
|
.BR "SORT CRITERIA" .
|
2004-01-25 06:33:56 +08:00
|
|
|
.TP
|
|
|
|
.BR <SPACEBAR>
|
|
|
|
Refresh the screen.
|
|
|
|
.TP
|
|
|
|
.BR Q
|
|
|
|
Quit the program.
|
|
|
|
.SH FILES
|
2011-02-23 16:17:54 +08:00
|
|
|
.TP
|
|
|
|
.I /proc/slabinfo
|
|
|
|
slab information
|
2004-01-25 06:33:56 +08:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR free (1),
|
|
|
|
.BR ps (1),
|
|
|
|
.BR top (1),
|
|
|
|
.BR vmstat (8)
|
|
|
|
.SH NOTES
|
|
|
|
Currently,
|
2011-02-23 16:17:54 +08:00
|
|
|
.B slabtop
|
2004-01-25 06:33:56 +08:00
|
|
|
requires a 2.4 or later kernel (specifically, a version 1.1 or later
|
|
|
|
.IR /proc/slabinfo ).
|
|
|
|
Kernel 2.2 should be supported in the future.
|
2011-06-07 04:40:58 +08:00
|
|
|
.PP
|
|
|
|
The slabtop statistic header is tracking how many bytes of slabs are being
|
|
|
|
used and it not a measure of physical memory. The 'Slab' field in the
|
|
|
|
/proc/meminfo file is tracking information about used slab physical memory.
|
2004-01-25 06:33:56 +08:00
|
|
|
.SH AUTHORS
|
|
|
|
Written by Chris Rivera and Robert Love.
|
2011-06-07 04:40:58 +08:00
|
|
|
.PP
|
2011-02-23 16:17:54 +08:00
|
|
|
.B slabtop
|
2004-01-25 06:33:56 +08:00
|
|
|
was inspired by Martin Bligh's perl script,
|
|
|
|
.BR vmtop .
|
2011-06-07 04:40:58 +08:00
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Please send bug reports to
|
2012-04-16 18:55:53 +08:00
|
|
|
.UR procps@freelists.org
|
2011-06-07 04:40:58 +08:00
|
|
|
.UE
|