Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
write825MiB825MiBs992MiB992MiB
RAID/compressionReadWriteRandom ReadRandom Readwrite
RAIDZ1 (LZ4)894MiB/s-894MiB/s568MiB/s-568MiB/s99.2MiB/s-99.2MiB/82.5MiB/s-82.5MiB/s
RAIDZ1 (LZ4OFF)

Commands used

1033MiB/s-1033MiB/s

998MiB/s-998MiB/s

967MiB/s-967MiB/s

589MiB/s-589MiB/s

608MiB/s-608MiB/s

299MiB/s-299MiB/s

167MiB/s-167MiB/s

168MiB/s-168MiB/s

166MiB/s-166MiB/s

73.4MiB/s-73.4MiB/s

62.4MiB/s-62.4MiB/s 

57.0MiB/s-57.0MiB/s







Commands used

Code Block
cd /mnt/pool/shared/user
sync;fio
Code Block
cd /mnt/pool/shared/user
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=testtest0 --bs=4k --size=4G --readwrite=write --ramp_time=4
sleep 5
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=testtest0 --bs=4k --size=4G --readwrite=writeread --ramp_time=4
sleep 5
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=testtest1 --filename=test --bs=4k --size=4G --readwrite=randwrite --ramp_time=4
sleep 5
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=testtest1 --filename=test --bs=4k --size=4G --readwrite=randread --ramp_time=4

...

Code Block
root@truenas:/mnt/pool/shared/user# zfs get all pool |grep comp
pool  compressratio         1.61x                  -
pool  compression           lz4                    local
pool  refcompressratio      1.00x                  -




RAIDZ1 (LZ4) commands output

Code Block
root@truenas:/mnt/pool/shared/user# zfs get all pool/shared |grep comp
pool/shared  compressratio            1.41x                    -
pool/shared  compression              lz4                      inherited from pool
pool/shared  refcompressratio         1.41x                    -

RAIDZ1 (LZ) commands output

Code Block
root@truenas:/mnt/pool/shared/user# sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=randwrite --ramp_time=4
test: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
test: Laying out IO file (1 file / 4096MiB)
Jobs: 1 (f=0): [f(1)][100.0%][w=147MiB/s][w=37.6k IOPS][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=41307: Thu Apr 10 12:49:43 2025
  write: IOPS=21.1k, BW=82.5MiB/s (86.5MB/s)(3672MiB/44503msec); 0 zone resets
    slat (usec): min=4, max=80062, avg=45.37, stdev=167.42
    clat (nsec): min=614, max=4072.6k, avg=1133.86, stdev=6985.89
     lat (usec): min=5, max=80072, avg=46.50, stdev=167.70
    clat percentiles (nsec):
     |  1.00th=[  740],  5.00th=[  836], 10.00th=[  884], 20.00th=[  924],
     | 30.00th=[  956], 40.00th=[  972], 50.00th=[  996], 60.00th=[ 1020],
     | 70.00th=[ 1048], 80.00th=[ 1080], 90.00th=[ 1192], 95.00th=[ 1384],
     | 99.00th=[ 2008], 99.50th=[ 3312], 99.90th=[24704], 99.95th=[41728],
     | 99.99th=[72192]
   bw (  KiB/s): min=48766, max=137119, per=98.81%, avg=83487.14, stdev=11581.15, samples=87
   iops        : min=12191, max=34279, avg=20872.08, stdev=2895.09, samples=87
  lat (nsec)   : 750=1.20%, 1000=50.42%
  lat (usec)   : 2=47.36%, 4=0.59%, 10=0.14%, 20=0.16%, 50=0.10%
  lat (usec)   : 100=0.02%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01%
  lat (msec)   : 2=0.01%, 4=0.01%, 10=0.01%
  cpu          : usr=3.69%, sys=85.07%, ctx=107206, majf=0, minf=37
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=0,940003,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
  WRITE: bw=82.5MiB/s (86.5MB/s), 82.5MiB/s-82.5MiB/s (86.5MB/s-86.5MB/s), io=3672MiB (3850MB), run=44503-44503msec


root@truenas:/mnt/pool/shared/user# sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=randread --ramp_time=4=1 --name=test --filename=test --bs=4k --size=4G --readwrite=randread --ramp_time=4
test: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
Jobs: 1 (f=1): [r(1)][91.3%][r=160MiB/s][r=41.0k IOPS][eta 00m:04s]
test: (groupid=0, jobs=1): err= 0: pid=41962: Thu Apr 10 12:50:58 2025
  read: IOPS=25.4k, BW=99.2MiB/s (104MB/s)(3708MiB/37391msec)
    slat (usec): min=2, max=467, avg=38.12, stdev=11.50
    clat (nsec): min=587, max=54938, avg=738.69, stdev=251.78
     lat (usec): min=3, max=470, avg=38.86, stdev=11.53
    clat percentiles (nsec):
     |  1.00th=[  636],  5.00th=[  668], 10.00th=[  684], 20.00th=[  692],
     | 30.00th=[  700], 40.00th=[  708], 50.00th=[  716], 60.00th=[  724],
     | 70.00th=[  740], 80.00th=[  756], 90.00th=[  804], 95.00th=[  876],
     | 99.00th=[ 1012], 99.50th=[ 1096], 99.90th=[ 2416], 99.95th=[ 3056],
     | 99.99th=[14144]
   bw (  KiB/s): min=91048, max=157648, per=98.65%, avg=100191.19, stdev=8691.21, samples=74
   iops        : min=22762, max=39412, avg=25047.76, stdev=2172.79, samples=74
  lat (nsec)   : 750=76.93%, 1000=21.93%
  lat (usec)   : 2=1.03%, 4=0.08%, 10=0.01%, 20=0.01%, 50=0.01%
  lat (usec)   : 100=0.01%
  cpu          : usr=2.95%, sys=96.97%, ctx=420, majf=0, minf=37
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=949364,0,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
   READ: bw=99.2MiB/s (104MB/s), 99.2MiB/s-99.2MiB/s (104MB/s-104MB/s), io=3708MiB (3889MB), run=37391-37391msec

root@truenas:/mnt/pool/shared/user# sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=write --ramp_time=4
test: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
Jobs: 1 (f=1): [W(1)][53.8%][w=555MiB/s][w=142k IOPS][eta 00m:06s]
test: (groupid=0, jobs=1): err= 0: pid=43581: Thu Apr 10 12:53:42 2025
  write: IOPS=145k, BW=568MiB/s (595MB/s)(1808MiB/3184msec); 0 zone resets
    slat (usec): min=3, max=7144, avg= 5.85, stdev=13.87
    clat (nsec): min=581, max=149242, avg=722.02, stdev=731.07
     lat (usec): min=4, max=7154, avg= 6.57, stdev=13.94
    clat percentiles (nsec):
     |  1.00th=[  636],  5.00th=[  644], 10.00th=[  652], 20.00th=[  660],
     | 30.00th=[  668], 40.00th=[  676], 50.00th=[  684], 60.00th=[  692],
     | 70.00th=[  700], 80.00th=[  732], 90.00th=[  844], 95.00th=[  892],
     | 99.00th=[  972], 99.50th=[ 1144], 99.90th=[ 1576], 99.95th=[ 4384],
     | 99.99th=[47360]
   bw (  KiB/s): min=565370, max=595054, per=99.72%, avg=579799.00, stdev=12657.07, samples=6
   iops        : min=141342, max=148763, avg=144949.50, stdev=3164.21, samples=6
  lat (nsec)   : 750=82.16%, 1000=17.03%
  lat (usec)   : 2=0.73%, 4=0.02%, 10=0.02%, 20=0.01%, 50=0.01%
  lat (usec)   : 100=0.01%, 250=0.01%
  cpu          : usr=13.51%, sys=84.32%, ctx=1523, majf=0, minf=37
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=0,462792,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
  WRITE: bw=568MiB/s (595MB/s), 568MiB/s-568MiB/s (595MB/s-595MB/s), io=1808MiB (1896MB), run=3184-3184msec

RAIDZ1 (OFF) commands output

Code Block
root@truenas:/mnt/pool/shared/user# zfs get all pool/shared |grep comp
pool/shared  compressratio            1.41x                    -
pool/shared  compression              off                      local
pool/shared  refcompressratio         1.41x                    -


Code Block
root@truenas:/mnt/pool/shared/user# cd /mnt/pool/shared/user
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=write --ramp_time=4
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=read --ramp_time=4
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=randwrite --ramp_time=4
sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=randread --ramp_time=4
test: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
Jobs: 1 (f=1): [W(1)][53.8%][w=606MiB/s][w=155k IOPS][eta 00m:06s]
test: (groupid=0, jobs=1): err= 0: pid=48964: Thu Apr 10 13:03:16 2025
  write: IOPS=151k, BW=589MiB/s (617MB/s)(1754MiB/2980msec); 0 zone resets
    slat (usec): min=3, max=8392, avg= 5.53, stdev=23.09
    clat (nsec): min=593, max=3842.7k, avg=762.98, stdev=6482.39
     lat (usec): min=4, max=8402, avg= 6.30, stdev=24.11
    clat percentiles (nsec):
     |  1.00th=[  644],  5.00th=[  660], 10.00th=[  660], 20.00th=[  668],
     | 30.00th=[  676], 40.00th=[  684], 50.00th=[  692], 60.00th=[  700],
     | 70.00th=[  724], 80.00th=[  812], 90.00th=[  892], 95.00th=[  940],
     | 99.00th=[ 1048], 99.50th=[ 1176], 99.90th=[ 1928], 99.95th=[ 4960],
     | 99.99th=[53504]
   bw (  KiB/s): min=569664, max=630376, per=99.81%, avg=601526.00, stdev=21788.41, samples=5
   iops        : min=142416, max=157594, avg=150381.40, stdev=5447.09, samples=5
  lat (nsec)   : 750=75.24%, 1000=22.93%
  lat (usec)   : 2=1.74%, 4=0.04%, 10=0.03%, 20=0.01%, 50=0.01%
  lat (usec)   : 100=0.01%, 250=0.01%, 500=0.01%, 1000=0.01%
  lat (msec)   : 2=0.01%, 4=0.01%
  cpu          : usr=14.54%, sys=81.71%, ctx=1094, majf=0, minf=37
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=0,449002,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
  WRITE: bw=589MiB/s (617MB/s), 589MiB/s-589MiB/s (617MB/s-617MB/s), io=1754MiB (1839MB), run=2980-2980msec
test: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
Jobs: 1 (f=0): [/(1)][-.-%][eta 00m:00s]
test: (groupid=0, jobs=1): err= 0: pid=49098: Thu Apr 10 13:03:24 2025
  read: IOPS=264k, BW=1033MiB/s (1083MB/s)(4096MiB/3966msec)
  cpu          : usr=18.54%, sys=81.36%, ctx=11, majf=0, minf=10
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=1048576,0,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
   READ: bw=1033MiB/s (1083MB/s), 1033MiB/s-1033MiB/s (1083MB/s-1083MB/s), io=4096MiB (4295MB), run=3966-3966msec
test: (g=0): rw=randreadrandwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
Jobs: 1 (f=1): [rw(1)][91.3%8%][rw=160MiB101MiB/s][rw=4125.0k9k IOPS][eta 00m:04s05s]
test: (groupid=0, jobs=1): err= 0: pid=4196249133: Thu Apr 10 1213:5004:5821 2025
  readwrite: IOPS=2518.4k8k, BW=9973.2MiB4MiB/s (104MB77.0MB/s)(3708MiB3839MiB/37391msec)52277msec); 0 zone resets
    slat (usec): min=24, max=46746730, avg=3850.1243, stdev=11165.5010
    clat (nsec): min=587615, max=5493821921k, avg=7381583.6911, stdev=25139330.7827
     lat (usec): min=35, max=47046739, avg=3852.8601, stdev=11172.5339
    clat percentiles (nsec):
     |  1.00th=[   636764],  5.00th=[  668 852], 10.00th=[  684 892], 20.00th=[   692940],
     | 30.00th=[  700 988], 40.00th=[  7081020], 50.00th=[  7161064], 60.00th=[  7241096],
     | 70.00th=[  7401144], 80.00th=[  7561208], 90.00th=[  8041496], 95.00th=[  8761944],
     | 99.00th=[ 1012 3856], 99.50th=[ 109610560], 99.90th=[ 241685504], 99.95th=[ 3056100864],
     | 99.99th=[14144]
