vmstat [-a] [-V] [-n] [delay-seconds [ count]]
information about processes, memory, paging, block IO, traps, and cpu activity.
The first report gives averages since boot.
Additional reports give information on a sampling period .
The process and memory reports are instantaneous .
If no delay is specified, one report is printed with the average values since boot.
Examples taken from raspberry Pi Zero W up 3 hours, running RuuviCollextor(java), influxdb with grafana
-a | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Does not count itself as a running process.
Blocks are 1k, except for CD-ROM blocks which are 2k.
/proc/meminfo, /proc/stat, /proc/*/stat,
sudo slabtop [options]displays detailed kernel slab cache information in real time.
a listing of the top caches sorted by one of the listed sort criteria.
a statistics header filled with slab layer information.
-d |
Q|q Quit Reduce terminal font size and strech window height to see maximun rows.
fopen /proc/slabinfo: Permission denied
/home/dgerman > sudo slabtop
Active / Total Objects (% used) : 105450 / 109770 (96.1%)
Active / Total Slabs (% used) : 3184 / 3184 (100.0%)
Active / Total Caches (% used) : 76 / 88 (86.4%)
Active / Total Size (% used) : 14845.79K / 15487.26K (95.9%)
Minimum / Average / Maximum Object : 0.02K / 0.14K / 8.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
18176 16672 0% 0.06K 284 64 1136K buffer_head
14490 14440 0% 0.13K 483 30 1932K dentry
12810 12805 0% 0.09K 305 42 1220K kernfs_node_cache
12032 12014 0% 0.03K 94 128 376K kmalloc-32
11008 10733 0% 0.06K 172 64 688K kmalloc-64
7008 6878 0% 0.33K 584 12 2336K inode_cache
4179 4146 0% 0.37K 199 21 1592K proc_inode_cache
3990 3812 0% 0.09K 95 42 380K vm_area_struct
3328 3318 0% 0.02K 13 256 52K jbd2_revoke_table_s
3072 2640 0% 0.03K 24 128 96K anon_vma_chain
2964 2964 100% 0.30K 228 13 912K radix_tree_node
1734 1590 0% 0.04K 17 102 68K anon_vma
1450 1409 0% 0.16K 58 25 232K task_group
1386 1159 0% 0.09K 33 42 132K kmalloc-96
1183 1020 0% 0.60K 91 13 728K ext4_inode_cache
1024 612 0% 0.03K 8 128 32K ext4_extent_status
935 934 0% 0.05K 11 85 44K trace_event_file
928 836 0% 0.12K 29 32 116K kmalloc-128
864 849 0% 0.50K 108 8 432K kmalloc-512
819 815 0% 0.37K 39 21 312K shmem_inode_cache
777 769 0% 0.19K 37 21 148K kmalloc-192
496 492 0% 0.25K 31 16 124K kmalloc-256
340 242 0% 0.02K 2 170 8K file_lock_ctx
320 308 0% 0.06K 5 64 20K pid
306 298 0% 0.04K 3 102 12K eventpoll_pwq
300 287 0% 0.38K 30 10 120K sock_inode_cache
288 239 0% 0.12K 9 32 36K cred_jar
256 245 0% 1.00K 32 8 256K kmalloc-1024
256 256 100% 0.02K 1 256 4K fsnotify_mark_connector
208 204 0% 0.59K 16 13 128K UNIX
204 134 0% 0.04K 2 102 8K mbcache
198 162 0% 0.22K 11 18 44K mnt_cache
170 170 100% 0.02K 1 170 4K fat_cache
170 170 100% 0.02K 1 170 4K nat_entry
162 146 0% 3.47K 18 9 576K task_struct
146 134 0% 0.05K 2 73 8K configfs_dir_cache
128 128 100% 0.03K 1 128 4K kmem_cache_node
128 64 0% 0.06K 2 64 8K jbd2_journal_head
108 92 0% 1.28K 9 12 144K sighand_cache
108 90 0% 0.66K 9 12 72K signal_cache
105 105 100% 0.19K 5 21 20K kmem_cache
85 85 100% 0.05K 1 85 4K fscache_cookie_jar
85 85 100% 0.05K 1 85 4K ext4_io_end
80 66 0% 3.00K 8 10 256K biovec-max
78 78 100% 0.10K 2 39 8K ext4_allocation_context
72 60 0% 2.00K 9 8 144K kmalloc-2048
63 47 0% 0.19K 3 21 12K files_cache
60 51 0% 0.52K 4 15 32K f2fs_inode_cache
57 47 0% 0.41K 3 19 24K mm_struct
50 10 0% 0.38K 5 10 20K skbuff_fclone_cache
50 25 0% 0.16K 2 25 8K dquot
42 42 100% 0.56K 3 14 24K nfs_read_data
40 32 0% 4.00K 5 8 160K kmalloc-4096
38 36 0% 1.62K 2 19 64K TCPv6
34 34 100% 0.12K 1 34 4K file_lock_cache
33 33 100% 1.45K 3 11 48K request_queue
32 32 100% 0.47K 4 8 16K bdev_cache
28 28 100% 0.14K 1 28 4K sigqueue
24 24 100% 8.00K 6 4 192K kmalloc-8192
24 24 100% 0.16K 1 24 4K posix_timers_cache
22 22 100% 0.18K 1 22 4K tw_sock_TCP
22 11 0% 0.69K 2 11 16K UDP
22 22 100% 0.34K 2 11 8K rpc_inode_cache
22 22 100% 0.18K 1 22 4K tw_sock_TCPv6
19 19 100% 0.41K 1 19 8K fat_inode_cache
19 19 100% 0.81K 1 19 16K UDPv6
17 17 100% 0.23K 1 17 4K request_sock_TCP
17 17 100% 0.23K 1 17 4K request_sock_TCPv6
12 12 100% 0.32K 1 12 4K taskstats
12 12 100% 0.66K 1 12 8K RAW
10 10 100% 3.03K 1 10 32K net_namespace
10 10 100% 0.75K 1 10 8K biovec-64
10 10 100% 1.50K 1 10 16K biovec-128
10 10 100% 1.50K 1 10 16K TCP
9 9 100% 0.44K 1 9 4K nfs_commit_data
8 8 100% 0.50K 1 8 4K mqueue_inode_cache
0 0 0% 0.34K 0 23 0K user_namespace
0 0 0% 0.20K 0 19 0K blkdev_requests
0 0 0% 0.19K 0 21 0K cachefiles_object_jar
0 0 0% 0.28K 0 14 0K xfrm_dst_cache
0 0 0% 0.11K 0 36 0K pid_namespace
0 0 0% 0.33K 0 12 0K dio
0 0 0% 0.62K 0 12 0K nfs_inode_cache
0 0 0% 0.20K 0 20 0K nfs_direct_cache
0 0 0% 0.08K 0 51 0K discard_entry
0 0 0% 0.05K 0 73 0K discard_cmd
0 0 0% 0.17K 0 23 0K cfq_queue
The slabtop statistic header is tracking how many bytes of slabs are being used and is not a measure of physical memory. The 'Slab' field in the /proc/meminfo file is tracking information about used slab physical memory.