CLI tool to benchmark drive performance
Project description
Designed to run similar tests as Crystal Disk Mark using fio with user friendly output options.
Tests ran:
Sequential read/write w/ 1MB block size
Random read/write w/ 512K block size
Queue depth 32 random read/write 4K blocks size
Install
# system install $ sudo pip3 install disk-bench # user install $ pip3 install --user disk-bench
Usage
$ disk-bench --help # Default runs fio w/ --loops=3 and --size=1G $ disk-bench /mnt/disk-to-test/whatever # Show CSV output (for easy copy/paste into Excel or Google Sheets) $ disk-bench /mnt/disk-to-test/whatever --style=csv # Quick $ disk-bench /mnt/disk-to-test/whatever --loops=1 --size=1M
Command Details
The fio
command we are running is essentially:
fio –directory . –filename=disk~bench.tmp –output-format=json –stonewall –ioengine=libaio –direct=0 –gtod_reduce=1 –name=seqread –bs=1m –rw=read –size=64G –name=seqwrite –bs=1m –rw=write –size=64G –name=randread –bs=512k –rw=randread –size=4G –name=randwrite –bs=512k –rw=randwrite –size=4G –name=4kQD32read –bs=4k –iodepth=32 –rw=randread –size=4G –name=4kQD32write –bs=4k –iodepth=32 –rw=randwrite –size=4G –name=4kQD16 –bs=4k –iodepth=32 –rw=randrw –rwmixread=65 –size=4G
Changelog
0.2.1 released 2018-12-22
0.2.0 released 2018-12-21
change tests we run and output format (df6ac7b)
0.1.4 released 2018-12-21
fix cli direct flag (74aa304)
0.1.3 released 2018-12-21
support non-direct IO (f5ba899)
0.1.2 released 2018-12-20
fix some packaging issues (f908a1d)
0.1.1 released 2018-12-20
fix pypi name (10d6115)
0.1.0 released 2018-12-20
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for disk_bench-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebf9447b18b30338803a26884cba34b8735992f19e0f83466e52a4c42ca978d3 |
|
MD5 | 66e1f4a4ef30495286fe6a700ff913b5 |
|
BLAKE2b-256 | f6c8283e3b10338bb9435b4436d2bbc96708677b2cdf428afe303be24e642dee |