Test random reads

fio

  • Flexible I/O tester.
    Tool that will spawn a number of threads or processes doing a particular type of I/O action.
    More information: <https://fio.readthedocs.io/en/latest/fio_doc.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

sudo fio --filename={{path/to/file}} --direct=1 --rw=randread --bs=4k --ioengine=libaio --iodepth=256 --runtime=120 --numjobs=4 --time_based --group_reporting --name={{job_name}} --eta-newline=1 --readonly

click the source code to copy install fio on any operating system with command-not-found.com