Skip to content

Instantly share code, notes, and snippets.

@azet
Created February 29, 2012 15:23
Show Gist options
  • Select an option

  • Save azet/1941562 to your computer and use it in GitHub Desktop.

Select an option

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

azet commented Feb 29, 2012

Copy link
Copy Markdown
Author

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