Last active
August 22, 2025 20:24
-
-
Save brianmichel/056245a30bda5157df8a50ae6e2600a2 to your computer and use it in GitHub Desktop.
Testing IOPS On macOS Machines
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
| #!/bin/bash | |
| TEST_DIR="/tmp/fio-test" | |
| mkdir -p $TEST_DIR | |
| # For macOS, use posixaio engine | |
| ENGINE="posixaio" | |
| echo "Testing with async I/O engine: $ENGINE" | |
| # Sequential tests (these are already good) | |
| fio --name=seq-read --rw=read --size=2G --bs=1M \ | |
| --numjobs=1 --time_based --runtime=30 \ | |
| --group_reporting --directory=$TEST_DIR | |
| fio --name=seq-write --rw=write --size=2G --bs=1M \ | |
| --numjobs=1 --time_based --runtime=30 \ | |
| --group_reporting --directory=$TEST_DIR | |
| # Random tests with proper async I/O | |
| fio --name=rand-read --rw=randread --size=2G --bs=4k \ | |
| --numjobs=4 --iodepth=64 --ioengine=$ENGINE \ | |
| --time_based --runtime=30 --group_reporting \ | |
| --directory=$TEST_DIR | |
| fio --name=rand-write --rw=randwrite --size=2G --bs=4k \ | |
| --numjobs=4 --iodepth=64 --ioengine=$ENGINE \ | |
| --time_based --runtime=30 --group_reporting \ | |
| --directory=$TEST_DIR | |
| rm -rf $TEST_DIR/* |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Raw Data
Bare Metal Mac Mini
Tart VM (sync=none)
Tart VM (no options)