329728]
   bw (  KiB/s): min=53085, max=136798, per=98.79%, avg=74293.55, stdev=11284.08, samples=103
   iops     bw (  KiB/s): min=9104813271, max=15764834199, per=98.65%, avg=10019118573.1924, stdev=86912820.2198, samples=74103
  lat iops(nsec)   : 750=0.75%, 1000=32.80%
  lat (usec)   : min2=2276261.85%, max4=394123.62%, avg10=250470.7646%, stdev20=21720.7911%, samples50=740.17%
  lat (nsecusec)   : 100=0.18%, 250=0.04%, 500=0.01%, 750=760.93%01%, 1000=210.93%01%
  lat (usecmsec)   : 2=10.03%01%, 4=0.08%01%, 10=0.01%, 20=0.01%, 50=0.01%
  lat (usec)   : 100=0.01%
  cpu          : usr=23.95%45%, sys=9677.97%24%, ctx=420153481, majf=0, minf=3738
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=9493640,0982878,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
   READWRITE: bw=9973.2MiB4MiB/s (104MB77.0MB/s), 9973.2MiB4MiB/s-9973.2MiB4MiB/s (104MB77.0MB/s-104MB/s), io=3708MiB (3889MB), run=37391-37391msec

root@truenas:/mnt/pool/shared/user# sync;fio --randrepeat=1 --ioengine=libaio --direct=1 --name=test --filename=test --bs=4k --size=4G --readwrite=write --ramp_time=477.0MB/s), io=3839MiB (4026MB), run=52277-52277msec
test: (g=0): rw=writerandread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
fio-3.33
Starting 1 process
Jobs: 1 (f=1): [Wr(1)][5386.8%2%][wr=555MiB198MiB/s][wr=142k50.7k IOPS][eta 00m:06s04s]
test: (groupid=0, jobs=1): err= 0: pid=4358149874: Thu Apr 10 1213:5304:4251 2025
  writeread: IOPS=145k42.7k, BW=568MiB167MiB/s (595MB175MB/s)(1808MiB3451MiB/3184msec); 0 zone resets20689msec)
    slat (usec): min=32, max=7144489, avg= 522.8517, stdev=13 6.8769
    clat (nsec): min=581546, max=14924257914, avg=722731.0280, stdev=731296.0720
     lat (usec): min=42, max=7154493, avg= 622.5791, stdev=13 6.9474
    clat percentiles (nsec):
     |  1.00th=[  636596],  5.00th=[  644620], 10.00th=[  652668], 20.00th=[  660684],
     | 30.00th=[  668700], 40.00th=[  676700], 50.00th=[  684716], 60.00th=[  692724],
     | 70.00th=[  700740], 80.00th=[  732756], 90.00th=[  844804], 95.00th=[  892868],
     | 99.00th=[  9721004], 99.50th=[ 11441096], 99.90th=[ 15761608], 99.95th=[ 43842960],
     | 99.99th=[4736017792]
   bw (  KiB/s): min=565370157370, max=595054253968, per=9998.72%82%, avg=579799168814.0017, stdev=1265715047.0780, samples=641
   iops        : min=14134239342, max=14876363492, avg=14494942203.5044, stdev=31643761.2197, samples=641
  lat (nsec)   : 750=8277.16%, 1000=1721.03%82%
  lat (usec)   : 2=0.73%93%, 4=0.02%06%, 10=0.02%01%, 20=0.01%, 50=0.01%
  lat (usec)   : 100=0.01%, 250=0.01%
  cpu          : usr=135.51%06%, sys=8494.32%78%, ctx=1523351, majf=0, minf=37
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued rwts: total=883533,0,462792,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
  WRITE READ: bw=568MiB167MiB/s (595MB175MB/s), 568MiB167MiB/s-568MiB167MiB/s (595MB175MB/s-595MB175MB/s), io=1808MiB3451MiB (1896MB3619MB), run=318420689-3184msec20689msec