Skip to content

Instantly share code, notes, and snippets.

@adenosinew
Last active February 20, 2024 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adenosinew/e5fd3c53806c4c0a08c2acc0715cf7a7 to your computer and use it in GitHub Desktop.
Save adenosinew/e5fd3c53806c4c0a08c2acc0715cf7a7 to your computer and use it in GitHub Desktop.
[Linux benchmarks]
# Installation
sudo apt-get install stress
yum install stress
# Usage
apt install fio
# Random read/write test
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=test --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
# Random read test
fio --name=randread --ioengine=libaio --iodepth=16 --rw=randread --bs=4k --direct=0 --size=512M --numjobs=4 --runtime=240 --group_reporting
# Random write test
fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k --direct=0 --size=512M --numjobs=2 --runtime=240 --group_reporting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment