IOzone: Difference between revisions

From Leo's Notes
This page was last edited on 19 January 2021, at 00:38.
Created page with "IOzone is a filesystem benchmark that can test read and write performance. It supports both sequential and random IO. * Project Website: http://iozone.org/ * Download: http:/..."
 
Line 38: Line 38:
|Specifies the test to run.  Most commonly used tests are 0 (write), 1 (read), 2 (random).
|Specifies the test to run.  Most commonly used tests are 0 (write), 1 (read), 2 (random).
You can specify more than one test to run by calling with multiple <code>-i</code> options.
You can specify more than one test to run by calling with multiple <code>-i</code> options.
 
{{columns-list|colwidth=15em|
0: write/rewrite
<!-- start at 0 -->
 
: &nbsp; 0. write/rewrite
# read/reread
# read/reread
# random-read/write
# random-read/write
Line 53: Line 53:
# pwritev/re-pwritev
# pwritev/re-pwritev
# preadv/re-preadv
# preadv/re-preadv
}}
|-
|-
|<code>-R</code>
|<code>-R</code>

Revision as of 00:38, 19 January 2021

IOzone is a filesystem benchmark that can test read and write performance. It supports both sequential and random IO.

Usage

Invoke with -a for automatic mode. -g to extend the maximum file size, or -s to specify a specific size. -n to specify the minimum file lsize used in automatic mode (64K).

All size values can be given with units k, m, or g, etc. Eg. 128k, 512m
Option Description
-a automatic mode. Tests in record sizes 4K to 16M and file sizes 64K to 512M
-g size maximum file size. Useful to test IO without memory caching interfering.
-n size minimum file size (64K default)
-s size specific size (overrides -g and -n)
-S size specify cache size
-r size record size
-w do not delete temporary files, useful for read tests
-e ensure flush time is included in calculations
-i Specifies the test to run. Most commonly used tests are 0 (write), 1 (read), 2 (random).

You can specify more than one test to run by calling with multiple -i options.

  0. write/rewrite
  1. read/reread
  2. random-read/write
  3. read-backwards
  4. rewrite record
  5. stride read
  6. fwrite/re-fwrite
  7. fread/re-fread
  8. random mix
  9. pwrite/re-pwrite
  10. pread/re-pread
  11. pwritev/re-pwritev
  12. preadv/re-preadv
-R exports a report in csv format
-t Number of threads to run; to test throughput.

Examples

## Testing read/write on a 1GB file with 32 threads. Use 16K record sizes
$ iozone -i 0 -i 1 -s 1g -r 16k -t 32