Skip to content

Instantly share code, notes, and snippets.

@fcuny
Created August 7, 2016 20:22
Show Gist options
  • Save fcuny/e4a63afe0b3b711f0ef0cedc848df9c7 to your computer and use it in GitHub Desktop.
Save fcuny/e4a63afe0b3b711f0ef0cedc848df9c7 to your computer and use it in GitHub Desktop.
#!/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