Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Created March 24, 2015 14:40
Show Gist options
  • Select an option

  • Save memoryleak/32c9e1c1cec2a9ba5801 to your computer and use it in GitHub Desktop.

Select an option

Save memoryleak/32c9e1c1cec2a9ba5801 to your computer and use it in GitHub Desktop.
Bash script for system test
#!/bin/bash
cd /data/tmp
sysbench --test=cpu --cpu-max-prime=20000 run
sysbench --test=fileio --file-total-size=20G prepare
sysbench --test=fileio --file-total-size=20G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run
sysbench --test=fileio --file-total-size=20G cleanup
sysbench --test=memory run --memory-total-size=2G
sysbench --test=memory run --memory-total-size=2G --memory-oper=read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment