服务器性能测试

==作者:YB-Chi==

[toc]

磁盘io测试

读取测试
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[root@bogon fio]# BS=4k MODE=read TIME=100 fio ./config-file.ini 
job1: (g=0): rw=read, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=1
fio-3.7
Starting 1 thread
Jobs: 1 (f=1): [R(1)][100.0%][r=147MiB/s,w=0KiB/s][r=37.6k,w=0 IOPS][eta 00m:00s]
job1: (groupid=0, jobs=1): err= 0: pid=8613: Tue Jun 25 11:27:34 2024
read: IOPS=40.4k, BW=158MiB/s (166MB/s)(15.4GiB/100001msec)
clat (usec): min=11, max=162077, avg=23.80, stdev=175.39
lat (usec): min=11, max=162077, avg=23.91, stdev=175.40
clat percentiles (usec):
| 1.00th=[ 16], 5.00th=[ 19], 10.00th=[ 19], 20.00th=[ 20],
| 30.00th=[ 22], 40.00th=[ 22], 50.00th=[ 24], 60.00th=[ 25],
| 70.00th=[ 26], 80.00th=[ 27], 90.00th=[ 28], 95.00th=[ 30],
| 99.00th=[ 34], 99.50th=[ 39], 99.90th=[ 67], 99.95th=[ 89],
| 99.99th=[ 314]
bw ( KiB/s): min= 1024, max=191136, per=100.00%, avg=161729.37, stdev=25214.02, samples=199
iops : min= 256, max=47784, avg=40432.32, stdev=6303.50, samples=199
lat (usec) : 20=21.50%, 50=78.27%, 100=0.19%, 250=0.03%, 500=0.01%
lat (usec) : 750=0.01%, 1000=0.01%
lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01%
lat (msec) : 250=0.01%
cpu : usr=9.87%, sys=27.66%, ctx=4042135, majf=0, minf=11
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=4042437,0,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):
READ: bw=158MiB/s (166MB/s), 158MiB/s-158MiB/s (166MB/s-166MB/s), io=15.4GiB (16.6GB), run=100001-100001msec

Disk stats (read/write):
sda: ios=4037648/61, merge=0/3, ticks=64698/2082, in_queue=66107, util=64.25%
写入测试
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[root@bogon fio]# BS=4k MODE=write TIME=100 fio ./config-file.ini 
job1: (g=0): rw=write, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=1
fio-3.7
Starting 1 thread
Jobs: 1 (f=1): [W(1)][100.0%][r=0KiB/s,w=2248KiB/s][r=0,w=562 IOPS][eta 00m:00s]
job1: (groupid=0, jobs=1): err= 0: pid=8872: Tue Jun 25 11:30:04 2024
write: IOPS=670, BW=2682KiB/s (2747kB/s)(262MiB/100018msec)
clat (usec): min=161, max=232548, avg=1489.88, stdev=7284.14
lat (usec): min=161, max=232548, avg=1490.07, stdev=7284.16
clat percentiles (usec):
| 1.00th=[ 186], 5.00th=[ 196], 10.00th=[ 200], 20.00th=[ 206],
| 30.00th=[ 212], 40.00th=[ 217], 50.00th=[ 219], 60.00th=[ 223],
| 70.00th=[ 229], 80.00th=[ 330], 90.00th=[ 1483], 95.00th=[ 1844],
| 99.00th=[ 29492], 99.50th=[ 44303], 99.90th=[101188], 99.95th=[119014],
| 99.99th=[177210]
bw ( KiB/s): min= 224, max= 5120, per=100.00%, avg=2682.70, stdev=1029.12, samples=200
iops : min= 56, max= 1280, avg=670.66, stdev=257.30, samples=200
lat (usec) : 250=76.01%, 500=7.73%, 750=1.95%, 1000=2.38%
lat (msec) : 2=7.73%, 4=0.35%, 10=0.27%, 20=1.05%, 50=2.13%
lat (msec) : 100=0.31%, 250=0.11%
cpu : usr=0.21%, sys=0.88%, ctx=67076, majf=0, minf=8
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,67073,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=2682KiB/s (2747kB/s), 2682KiB/s-2682KiB/s (2747kB/s-2747kB/s), io=262MiB (275MB), run=100018-100018msec

Disk stats (read/write):
sda: ios=9/67041, merge=0/2, ticks=34/101511, in_queue=101534, util=99.34%
文章作者: CYBSKY
文章链接: https://cybsky.top/2024/06/25/cyb-mds/linux/服务器性能测试/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 CYBSKY