Skip to content

Instantly share code, notes, and snippets.

@Hirozy
Hirozy / zfsbench
Last active February 9, 2025 06:18 — forked from mergwyn/zfsbench
ZFS benchmarking using fio
#!/usr/bin/env bash
set -o errexit
printf "#####################\n"
echo $(date):Random 4k read
fio --randrepeat=1 --direct=1 --gtod_reduce=1 --name=test --filename=test \
--size=10GB --bs=4k --iodepth=1 --readwrite=randread --sync=1 --runtime=60 && rm test
printf "\n\n#####################\n"