Skip to content

Instantly share code, notes, and snippets.

@azet
Created February 29, 2012 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azet/1941562 to your computer and use it in GitHub Desktop.
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
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
@azet
Copy link
Author

azet commented Feb 29, 2012

needed to spawn files for read tests with sysbench.

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