Tag Archives: fs

iozone: fs benchmark

Install iozone(in ubuntu apt-get install iozone3 -y)

Run: iozone -i0 -i2 -s2g -r64k, where:

  • -i0 line read/write (everpresent test)
  • -i2 random read/write (interested in test)
  • -s2g size of test file in gigabytes (may use another postfix k, m) this file should me more then cache size
  • -r64k size of fs block (use 4-64k)
  • -O if you want to see results in operations per second

Example result (in KB):

        File size set to 2097152 KB
        Record Size 64 KB
        Command line used: iozone -i0 -i2 -s2g -r64k
        Output is in Kbytes/sec
        Time Resolution = 0.000001 seconds.
        Processor cache size set to 1024 Kbytes.
        Processor cache line size set to 32 bytes.
        File stride size set to 17 * record size.
                                                            random  random    bkwd   record   stride
              KB  reclen   write rewrite    read    reread    read   write    read  rewrite     read   fwrite frewrite   fread  freread
         2097152      64   14485  219053                   5057290   31331

Howto make tests on NFS