Created
October 27, 2020 07:14
-
-
Save faermanj/fa1321cb37a067aa348cf08bef783c7c to your computer and use it in GitHub Desktop.
Architecting on AWS - Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/raid-config.html | |
mdadm --create --verbose /dev/md0 \ | |
--level=0 \ | |
--name=riverraid \ | |
--raid-devices=2 /dev/nvme1n1 /dev/nvme2n1 | |
mkfs.ext4 -L riverraid /dev/md0 | |
mdadm --detail --scan | sudo tee -a /etc/mdadm.conf | |
dracut -H -f /boot/initramfs-$(uname -r).img $(uname -r) | |
mkdir -p /mnt/riverraid | |
mount LABEL=riverraid /mnt/riverraid | |
# https://www.binarylane.com.au/support/solutions/articles/1000055889-how-to-benchmark-disk-i-o | |
fio --randrepeat=1 \ | |
--ioengine=libaio --direct=1 \ | |
--gtod_reduce=1 --name=test \ | |
--filename=/mnt/riverraid/testfio --bs=32k \ | |
--iodepth=64 --size=16G \ | |
--readwrite=randrw --rwmixread=75 | |
fio --randrepeat=1 \ | |
--ioengine=libaio --direct=1 \ | |
--gtod_reduce=1 --name=test \ | |
--directory=/mnt/riverraid --bs=256k \ | |
--iodepth=64 --size=16G --nrfiles=1000 \ | |
--readwrite=randrw --rwmixread=75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment