Created
August 7, 2016 20:22
-
-
Save fcuny/e4a63afe0b3b711f0ef0cedc848df9c7 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
apt-get update | |
apt-get install --assume-yes fio htop sysstat | |
sudo mkdir -p /mnt/disks/ssd0 | |
sudo mkfs.ext4 -F /dev/disk/by-id/google-local-ssd-0 | |
sudo mount -o discard,defaults,noatime,nodiratime /dev/disk/by-id/google-local-ssd-0 /mnt/disks/ssd0 | |
sudo chown fcuny /mnt/disks/ssd0 | |
cat <<EOF > /home/fcuny/bench.fio | |
[sequential-write] | |
name=sequential-write-direct | |
rw=write | |
size=1G | |
direct=1 | |
directory=/mnt/disks/ssd0 | |
numjobs=5 | |
group_reporting | |
bs=8k | |
runtime=10 | |
fsync=1 | |
EOF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment