Skip to main content

iotest

Ever feel like fio is too complicated and too optimized? Well, simple-iotest covers this for you!

Using the most simple non-optimized write() or writev() with fallback to python f.write() (just like your code!) to test file system io performance.

Warning: if using big file sizes, make sure you have enough memory to hold all these bits!

Note: Recommand to also install the package Tee_Logger to also log your test results to your /var/log/ ( configurable ) for future keeping.

Generated:

This script tests I/O performance by creating, reading, moving, and indexing files in various modes. It allows you to measure different aspects of disk performance and log the results.

Installation

pipx install simple-iotest

Usage

Run the script with:

iotest [options] [modes]

Default mode is write (w) when no mode is specified.

Common Options

  • -fs, --file_size: Size of the test files (default: 30 MiB; suffix m, g, etc. supported).
  • -fc, --file_count: Number of files to process per worker (default: 50).
  • -pc, --process_count: Number of worker processes (default: 36).
  • -wtpt, --write_target_throughput: Target sync write throughput (e.g. 500m, 2g); auto-tunes the first write pass.
  • -rtpt, --read_target_throughput: Target sync read throughput; auto-tunes the first read pass. For simultaneous mode with both targets, the initial writer/reader split is estimated from the target ratio before tuning.
  • -d, --directory: Directory for file operations.
  • -q, --quiet: Suppresses output.
  • -z, --zeros: Uses zero-filled data instead of random.
  • -nl, --no_log: Disables log file creation.
  • -nr, --no_report: Disables result report creation.

Modes

  • write / w: Only file writes (default).
  • read / r: Only file reads.
  • index / i: Create and remove temporary index folders.
  • random: Random read/write steps.
  • comprehensive / c: write → move → stat → read per file.
  • rw / wr: Run write, then read sequentially in batch mode.
  • simultaneous / s: Pre-writes read targets, then runs half the workers writing and half reading concurrently on separate files. Removes all temp files when done.
  • rwi / wri: Run write, then read, then index sequentially in batch mode.

Example:

iotest -fs 50m -fc 100 -pc 4 -d /tmp/iotest write read

Will launch 4 processes each write same random 50MiB size data to 100 seperate files sequentially. Then will launch another 4 processes reading the same files.

Simultaneous read/write example:

iotest -fs 50m -fc 20 -pc 8 -d /tmp/iotest simultaneous

Check the available arguments with -h or --help for more details.

$ iotest -h
usage: iotest [-h] [-fs FILE_SIZE] [-fc FILE_COUNT] [-t PROCESS_COUNT] [-d DIRECTORY] [-ld LOG_DIRECTORY] [-q] [-v] [-S]
              [-nl] [-nr] [-z] [-addr MESSAGE_END_POINT_ADDRESS] [--threshold_to_report_anomaly THRESHOLD_TO_REPORT_ANOMALY]
              [-V]
              [{comprehensive,read,write,random,index,r,w,rw,wr,i,rwi,wri,c} ...]

Test total disk bandwidth. Default mode is write (w). Comprehensive mode: write -> move -> stat -> read

positional arguments:
  {comprehensive,read,write,random,index,r,w,rw,wr,i,rwi,wri,c}
                        The mode the script will operate in (default: write / w). COMPREHENSIVE: per-thread write -> move -> stat -> read.
                        WRITE: batched all-thread write. READ: batched all-thread read. INDEX: creates --file_count index folders,
                        stat each, then delete. RWI / WRI: run write, then read, then index sequentially in batch mode.

options:
  -h, --help            show this help message and exit
  -fs, --file_size FILE_SIZE
                        File size (default:30), defaults to mb, can specify in t(b),g(b),m(b),k(b),b
  -fc, --file_count FILE_COUNT
                        Number of files to create and read per process (default:50)
  -t, -pc, --process_count PROCESS_COUNT
                        Number of processes to run concurrently (default:36)
  -d, --directory DIRECTORY
                        Directory to put the files in (default:<pwd>)
  -ld, --log_directory LOG_DIRECTORY
                        Directory to put the log files in (default:/var/log/)
  -q, --quiet           Suppress output, default True in new version
  -v, --verbose         Verbose output
  -S, --stealth         Suppress verbose output and verbose log file
  -nl, --no_log         Do not write log files
  -nr, --no_report      Do not write report files
  -z, --zeros           Use zeros instead of random numbers. Use this if you are sure no write compression is available. Potentially
                        higher write accuracy.
  -addr, --message_end_point_address MESSAGE_END_POINT_ADDRESS
                        The end point address of the message
  --threshold_to_report_anomaly THRESHOLD_TO_REPORT_ANOMALY
                        The threshold to report if 1 percent high is higher then 1 percent low * <threshold_to_report_anomaly>
  -V, --version         show program's version number and exit

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_iotest-3.66.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_iotest-3.66.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file simple_iotest-3.66.1.tar.gz.

File metadata

  • Download URL: simple_iotest-3.66.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simple_iotest-3.66.1.tar.gz
Algorithm Hash digest
SHA256 b330d0767c8c7d8c3bd3b5476f580860d661c41c93aa20bd057f06346e00d0d3
MD5 c466ece5001ea28ce1d45ce20192e15a
BLAKE2b-256 d2a5959d376e65af1cd2a6c0fa7c94ded10861ebf47f7dee30e4f26a8d108449

See more details on using hashes here.

File details

Details for the file simple_iotest-3.66.1-py3-none-any.whl.

File metadata

  • Download URL: simple_iotest-3.66.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for simple_iotest-3.66.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5a6ee88d56eea54f6b8bf6dc074d7d98f697b3bb869b964e582748adf837a6
MD5 6e72309077cf6553aacc357159af5e5c
BLAKE2b-256 8a1bfcd9759ef9fb878c548aeac82cbb4b6d9a19574d2503df864ab0e9db80f8

See more details on using hashes here.

Release history Release notifications | RSS feed

3.67.0

2 files

This release

3.66.1 This release

2 files

3.66.0

2 files

3.63.0

2 files

3.62.0

2 files

3.61.2

2 files

3.61.1

2 files

3.61.0

2 files

3.60.0

2 files

3.59.6

2 files

3.59.5

2 files

3.59.4

2 files

3.59.3

2 files

3.59.2

2 files

3.59.1

2 files

3.59

2 files

3.58

2 files

3.57

2 files

3.56

2 files

3.55

2 files

3.54

2 files

3.53

2 files

3.52

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page