Show virtual memory stats

Show CPU, memory, swap and IO stats every second, 5 times. The first line is the average since boot.

vmstat 1 5

tool
linux133 commands
tags
linuxmemorymonitoring

More linux commands

  • iotop -ao

    Show total disk reads and writes per process since start (needs root).

  • sar -u -r -d 1 5

    Show CPU, memory and disk stats with sysstat: 5 samples, 1 second apart.

  • strace -f -e trace=network,file -p <pid>

    Trace network and file syscalls of a running process and its child processes.

  • perf stat -e cycles,instructions,cache-misses -- sleep 5

    Count CPU cycles, instructions and cache misses while a command runs (here sleep 5). Add -a to cover the whole system.

  • lscpu | grep -E 'Model|Socket|Core|Thread|MHz'

    Show the CPU model, how sockets, cores and threads are laid out, and the clock speed.

all 133 linux commands