11-30-2020, 11:18 PM
(11-30-2020, 04:31 PM)xyzzy Wrote: How about that performance? Since you have flash reformatted to F2FS, try the benchmark I posted earlier. I think it would be interesting to see how F2FS compares to ext4 with aligned blocks vs ext4 with unaligned blocks.
I have a archlinux install from scrath with ext4 partitions. I used https://github.com/cosmos72/fstransform to convert my data filesystem to f2fs. root filesystem stayed in ext4, one day i'll migrate it too. So :
/dev/mmcblk2p2 on /home type f2fs (rw,relatime,lazytime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,fsync_mode=posix)
┌─[remy@ecaz][~/mes_docs]
└»»[$]fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --filename=test.fio --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75 --name=f2fs
f2fs: (g=0): rw=randrw, bs=® 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
fio-3.23
Starting 1 process
f2fs: Laying out IO file (1 file / 4096MiB)
Jobs: 1 (f=1): [m(1)][100.0%][r=15.9MiB/s,w=5478KiB/s][r=4080,w=1369 IOPS][eta 00m:00s]
f2fs: (groupid=0, jobs=1): err= 0: pid=937275: Tue Dec 1 06:15:06 2020
read: IOPS=3521, BW=13.8MiB/s (14.4MB/s)(3070MiB/223187msec)
bw ( KiB/s): min= 9416, max=18704, per=100.00%, avg=14095.10, stdev=1180.16, samples=445
iops : min= 2354, max= 4676, avg=3523.64, stdev=295.07, samples=445
write: IOPS=1176, BW=4707KiB/s (4820kB/s)(1026MiB/223187msec); 0 zone resets
bw ( KiB/s): min= 3128, max= 6432, per=100.00%, avg=4710.35, stdev=438.33, samples=445
iops : min= 782, max= 1608, avg=1177.40, stdev=109.62, samples=445
cpu : usr=8.41%, sys=40.23%, ctx=1414441, majf=0, minf=17
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.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.1%, >=64=0.0%
issued rwts: total=785920,262656,0,0 short=0,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=64
Run status group 0 (all jobs):
READ: bw=13.8MiB/s (14.4MB/s), 13.8MiB/s-13.8MiB/s (14.4MB/s-14.4MB/s), io=3070MiB (3219MB), run=223187-223187msec
WRITE: bw=4707KiB/s (4820kB/s), 4707KiB/s-4707KiB/s (4820kB/s-4820kB/s), io=1026MiB (1076MB), run=223187-223187msec
Disk stats (read/write):
mmcblk2: ios=784214/262403, merge=1415/198, ticks=10430260/3649931, in_queue=14080224, util=100.00%