[root@localhost tidb]# fio -direct=0 -fdatasync=1 -iodepth=4 -thread=4 -rw=write -ioengine=libaio -bs=4k -filename=./fio_test -size=20G -runtime=60 -group_reporting -name=write_test
write_test: (g=0): rw=write, bs=® 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=4
fio-3.7
Starting 1 thread
write_test: Laying out IO file (1 file / 20480MiB)
Jobs: 1 (f=1): [W(1)][100.0%][r=0KiB/s,w=45.8MiB/s][r=0,w=11.7k IOPS][eta 00m:00s]
write_test: (groupid=0, jobs=1): err= 0: pid=153520: Thu Apr 21 17:25:11 2022
write: IOPS=11.0k, BW=46.7MiB/s (48.0MB/s)(2802MiB/60001msec)
slat (usec): min=3, max=129, avg= 5.13, stdev= 2.97
clat (usec): min=89, max=987, avg=251.62, stdev=21.68
lat (usec): min=93, max=1002, avg=256.88, stdev=22.51
clat percentiles (usec):
| 1.00th=[ 239], 5.00th=[ 241], 10.00th=[ 241], 20.00th=[ 241],
| 30.00th=[ 243], 40.00th=[ 243], 50.00th=[ 245], 60.00th=[ 247],
| 70.00th=[ 249], 80.00th=[ 255], 90.00th=[ 277], 95.00th=[ 285],
| 99.00th=[ 310], 99.50th=[ 383], 99.90th=[ 502], 99.95th=[ 529],
| 99.99th=[ 660]
bw ( KiB/s): min=45245, max=49384, per=100.00%, avg=47830.27, stdev=866.22, samples=119
iops : min=11311, max=12346, avg=11957.52, stdev=216.58, samples=119
lat (usec) : 100=0.01%, 250=72.00%, 500=27.90%, 750=0.10%, 1000=0.01%
fsync/fdatasync/sync_file_range:
sync (nsec): min=47, max=23329, avg=122.47, stdev=250.14
sync percentiles (nsec):
| 1.00th=[ 96], 5.00th=[ 99], 10.00th=[ 100], 20.00th=[ 102],
| 30.00th=[ 103], 40.00th=[ 103], 50.00th=[ 104], 60.00th=[ 104],
| 70.00th=[ 105], 80.00th=[ 110], 90.00th=[ 181], 95.00th=[ 211],
| 99.00th=[ 229], 99.50th=[ 346], 99.90th=[ 450], 99.95th=[ 644],
| 99.99th=[14656]
cpu : usr=3.94%, sys=29.70%, ctx=2152593, majf=0, minf=111
IO depths : 1=0.1%, 2=0.1%, 4=200.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,717439,0,0 short=717437,0,0,0 dropped=0,0,0,0
latency : target=0, window=0, percentile=100.00%, depth=4
Run status group 0 (all jobs):
WRITE: bw=46.7MiB/s (48.0MB/s), 46.7MiB/s-46.7MiB/s (48.0MB/s-48.0MB/s), io=2802MiB (2939MB), run=60001-60001msec
Disk stats (read/write):
dm-0: ios=0/1432322, merge=0/0, ticks=0/35400, in_queue=35395, util=59.10%, aggrios=0/1434915, aggrmerge=0/4, aggrticks=0/34045, aggrin_queue=33810, aggrutil=56.34%
sda: ios=0/1434915, merge=0/4, ticks=0/34045, in_queue=33810, util=56.34%
[root@localhost tidb]#