SysBench is a modular cross-platform and multi-threaded benchmark tool for evaluating OS parameters that are important for a system running a database under intensive load
# apt-get install sysbench
# sysbench —test=cpu –cpu-max-prime=20000 run
# sysbench –test=fileio –file-total-size=2G prepare
# sysbench –test=fileio –file-total-size=2G –file-test-mode=rndrw –init-rng=on –max-time=300 –max-requests=0 run
# sysbench –test=fileio –file-total-size=2G cleanup