System Tools
sar
# install
apt install sysstat
# example
sar [options] [delay [count]]
sar -r 1 10
# cpu
-u Report CPU utilization
-q Report queue length and load averages
-P (cpu_list|ALL) Report per-processor statistics for the specified processor or processors
-w Report task creation and system switching activity
# memory
-r Report memory utilization statistics
-S Report swap space utilization statistics
-W Report swapping statistics
# network
-n (DEV|ICMP|IP|SOCK|TCP|UDP) Report network statistics
# I/O statistics
-b Report I/O and transfer rate statistics
-d Report activity for each block device
-p Pretty-print device names
# others
-v Report status of inode, file and other kernel tables
-y Report TTY devices activity
-o | -f [filename]
strace
systemtap
trap
vmstat
watch
Reference:
Last updated