Created
February 29, 2012 15:23
-
-
Save azet/1941562 to your computer and use it in GitHub Desktop.
[bench] create 20 procs & files and write /dev/urandom to them for 4 mins, print out total size
This file contains 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
echo; echo -n 'spawning /dev/urandom write procs.. --> '; for i in `seq 0 19`; do [ -x `cat /dev/urandom > test_file.$i &` ]; echo -n ..$i || echo error spawning $i; done; echo -e '\n\nsleeping 240 seconds'; sleep 240; echo -e '\nkilling procs.\n'; kill -9 `pgrep cat /dev/urandom`; echo -n 'wrote:' && du -h -c test_file* | tail -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
needed to spawn files for read tests with sysbench.