IOZONE(1)
πΈ NAME πΈ
Iozone β Filesystem Benchmark π
This is the iozone(1) page from the General Commands Manual, but make it group chat. Bestie, we're going in. π«Ά
β¨ SYNOPSIS β¨
Iozone [-a|-A] [-s filesize_Kb] [-r record_size_Kb] [-f [path]filename]
[-i test] [-E] [-p] [-m] [-M] [-t children] [-h] [-o] [-l
min_number_procs] [-u max_number_procs] [-v] [-R] [-x] [-d microseconds]
[-F path1 path2...] [-V pattern ] [-j stride] [-T] [-C] [-B] [-D] [-G]
[-I] [-H depth] [-k depth] [-U mount_point] [-S cache_size] [-O] [-L
line_size] [-K] [-N] [-Q] [-P start_cpu] [-c] [-e] [-b Excel.xls] [-J
milliseconds] [-X [path]filename] [-Y [path]filename] [-w] [-W] [-z]
[-Z] [-n min_filesize_Kb] [-g max_filesize_Kb] [-y min_recordsize_Kb]
[-q max_recordsize_Kb] [-+d] [-+u] [-+m client_filename] [-+n] [-+N]
[-+p percent_read] [-+r] [-+t] [-+l] [-+L] [-+D] [-+A madvise_selector]
[-+h hostname] [-+T] [-+w Percent de-dupable.]
π DESCRIPTION π
okay so bestie, Iozone is a filesystem benchmark tool π . The benchmark generates and measures a whole variety of file operations. Iozone has been ported to many machines and runs under many operating systems. This document will cover the many different types of operations that are tested as well as coverage of all of the command line options. No skipping, we're doing the whole thing. β¨
Iozone is useful for determining a broad filesystem analysis of a vendor's computer platform. The benchmark tests file I/O performance for the following operations:
Readwritere-readre-writeread backwardsread stridedfreadfwriterandom read/writepread/pwrite variants
While computers are typically purchased with an application in mind, it is also likely that over time the application mix will change. Many vendors have enhanced their operating systems to perform well for some frequently used applications. Although this accelerates the I/O for those few applications, it is also likely that the system may not perform well for other applications that were not targeted by the operating system. An example of this type of enhancement is: Database. Many operating systems have tested and tuned the filesystem so it works well with databases. While the database users are happy, the other users may not be so happy as the entire system may be giving all of the system resources to the database users at the expense of all other users. As time rolls on the system administrator may decide that a few more office automation tasks could be shifted to this machine. The load may now shift from a random reader application (database) to a sequential reader. The users may discover that the machine is very slow when running this new application and become dissatisfied with the decision to purchase this platform. By using Iozone to get a broad filesystem performance coverage the buyer is much more likely to see any hot or cold spots and pick a platform and operating system that is more well balanced. π
π OPTIONS π
-aβ used to select full automatic mode. Produces output that covers all tested file operations for record sizes of4kto16Mfor file sizes of64kto512M. β¨-Aβ this version of automatic mode provides more coverage but consumes a bunch of time. The-aoption will automatically stop using transfer sizes less than64konce the file size is32Mor larger. This saves time. The-Aoption tells Iozone that you are willing to wait and want dense coverage for small transfers even when the file size is very large.
NOTE: This option is deprecated in Iozone version3.61. Use-az -i 0 -i 1instead. π
-b filenameβ used to specify a filename that will be used for output of an Excel compatible file that contains the results. π-Bβ usemmap()files. This causes all of the temporary files being measured to be created and accessed with themmap()interface. Some applications prefer to treat files as arrays of memory. These applicationsmmap()the file and then just access the array with loads and stores to perform file I/O. π§-cβ includeclose()in the timing calculations. This is useful only if you suspect thatclose()is broken in the operating system currently under test. It can be useful for NFS Version 3 testing as well to help identify if thenfs3_commitis working well. π΅οΈ-Cβ show bytes transferred by each child in throughput testing. Useful if your operating system has any starvation problems in file I/O or in process management. πΆ-d #β microsecond delay out of barrier. During the throughput tests all threads or processes are forced to a barrier before beginning the test. Normally, all of the threads or processes are released at the same moment. This option allows one to delay a specified time in microseconds between releasing each of the processes or threads. β±οΈ-Dβ usemsync(MS_ASYNC)on mmap files. This tells the operating system that all the data in the mmap space needs to be written to disk asynchronously. πΎ-eβ include flush (fsync,fflush) in the timing calculations. π½-Eβ used to select the extension tests. Only available on some platforms. Usespreadinterfaces. π§ͺ-f filenameβ used to specify the filename for the temporary file under test. This is useful when the unmount option is used. When testing with unmount between tests it is necessary for the temporary file under test to be in a directory that can be unmounted. It is not possible to unmount the current working directory as the process Iozone is running in this directory. π-F filename filename filename ?β specify each of the temporary file names to be used in the throughput testing. The number of names should be equal to the number of processes or threads that are specified. ποΈ-g #β set maximum file size (in Kbytes) for auto mode. One may also specify-g #k(size in Kbytes) or-g #m(size in Mbytes) or-g #g(size in Gbytes). See-nfor minimum file size. π-Gβ usemsync(MS_SYNC)on mmap files. This tells the operating system that all the data in the mmap space needs to be written to disk synchronously. π½-hβ displays help screen. π-H #β use POSIX async I/O with#async operations. Iozone will use POSIX async I/O with abcopyfrom the async buffers back into the applications buffer. Some versions of MSC NASTRAN perform I/O this way. This technique is used by applications so that the async I/O may be performed in a library and requires no changes to the applications internal model. π-i #β used to specify which tests to run. (0=write/rewrite,1=read/re-read,2=random-read/write,3=Read-backwards,4=Re-write-record,5=stride-read,6=fwrite/re-fwrite,7=fread/Re-fread,8=mixed workload,9=pwrite/Re-pwrite,10=pread/Re-pread,11=pwritev/Re-pwritev,12=preadv/Re-preadv). One will always need to specify0so that any of the following tests will have a file to measure.-i # -i # -i #is also supported so that one may select more than one test. π§ͺ-Iβ use DIRECT IO if possible for all file operations. Tells the filesystem that all operations to the file are to bypass the buffer cache and go directly to disk. (not available on all platforms) β‘-j #β set stride of file accesses to (# * record size). The stride read test will read records at this stride. π-J #β millisecond delay before each I/O operation. This simulates the cpu compute cycle of an application that precedes an I/O operation. One may also use-Xor-Yto control the compute cycle on a per I/O operation basis. π§-k #β use POSIX async I/O (no bcopy) with#async operations. Iozone will use POSIX async I/O and will not perform any extra bcopys. The buffers used by Iozone will be handed to the async I/O system call directly. π¦-Kβ inject some random accesses in the testing. π²-l #β set the lower limit on number of processes to run. When running throughput tests this option allows the user to specify the least number of processes or threads to start. This option should be used in conjunction with the-uoption. π½-L #β set processor cache line size to value (in bytes). Tells Iozone the processor cache line size. This is used internally to help speed up the test. π§΅-mβ tells Iozone to use multiple buffers internally. Some applications read into a single buffer over and over. Others have an array of buffers. This option allows both types of applications to be simulated. IozoneΒ΄s default behavior is to re-use internal buffers. This option allows one to override the default and to use multiple internal buffers. π§Ί-Mβ Iozone will calluname()and will put the string in the output file. π·οΈ-n #β set minimum file size (in Kbytes) for auto mode. One may also specify-n #k(size in Kbytes) or-n #m(size in Mbytes) or-n #g(size in Gbytes). See-gfor maximum file size. π-Nβ report results in microseconds per operation. β³-oβ writes are synchronously written to disk. (O_SYNC). Iozone will open the files with theO_SYNCflag. This forces all writes to the file to go completely to disk before returning to the benchmark. πΎ-Oβ give results in operations per second. π-pβ this purges the processor cache before each file operation. Iozone will allocate another internal buffer that is aligned to the same processor cache boundary and is of a size that matches the processor cache. It will zero fill this alternate buffer before beginning each test. This will purge the processor cache and allow one to see the memory subsystem without the acceleration due to the processor cache. π§Ό-P #β bind processes/threads to processors, starting with this cpu#. Only available on some platforms. The first sub process or thread will begin on the specified processor. Future processes or threads will be placed on the next processor. Once the total number of cpus is exceeded then future processes or threads will be placed in a round robin fashion. π―-q #β set maximum record size (in Kbytes) for auto mode. One may also specify-q #k(size in Kbytes) or-q #m(size in Mbytes) or-q #g(size in Gbytes). See-yfor minimum record size. π-Qβ bestie, this one makes offset/latency files π. Iozone will create latency versus offset data files that you can import into a graphics package and plot. Why do you care? Because it's how you find out if certain offsets have very high latencies β like, the exact point where UFS allocates its first indirect block π. With this option you can literally see the impacts of the extent allocations for extent based filesystems. Plotting is the vibe check here, fr fr.-r #β sets the record size you wanna test, in Kbytes. You can also say-r #k(size in Kbytes) or-r #m(size in Mbytes) or-r #g(size in Gbytes). Pick your unit, slay β¨-Rβ generate an Excel report π. Iozone will spit out an Excel compatible report to standard out. This file may be imported with Microsoft Excel (space delimited) and used to create a graph of the filesystem performance. β οΈ Note: the 3D graphs are column oriented. You will need to select this when graphing, because the default in Excel is row oriented data. Not me forgetting that and getting a cursed graph π-s #β sets the size of the file to test, in Kbytes. Also takes-s #k(size in Kbytes) or-s #m(size in Mbytes) or-s #g(size in Gbytes). Same unit energy as-r, iconic π-S #β set the processor cache size to that value (in Kbytes). This tells Iozone the size of the processor cache. It's used internally for buffer alignment and for the purge functionality. It's giving behind-the-scenes main character π«Ά-t #β run Iozone in a throughput mode. This option lets you specify how many threads or processes to have active during the measurement. Multitasking queen energy π-Tβ use POSIX pthreads for throughput tests. Available on platforms that have POSIX threads, iykyk.-u #β set the upper limit on the number of processes to run. When running throughput tests, this option lets you specify the greatest number of processes or threads to start. This option should be used in conjunction with the-loption. They're a package deal, bestie π-U mountpointβ mount point to unmount and remount between tests. Iozone will unmount and remount this mount point before beginning each test. This guarantees that the buffer cache does not contain any of the file under test. No stale cache sneaking into your numbers β¨-vβ display the version of Iozone. Short, sweet, iconic.-V #β specify a pattern that is to be written to the temporary file and validated for accuracy in each of the read tests. Pattern check, periodt π₯-wβ do not unlink temporary files when finished using them. Leaving them in place like little souvenirs π-Wβ lock the file when reading or writing.-xβ turn off stone-walling. So, stone-walling is a technique used internally by Iozone, and it's used during the throughput tests. Here's the tea β: the code starts all threads or processes and then stops them on a barrier. Once they're all ready to start, they're all released at the same time. The moment that any of the threads or processes finish their work, then the entire test is terminated and throughput is calculated on the total I/O that was completed up to this point. This ensures that the entire measurement was taken while all of the processes or threads were running in parallel. This flag lets you turn off the stone-walling and see what happens. Science, but make it chaos π-X filenameβ specify a filename that will be used for the write telemetry information. The file contains lines withoffset,size,delay_in_milliseconds. Each of these lines is used to perform an I/O operation. This is used when an application's specific I/O operations are known, and one wishes to benchmark the system with this specific application file behavior. Replay that workload, bestie π¦-y #β set the minimum record size (in Kbytes) for auto mode. Also takes-y #k(size in Kbytes) or-y #m(size in Mbytes) or-y #g(size in Gbytes). See-qfor maximum record size. They're the record-size duo πΈ-Y filenameβ specify a filename that will be used for the read telemetry information. The file contains lines withoffset,size,delay_in_milliseconds. Each of these lines is used to perform an I/O operation. Same deal as-Xbut for reads β used when an application's specific I/O operations are known and you wanna benchmark the system with that exact application file behavior. Twin flames fr fr π-zβ used in conjunction with-ato test all possible record sizes. Normally Iozone omits testing of small record sizes for very large files when used in full automatic mode. This option forces Iozone to include the small record sizes in the automatic tests also. Don't skip the little ones, they matter π-Zβ enable mixing ofmmapI/O and file I/O. Two I/O styles, one test, obsessed π-+m filenameβ specify a filename that will be used to specify the clients in a distributed measurement. The file contains one line for each client. The fields are space delimited:- Field 1 is the client name.
- Field 2 is the working directory, on the client, where Iozone will run.
- Field 3 is the path to the executable Iozone on the client.
-+nβ no retests selected. Used to prevent retests from running. We're done, no round two π ββοΈ-+Nβ no truncating or deleting of previous test file before the sequential write test. Useful only after-wwas used in a previous command to leave the test file in place for reuse. This flag is of limited use β when a single retest is not enough, or to easily control when sequential write retests occur without file truncation or deletion. Niche but iconic β¨-+uβ used to enable CPU statistics collection. Numbers on numbers, we love data π-+dβ diagnostic mode to troubleshoot a broken file I/O subsystem. Detective era π-+p percentage_readsβ set the percentage of threads/processes that will perform read testing in the mixed workload test case. Choose your read ratio, bestie π-+rβ enableO_RSYNC | O_SYNCon all testing.-+lβ enable byte range locking.-+Lβ enable byte range locking & shared file mode.-+Dβ enableO_DSYNCon all testing.-+tβ enable network performance test. Use with-+m. Dynamic duo π-+A#β enablemadvisebehavior:0= normal,1= random,2= sequential,3= dontneed,4= willneed. Pick your madvise mood π-+Bβ enable sequential mixed workload testing.-+Tβ enable time stamps logging β°-+hβ manually set hostname.-+w#β percentage of data to be de-dupable between files.
β¨ AUTHOR β¨
- Original Author: William D. Norcott.
wnorcott@us.oracle.com - Features & extensions: Don Capps
capps@iozone.org
And that's the whole page, bestie!! πβ¨ This was the IOZONE(1) manual page, section 1 β huge shoutout to the legends who wrote it and to whoever packaged this version of the docs. Go benchmark something and make them proud ππ¦π
π¦ where this page comes from
- alpine 3.24: iozone-doc 3.510-r0 Β· custom
- debian bookworm: iozone3 489-1
- debian trixie: iozone3 507-2
- ubuntu jammy: iozone3 489-1
- ubuntu noble: iozone3 506-1
- ubuntu questing: iozone3 507-2
- ubuntu resolute: iozone3 508-1
- ubuntu stonking: iozone3 510-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms