Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created April 9, 2012 09:26
Show Gist options
  • Save mathieue/2342489 to your computer and use it in GitHub Desktop.
Save mathieue/2342489 to your computer and use it in GitHub Desktop.
Store system stats on a sar archive during a bench. Read it later !
#write each second ten times
sar -A -o /tmp/sar-snapshot-$(date +%Y-%m-%d%H-%M-%S) 1 10
# read
sar -f /tmp/sarsnapshot-2012-04-0911-21-55
sar -f /tmp/sarsnapshot-2012-04-0911-21-55 -b
# etc..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment