Skip to content

Instantly share code, notes, and snippets.

@toff63
Created March 8, 2016 07:38
Show Gist options
  • Save toff63/32f9d322c03425146daa to your computer and use it in GitHub Desktop.
Save toff63/32f9d322c03425146daa to your computer and use it in GitHub Desktop.
$ uptime  # to see LA (number of processes wanting to run)
$ dmesg | tail # Last 10 system message. Look for error that can cause perf issues
$ vmastat 1 # key server statistics
$ mpstat -P ALL 1: # break CPU statistics per CPU.
$ pidstat 1   # small top that keep printing instead of refreshing
$ iostat -xz 1 # for io stats
$ free -m # memory usage
$ sar -n DEV 1 # network interface throughput
$ sar -n TCP,ETCP 1  #summarized stats of TCP metrics 

Ref: Linux Performance Analysis in 60,000 Milliseconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment