在rk3588开发板上启用nvme的优势-IOPS接近215k,是tf卡的200倍
注意!网络资料说不要在系统盘用fio测试写入指定名字的文件!搜索“fio 危害 ”
sudo fio --name=randwrite --ioengine=libaio --iodepth=1 --rw=randwrite --bs=4k --direct=0 --size=512M --numjobs=2 --runtime=240 --group_reporting
randwrite: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1
...
fio-3.25
Starting 2 processes
randwrite: Laying out IO file (1 file / 512MiB)
randwrite: Laying out IO file (1 file / 512MiB)
Jobs: 2 (f=2)
randwrite: (groupid=0, jobs=2): err= 0: pid=24595: Tue Jan 31 21:44:04 2023
write: IOPS=215k, BW=839MiB/s (879MB/s)(1024MiB/1221msec); 0 zone resets
slat (usec): min=4, max=13374, avg= 7.93, stdev=109.96
clat (nsec): min=291, max=6630.3k, avg=509.39, stdev=12952.41
lat (usec): min=5, max=13378, avg= 8.55, stdev=110.74
clat percentiles (nsec):
| 1.00th=[ 290], 5.00th=[ 290], 10.00th=[ 290], 20.00th=[ 294],
| 30.00th=[ 294], 40.00th=[ 294], 50.00th=[ 580], 60.00th=[ 580],
| 70.00th=[ 580], 80.00th=[ 580], 90.00th=[ 588], 95.00th=[ 588],
| 99.00th=[ 1752], 99.50th=[ 1752], 99.90th=[ 2040], 99.95th=[ 2040],
| 99.99th=[ 9920]
bw ( KiB/s): min=953480, max=999040, per=100.00%, avg=976260.00, stdev=13213.01, samples=4
iops : min=238368, max=249760, avg=244064.00, stdev=3303.88, samples=4
lat (nsec) : 500=41.81%, 750=56.39%, 1000=0.06%
lat (usec) : 2=1.52%, 4=0.20%, 10=0.01%, 20=0.01%, 50=0.01%
lat (msec) : 10=0.01%
cpu : usr=12.60%, sys=70.27%, ctx=104, majf=0, minf=42
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,262144,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=839MiB/s (879MB/s), 839MiB/s-839MiB/s (879MB/s-879MB/s), io=1024MiB (1074MB), run=1221-1221msec
Disk stats (read/write):
nvme0n1: ios=0/3964, merge=0/7, ticks=0/72939, in_queue=72938, util=45.75%
root@orangepi5:~#