2004-01-25 04:03:56 +05:30
|
|
|
.\"
|
2023-02-08 12:58:55 +05:30
|
|
|
.\" Copyright (c) 2011-2023 Craig Small <csmall@dropbear.xyz>
|
|
|
|
.\" Copyright (c) 2013-2023 Jim Warner <james.warner@comcast.net>
|
|
|
|
.\" Copyright (c) 2011-2012 Sami Kerola <kerolasa@iki.fi>
|
|
|
|
.\" Copyright (c) 2004-2006 Albert Cahalan
|
|
|
|
.\" Copyright (C) 2003 Chris Rivera
|
|
|
|
.\"
|
|
|
|
.\" This program is free software; you can redistribute it and/or modify
|
|
|
|
.\" it under the terms of the GNU Lesser General Public License as
|
|
|
|
.\" published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
.\" License, or (at your option) any later version.
|
|
|
|
.\"
|
|
|
|
.\"
|
2021-03-11 16:40:37 +05:30
|
|
|
.TH SLABTOP "1" "2021-03-11" "procps-ng" "User Commands"
|
2004-01-25 04:03:56 +05:30
|
|
|
.SH NAME
|
|
|
|
slabtop \- display kernel slab cache information in real time
|
|
|
|
.SH SYNOPSIS
|
2011-02-23 13:47:54 +05:30
|
|
|
.B slabtop
|
2011-06-07 02:10:58 +05:30
|
|
|
[\fIoptions\fR]
|
2004-01-25 04:03:56 +05:30
|
|
|
.SH DESCRIPTION
|
2011-02-23 13:47:54 +05:30
|
|
|
.B slabtop
|
2004-01-25 04:03:56 +05:30
|
|
|
displays detailed kernel slab cache information in real time. It displays a
|
2005-10-30 08:36:07 +05:30
|
|
|
listing of the top caches sorted by one of the listed sort criteria. It also
|
2004-01-25 04:03:56 +05:30
|
|
|
displays a statistics header filled with slab layer information.
|
|
|
|
.SH OPTIONS
|
2013-03-11 11:30:00 +05:30
|
|
|
Normal invocation of
|
2011-02-23 13:47:54 +05:30
|
|
|
.B slabtop
|
2004-01-25 04:03:56 +05:30
|
|
|
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 02:10:58 +05:30
|
|
|
\fB\-d\fR, \fB\-\-delay\fR=\fIN\fR
|
2011-02-23 13:47:54 +05:30
|
|
|
Refresh the display every
|
|
|
|
.I n
|
|
|
|
in seconds. By default,
|
|
|
|
.B slabtop
|
2004-01-25 04:03:56 +05:30
|
|
|
refreshes the display every three seconds. To exit the program, hit
|
2021-03-11 16:40:37 +05:30
|
|
|
.BR q .
|
|
|
|
This cannot be combined with the \fB-o\fR option.
|
2004-01-25 04:03:56 +05:30
|
|
|
.TP
|
2011-06-07 02:10:58 +05:30
|
|
|
\fB\-s\fR, \fB\-\-sort\fR=\fIS\fR
|
2011-02-23 13:47:54 +05:30
|
|
|
Sort by \fIS\fR, where \fIS\fR is one of the sort criteria.
|
2004-01-25 04:03:56 +05:30
|
|
|
.TP
|
2011-06-07 02:10:58 +05:30
|
|
|
\fB\-o\fR, \fB\-\-once\fR
|
2004-01-25 04:03:56 +05:30
|
|
|
Display the output once and then exit.
|
|
|
|
.TP
|
2011-06-07 02:10:58 +05:30
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
2004-01-25 04:03:56 +05:30
|
|
|
Display version information and exit.
|
|
|
|
.TP
|
2011-06-07 02:10:58 +05:30
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
2004-01-25 04:03:56 +05:30
|
|
|
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 02:10:58 +05:30
|
|
|
.PP
|
2020-06-04 17:55:26 +05:30
|
|
|
The sort criteria can also be changed while
|
|
|
|
.B slabtop
|
|
|
|
is running by pressing the associated character.
|
2012-01-06 00:41:34 +05:30
|
|
|
.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
|
2015-05-24 01:31:14 +05:30
|
|
|
n name NAME\:
|
2012-01-06 00:41:34 +05:30
|
|
|
o number of objects OBJS
|
|
|
|
p pages per slab N/A
|
|
|
|
s object size OBJ SIZE
|
|
|
|
u cache utilization USE
|
|
|
|
.TE
|
2004-01-25 04:03:56 +05:30
|
|
|
.SH COMMANDS
|
2011-02-23 13:47:54 +05:30
|
|
|
.B slabtop
|
2004-01-25 04:03:56 +05:30
|
|
|
accepts keyboard commands from the user during use. The following are
|
|
|
|
supported. In the case of letters, both cases are accepted.
|
2011-06-07 02:10:58 +05:30
|
|
|
.PP
|
2004-01-25 04:03:56 +05:30
|
|
|
Each of the valid sort characters are also accepted, to change the sort
|
|
|
|
routine. See the section
|
2011-06-07 02:10:58 +05:30
|
|
|
.BR "SORT CRITERIA" .
|
2004-01-25 04:03:56 +05:30
|
|
|
.TP
|
|
|
|
.BR <SPACEBAR>
|
|
|
|
Refresh the screen.
|
|
|
|
.TP
|
|
|
|
.BR Q
|
|
|
|
Quit the program.
|
|
|
|
.SH FILES
|
2011-02-23 13:47:54 +05:30
|
|
|
.TP
|
|
|
|
.I /proc/slabinfo
|
|
|
|
slab information
|
2004-01-25 04:03:56 +05:30
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR free (1),
|
|
|
|
.BR ps (1),
|
|
|
|
.BR top (1),
|
|
|
|
.BR vmstat (8)
|
|
|
|
.SH NOTES
|
|
|
|
Currently,
|
2011-02-23 13:47:54 +05:30
|
|
|
.B slabtop
|
2004-01-25 04:03:56 +05:30
|
|
|
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 02:10:58 +05:30
|
|
|
.PP
|
2020-06-04 17:55:26 +05:30
|
|
|
The
|
|
|
|
.B slabtop
|
|
|
|
statistic header is tracking how many bytes of slabs are being
|
2014-09-16 11:21:13 +05:30
|
|
|
used and is not a measure of physical memory. The 'Slab' field in the
|
2023-01-16 12:59:50 +05:30
|
|
|
\fI/proc/meminfo\fR file is tracking information about used slab physical
|
2004-01-25 04:03:56 +05:30
|
|
|
.SH AUTHORS
|
|
|
|
Written by Chris Rivera and Robert Love.
|
2011-06-07 02:10:58 +05:30
|
|
|
.PP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B slabtop
|
2004-01-25 04:03:56 +05:30
|
|
|
was inspired by Martin Bligh's perl script,
|
|
|
|
.BR vmtop .
|
2011-06-07 02:10:58 +05:30
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Please send bug reports to
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR procps@freelists.org
|
2011-06-07 02:10:58 +05:30
|
|
|
.UE
|