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
More linux commands
-
iotop -aoShow total disk reads and writes per process since start (needs root).
-
sar -u -r -d 1 5Show 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 5Count 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.