Skip to content

Instantly share code, notes, and snippets.

@itiut
Created June 9, 2014 11:42
Show Gist options
  • Save itiut/c297939d7deeb7e7112e to your computer and use it in GitHub Desktop.
Save itiut/c297939d7deeb7e7112e to your computer and use it in GitHub Desktop.
バックグラウンドでsarを動かしてリソースを監視する
#!/bin/sh
LC_TIME=POSIX sar -u 1 > sar.out &
PID=$!
dd if=/dev/zero of=/tmp/dd.out bs=1M count=1000 oflag=direct
sleep 5
kill $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment