fio 是一款非常经典的开源磁盘io测试工具
fio is an I/O tool meant to be used both for benchmark and stress/hardware verification. It has support for 19 different types of I/O engines (sync, mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio, and more), I/O priorities (for newer Linux kernels), rate I/O, forked or threaded jobs, and much more. It can work on block devices as well as files. fio accepts job descriptions in a simple-to-understand text format. Several example job files are included. fio displays all sorts of I/O performance information, including complete IO latencies and percentiles. Fio is in wide use in many places, for both benchmarking, QA, and verification purposes. It supports Linux, FreeBSD, NetBSD, OpenBSD, OS X, OpenSolaris, AIX, HP-UX, Android, and Windows.
这里介绍一下 fio 的基础操作,详细可以参考 官方文档
Tip: 当前版本 fio-2.2.11 ,访问官网可能得翻墙
[root@iZ116haf49sZ ~]# git clone git://git.kernel.dk/fio.git
Initialized empty Git repository in /root/fio/.git/
remote: Counting objects: 20195, done.
remote: Compressing objects: 100% (5336/5336), done.
remote: Total 20195 (delta 14818), reused 20186 (delta 14812)
Receiving objects: 100% (20195/20195), 4.31 MiB | 43 KiB/s, done.
Resolving deltas: 100% (14818/14818), done.
[root@iZ116haf49sZ ~]# ls
fio
[root@iZ116haf49sZ ~]#
[root@iZ116haf49sZ ~]# cd fio/
[root@iZ116haf49sZ fio]# ls
arch debug.c filelock.h gerror.h helpers.h lib parse.c stat.h
backend.c debug.h filesetup.c gettime.c HOWTO libfio.c parse.h t
blktrace_api.h diskutil.c fio.1 gettime.h idletime.c log.c printing.c td_error.c
blktrace.c diskutil.h fio.c gettime-thread.c idletime.h log.h printing.h td_error.h
cairo_text_helpers.c engines fio.h gfio.c init.c Makefile profile.c thread_options.h
cairo_text_helpers.h err.h fio_time.h gfio.h io_ddir.h memalign.c profile.h tickmarks.c
cconv.c eta.c FIO-VERSION-GEN GFIO-TODO ioengine.h memalign.h profiles tickmarks.h
cgroup.c examples flist.h ghelpers.c ioengines.c memory.c README time.c
cgroup.h exp flow.c ghelpers.h iolog.c minmax.h REPORTING-BUGS tools
client.c fifo.c flow.h goptions.c iolog.h MORAL-LICENSE server.c trim.c
client.h fifo.h gclient.c goptions.h io_u.c mutex.c server.h trim.h
compiler file.h gclient.h graph.c io_u_queue.c mutex.h SERVER-TODO verify.c
configure filehash.c gcompat.c graph.h io_u_queue.h options.c smalloc.c verify.h
COPYING filehash.h gcompat.h hash.h json.c options.h smalloc.h workqueue.c
crc filelock.c gerror.c helpers.c json.h os stat.c workqueue.h
[root@iZ116haf49sZ fio]# 本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。