不太行啊,看看我昨天测的
root@tidb3:/dev# fio --bs=4k --ioengine=libaio --iodepth=64 --direct=1 --rw=write --numjobs=32 --time_based --runtime=30 --randrepeat=0 --group_reporting --name=fio-read --size=10G --filename=/tidb-data/fiotest
fio-read: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
…
fio-3.28
Starting 32 processes
Jobs: 32 (f=32): [W(32)][100.0%][w=3614MiB/s][w=925k IOPS][eta 00m:00s]
fio-read: (groupid=0, jobs=32): err= 0: pid=5267: Thu Jun 6 10:36:53 2024
write: IOPS=858k, BW=3350MiB/s (3513MB/s)(98.2GiB/30003msec); 0 zone resets
slat (nsec): min=1323, max=3566.9k, avg=5601.99, stdev=4799.29
clat (usec): min=36, max=12578, avg=2381.51, stdev=407.84
lat (usec): min=48, max=12583, avg=2387.25, stdev=407.69
clat percentiles (usec):
| 1.00th=[ 1680], 5.00th=[ 2040], 10.00th=[ 2089], 20.00th=[ 2147],
| 30.00th=[ 2180], 40.00th=[ 2212], 50.00th=[ 2245], 60.00th=[ 2343],
| 70.00th=[ 2474], 80.00th=[ 2638], 90.00th=[ 2868], 95.00th=[ 3097],
| 99.00th=[ 3523], 99.50th=[ 3785], 99.90th=[ 5342], 99.95th=[ 6718],
| 99.99th=[10159]
bw ( MiB/s): min= 2491, max= 3724, per=99.97%, avg=3349.17, stdev= 9.71, samples=1888
iops : min=637779, max=953512, avg=857386.29, stdev=2486.50, samples=1888
lat (usec) : 50=0.01%, 100=0.01%, 250=0.02%, 500=0.17%, 750=0.19%
lat (usec) : 1000=0.17%
lat (msec) : 2=2.54%, 4=96.59%, 10=0.32%, 20=0.01%
cpu : usr=3.71%, sys=17.36%, ctx=8969805, majf=1, minf=1798
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=0,25731196,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):
WRITE: bw=3350MiB/s (3513MB/s), 3350MiB/s-3350MiB/s (3513MB/s-3513MB/s), io=98.2GiB (105GB), run=30003-30003msec