Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

vmstat

vmstat is a great way to report on memory statistics; by default, its output looks like this:

$ vmstatprocs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st 2  0   1544  65260      0 367336    0    0    57    78   45   47  0  0 100  0  0

Where vmstat excels, though, is the fact its initial report (the preceding output) is the information since boot, and you can add a digit to the end of your command, to get a rolling summary:

$ vmstat 5procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st 2  0   1544  65140      0 367336    0    0    57    77   45   47  0  0 100  0  0 0  0   1544  65140      0 367336    0    0     0     0   49   48  0  0 100  0  0 0 0 1544 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content