Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux basic command-- slabtop

Shulou Source: shulou.com Published: 2022-06-02 06:39:11 10月04日 Update

Slabtop

Slabtop displays detailed kernel lath cache information in real time. It displays a list of top-level caches sorted by one of the sort criteria listed. It also displays a statistics header filled with slab information.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora, SUSE, openSUSE.

1. Grammar

Slabtop [options]

2. List of options

Option

Description

-d n |-- delay = n

Set the time interval for display

-s S |-- sort= S

Set the collation. A, sort by number of active objects; b, sort by number of slab objects; c, sort by cache size; l, sort by number of slab; v, sort by hyperactive slab; n, sort by name; o, sort by number of objects; p, sort by pages per slab; u, sort by cache utilization

-o |-- once

Show only once, and then exit

-V |-- version

Display version information and exit

-- help

Display help information and exit

3. Examples

1) display slab information

[root@localhost ntop-4.0.1] # slabtop-d 5 / / display every 5s

Active / Total Objects (% used): 434059 / 438446 (99.0%)

Active / Total Slabs (% used): 23317 / 23318 (100.0%)

Active / Total Caches (% used): 104 / 200 (52.0%)

Active / Total Size (% used): 87844.50K / 88275.36K (99.5%)

Minimum / Average / Maximum Object: 0.01K / 0.20K / 4096.00K

OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME

120321 120297 99% 0.13K 4149 29 16596K dentry

64722 64605 99% 0.05K 966 673864K buffer_head

50178 50170 99% 0.63K 8363 6 33452K ext4_inode_cache

47870 47846 99% 0.38K 4787 10 19148K proc_inode_cache

...

2) display slab information and sort

[root@localhost ntop-4.0.1] # slabtop-d 10-s n / / sorted by name, displayed every 10s

Active / Total Objects (% used): 433100 / 438274 (98.8%)

Active / Total Slabs (% used): 23307 / 23307 (100.0%)

Active / Total Caches (% used): 104 / 200 (52.0%)

Active / Total Size (% used): 87750.19K / 88220.52K (99.5%)

Minimum / Average / Maximum Object: 0.01K / 0.20K / 4096.00K

OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME

290 261 90% 0.02K 2145 8K Acpi-Namespace

1564 1501 95% 0.04K 17 92 68K Acpi-Operand

0 0 0 3 K 0 113 0 K Acpi-Parse

0 0 0 5 K 0 78 0 K Acpi-ParseExt

0 0 0 4 K 0 84 0K Acpi-State

0 0 0 6 K 0 7 0K PING

7 2 28% 0.56K 1 7 4K RAW

5 4 80% 0.75K 1 54 K RAWv6

...

A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.

Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk

Tags: Sort information cache object number name command kernel utilization hyperactivity size instance real-time password platform quantity time condition slab version Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia Shulou Information Microsoft Shulou Tech Info