
Ich habe einen neuen Server bestellt, weil ich auf einen leistungsstärkeren Server umsteigen muss. Dieser neue Server ist jedoch absolut schrecklich. Ich habe versucht, den Benchmark mithilfe von FIO zu ermitteln, hier ist das Ergebnis.
[root@s206716 ~]# fio --filename=/var/lib/mysql/fio.tmp --size=1m --bs=512 --name=go --rw=write --fdatasync=1
go: (g=0): rw=write, bs=(R) 512B-512B, (W) 512B-512B, (T) 512B-512B, ioengine=psync, iodepth=1
fio-3.19
Starting 1 process
^Cbs: 1 (f=1): [W(1)][39.3%][w=3KiB/s][w=7 IOPS][eta 01m:08s]
fio: terminating on signal 2
go: (groupid=0, jobs=1): err= 0: pid=108048: Thu Apr 20 18:32:15 2023
write: IOPS=18, BW=9401B/s (9401B/s)(397KiB/43242msec); 0 zone resets
clat (usec): min=5, max=126657, avg=951.49, stdev=9446.81
lat (usec): min=5, max=126658, avg=951.94, stdev=9446.80
clat percentiles (usec):
| 1.00th=[ 6], 5.00th=[ 6], 10.00th=[ 9], 20.00th=[ 10],
| 30.00th=[ 13], 40.00th=[ 14], 50.00th=[ 20], 60.00th=[ 22],
| 70.00th=[ 23], 80.00th=[ 25], 90.00th=[ 157], 95.00th=[ 297],
| 99.00th=[ 8094], 99.50th=[102237], 99.90th=[126354], 99.95th=[126354],
| 99.99th=[126354]
bw ( KiB/s): min= 2, max= 118, per=100.00%, avg= 9.21, stdev=20.45, samples=86
iops : min= 4, max= 236, avg=18.43, stdev=40.89, samples=86
lat (usec) : 10=24.43%, 20=30.23%, 50=32.75%, 250=6.55%, 500=3.02%
lat (usec) : 750=0.63%, 1000=0.76%
lat (msec) : 2=0.25%, 4=0.13%, 10=0.38%, 100=0.38%, 250=0.50%
fsync/fdatasync/sync_file_range:
sync (msec): min=2, max=233, avg=53.50, stdev=65.67
sync percentiles (msec):
| 1.00th=[ 3], 5.00th=[ 3], 10.00th=[ 3], 20.00th=[ 3],
| 30.00th=[ 5], 40.00th=[ 5], 50.00th=[ 5], 60.00th=[ 68],
| 70.00th=[ 97], 80.00th=[ 107], 90.00th=[ 132], 95.00th=[ 199],
| 99.00th=[ 226], 99.50th=[ 228], 99.90th=[ 234], 99.95th=[ 234],
| 99.99th=[ 234]
cpu : usr=0.02%, sys=0.09%, ctx=2445, majf=0, minf=17
IO depths : 1=200.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,794,0,0 short=794,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=9401B/s (9401B/s), 9401B/s-9401B/s (9401B/s-9401B/s), io=397KiB (407kB), run=43242-43242msec
Disk stats (read/write):
dm-0: ios=104/2979, merge=0/0, ticks=971/141634, in_queue=142605, util=96.36%, aggrios=104/2973, aggrmerge=0/22, aggrticks=974/143011, aggrin_queue=143985, aggrutil=95.40%
sda: ios=104/2973, merge=0/22, ticks=974/143011, in_queue=143985, util=95.40%
Ich habe keine Ahnung, warum der Geschwindigkeitsprozess so langsam ist. Dies ist kein Produktionsserver. Ich importiere gerade alle Dateien und teste sie. Es gibt also noch keinen Verkehr. Ich habe den Anbieter gebeten, Hardwaretests durchzuführen, und sie sagen, dass es kein Problem gibt.
Was soll ich mit diesem Ding machen? Ich habe viele Dinge getan. Beispielsweise habe ich versucht, auf einen anderen Server zu wechseln, den ich habe (Server mit niedriger Spezifikation), und es gibt kein Problem. Allerdings ist die Leistung dieses Hochleistungsservers sogar noch niedriger als bei anderen.