Commit d63ba7b4 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Include benchmark role

/reviewed-on !64
parent 23992da7
#!/bin/bash
echo "####################################################"
echo "# Random Write with fio randwrite "
echo "####################################################"
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randwrite
echo "####################################################"
echo "# Random Read with fio randread"
echo "####################################################"
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randread
echo "####################################################"
echo "# Read with fio read"
echo "####################################################"
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=read
echo "####################################################"
echo "# Write with fio write"
echo "####################################################"
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=write
echo "####################################################"
echo "# Write with dd "
echo "####################################################"
time sh -c "dd if=/dev/zero of=/test bs=4k count=2000000 conv=fsync && sync"
echo "####################################################"
echo "# Read with dd"
echo "####################################################"
time sh -c "dd if=/test of=/dev/null"
echo "####################################################"
echo "# Test with bonnie++ "
echo "####################################################"
bonnie++ -d / -n 0 -m TEST -f -b -u root
---
dependencies:
- { role: sysstat }
- { role: package, package_name: fio, package_state: present }
- { role: package, package_name: iotop, package_state: present }
- { role: package, package_name: ioping, package_state: present }
- { role: package, package_name: bonnie++, package_state: present }
- { role: package, package_name: hdparm, package_state: present }
---
- name: create partition script
copy: src=run_test.sh dest=/usr/local/bin/run-vifib-benchmark mode=700
- name: a play that runs entirely on the ansible host
hosts: 127.0.0.1
connection: local
roles:
- { role: vifib-benchmark }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment