LLI Wiki — My Digital Knowledge Base

Linux: monitor system, disks and network with vmstat and vnstat

vmstat commands (interval, timestamp, disk summary) and vnstat (per-interface traffic).

Common commands to monitor memory, processes, disks and network traffic on Linux.

vmstat

vmstat 2 -t

Prints system statistics every 2 seconds, with a timestamp column (-t).

vmstat 3

Same thing with a 3-second interval.

vmstat -D

Prints a summary of disk activity statistics (number of disks, reads, writes, etc.).

vnstat

vnstat -i eth0
vnstat -i eth1

Shows the accumulated network traffic (hourly, daily, monthly) of the interface given with -i. vnstat relies on a daemon that collects the interface counters; adjust the interface name (eth0, eth1).

Mastodon LLIMastodon SocialFosstodon