fio examples

fio is a tool that will spawn a number of threads or processes doing a articular type of I/O action as specified by the user. fio takes a number of global parameters, each inherited by the thread unless otherwise parameters given to them overriding that setting is given.
The typical use of fio is to write a job file matching the I/O load one wants to simulate.

Read test:

$ fio read.ini

read.ini

[readtest]
blocksize=4k
filename=/dev/sdz
rw=randread
direct=1
buffered=0
ioengine=libaio
iodepth=32

Write test:

[writetest]
blocksize=4k

User tags

qemu tiger oprofile regex dhclient video perl chroot php vlan sftp dpkg shorewall LSI arp Salt OpenSSL centos 7 sysfs munin xargs build AMD lxc vrrpd arch vtysh xfs apt backtrace iowait initrd StorMan backup MODx tzdata 3Ware search hdparm SuperMicro route bscan wget bonding taskset arping raid5 iptables slab docker-compose freedos leap second storage opreport raid cache idmapd nginx parallel deb /etc/network/interfaces lenny exim wordpress tool glxinfo sysctl.conf drupal zRam groups virtualbox pulseaudio sublime bash find ubuntu SYN bridge mariadb glusterfs gpg kernel ip mdadm OpenStack cpu usage rpm ha virsh ulimit qcow2 noop NFS HDFS LVM elliptics numa in-addr.arpa source rtl8723be debootstrap PTR cluster encrypt youtube cpu APU bind corosync pvmove tftp performance KVM htop hotplug lts bug apache ddos firefox vrrp newgrp Areca ipmi netfilter graylog2 gdb openvpn top java security erase tun X forwarding cpanm mysql vim PXE .htaccess sysresccd gtk SSD conntrack Adaptec pam soa dstat routing SpamAssassin DRBD fido7 core dump rkhunter tin virt-install etch git squeeze mkfs flash proxy xhost lubuntu lstat grub limit_conn ssh nfs4 shellshock chromium sg fail2ban mount dovecot puppet HTTPS iostat fio debian gre cgroups replication dns sysrq language ardour tar boot xen Swift perlbrew ansible opcontrol rtsp ps nvidia jackd quagga rsync bacula sysctl iSCSI alsa CentOS radeon cfq asoundrc MegaRAID swap profiling usb RT pacemaker equalizer keyboard iops docker exim4 CPAN dhcp su scsi ipmitool alien