Created
June 9, 2014 11:42
-
-
Save itiut/c297939d7deeb7e7112e to your computer and use it in GitHub Desktop.
バックグラウンドでsarを動かしてリソースを監視する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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