LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

slabtop

Display kernel slab cache information

TLDR

Start slabtop
$ sudo slabtop
copy
Sort by cache size
$ sudo slabtop -s c
copy
Sort by number of objects
$ sudo slabtop -s o
copy
Sort by object size
$ sudo slabtop -s s
copy
Display once and exit
$ sudo slabtop -o
copy
Set refresh delay to 5 seconds
$ sudo slabtop -d 5
copy

SYNOPSIS

slabtop [-d delay] [-s sortcriteria] [-o]

DESCRIPTION

slabtop displays detailed kernel slab cache information in real time. It shows a listing of the top caches sorted by one of the listed sort criteria, helping to monitor kernel memory allocation.

PARAMETERS

-d, --delay=N

Refresh the display every N seconds (default: 3)
-s, --sort=S
Arrange output by specified sort criteria
-o, --once
Display output once then exit
-V, --version
Show version and exit
-h, --help
Show usage help and exit

SORT CRITERIA

a: Active objects (ACTIVE)b: Objects per slab (OBJ/SLAB)c: Cache size (CACHE SIZE)l: Number of slabs (SLABS)o: Number of objects (OBJS) - defaults: Object size (OBJ SIZE)u: Cache utilization (USE)

INTERACTIVE COMMANDS

Space: Refresh display immediatelyq: Exit programs: Change sort column

INSTALL

sudo apt install procps
copy
sudo dnf install procps-ng
copy
sudo pacman -S procps-ng
copy
sudo apk add procps-ng
copy
sudo zypper install procps
copy
brew install procps
copy
nix profile install nixpkgs#procps
copy

CAVEATS

Requires root privileges to read kernel slab cache information. Sort criteria can be changed during runtime using the corresponding letter key.

HISTORY

slabtop is part of the procps-ng package. It provides insight into the kernel's slab allocator, which manages memory for frequently used kernel objects.

SEE ALSO

top(1), vmstat(8), free(1), ps(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid