SLABTOP(1)
๐ SLABTOP(1) ๐
okay bestie, so this is a page from the General Commands Manual and it's all about a little icon called slabtop. Buckle up, we're going into the kernel's closet. ๐งโจ
๐ธ NAME ๐ธ
slabtop โ display kernel slab cache information in real time ๐ซถ
โจ SYNOPSIS โจ
slabtop [option ...]
๐ฆ DESCRIPTION ๐ฆ
slabtop shows you the detailed kernel slab cache information in real time. It's giving live feed, no cap. It displays a listing of the top caches, sorted by one of the sort criteria listed below, and it also shows a statistics header stuffed with slab layer info. It's literally the main character of cache monitoring. ๐
๐ OPTIONS ๐
So the normal way to run slabtop is with zero options, it just vibes. But if you wanna fine-tune the behavior, you can pass one or more of these flags:
-d,--delay=Nโ refresh the display every n seconds. By default,slabtoprefreshes every three seconds. To exit the program, hitq. ๐ช This cannot be combined with the-ooption. not me warning you twice-s,--sort=Sโ sort by S, where S is one of the sort criteria.-o,--onceโ display the output once and then exit. one and done, periodt. ๐ซ--humanโ show slab sizes automatically scaled to the shortest three digit unit and display the units of the print out. These are the units used:B= bytesKi= kibibyteMi= mebibyteGi= gibibyteTi= tebibytePi= pebibyte
If this flag is not used, the slab sizes will be shown in KiB. (iykyk) ๐
-V,--versionโ display version information and exit.-h,--helpโ display usage information and exit. ๐
๐ฅ SORT CRITERIA ๐ฅ
These are the valid sort criteria used to sort the individual slab caches, which is how we decide what counts as the "top" slab caches to display. The default sort criteria is to sort by the number of objects (o). slay.
You can also change the sort criteria while slabtop is running by pressing the associated character. group chat keyboard energy ๐ฌ
aโ number of active objects โ headerACTIVEbโ objects per slab โ headerOBJ/SLABcโ cache size โ headerCACHE SIZElโ number of slabs โ headerSLABSvโ number of active slabs โ headerN/Anโ name โ headerNAMEoโ number of objects โ headerOBJSpโ pages per slab โ headerN/Asโ object size โ headerOBJ SIZEuโ cache utilization โ headerUSE
๐ COMMANDS ๐
slabtop accepts keyboard commands from you while it's running. Here's what's supported. For letters, both cases are accepted. very inclusive of it ๐
Each of the valid sort characters is also accepted, to change the sort routine. See the section SORT CRITERIA above. ๐
<SPACEBAR>โ refresh the screen. โจQโ quit the program. bye bestie ๐ญ
๐ FILES ๐
/proc/slabinfoโ slab information
๐ SEE ALSO ๐
free(1), ps(1), top(1), vmstat(8)
๐ธ NOTES ๐ธ
Right now, slabtop requires a 2.4 or later kernel โ specifically, a version 1.1 or later /proc/slabinfo. Kernel 2.2 should be supported in the future. manifesting it ๐ฏ๏ธโจ
The slabtop statistic header is tracking how many bytes of slabs are being used, and it is not a measure of physical memory. The 'Slab' field in the /proc/meminfo file is what's tracking information about used slab physical memory. two different things bestie, don't mix them up ๐
The CACHE SIZE column is not accurate โ it's the upper limit of memory used by a specific slab. When a system using slub (the most common case) is under high memory pressure, there are slab order fallbacks, which means "pages per slab" is not constant and may decrease. ๐ so yeah, read that column with love but also with skepticism.
๐ AUTHORS ๐
Written by Chris Rivera and Robert Love.
slabtop was inspired by Martin Bligh's perl script, vmtop. iconic origin story fr fr ๐
๐ซถ REPORTING BUGS ๐ซถ
Please send bug reports to procps@freelists.org. don't be shy, they wanna hear from you ๐
okay that's the whole page, you ate it, you're a kernel slab expert now no cap ๐
this was brought to you by procps-ng, dated 2023-12-26 โ mwah, go check your slab caches, bestie ๐ฆโจ
๐ฆ where this page comes from
- alpine 3.23: procps-ng-doc 4.0.5-r0 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- alpine 3.24: procps-ng-doc 4.0.6-r0 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- arch rolling: procps-ng 4.0.7-1 ยท GPL AND LGPL
- fedora 44: procps-ng 4.0.6-1.fc44 ยท GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: procps-ng 4.0.6-1.fc44 ยท GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: procps 4.0.6
- nixpkgs unstable: procps 4.0.7
- opensuse-leap 16.0: procps 4.0.5-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: procps 4.0.5-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: procps 4.0.5-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: procps 4.0.5-160000.2.2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: procps 2:4.0.6-3ubuntu1 ยท LGPL-2.1-or-later
- 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
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms