FreeVM虚拟化平台在泰山200 2280的Kunpeng920 ARM处理器服务器下的性能测试

发布时间:2024-12-27 点击数:327


1、 测试结果概述

1.1   测试平台

本次测试采用ARM架构的Kunpeng 920处理器平台,虚拟化平台采用FreeVM For ARM版本。

服务器型号

华为泰山200 2280  

CPU                

双路Kunpeng 920 32Core

内存

DDR4 2400 256GB   

硬盘

致钛 Ti7100Plus

虚拟化平台

FreeVM For ARM

虚拟机系统(磁盘测试)

deepin 23(ARM) 

虚拟机系统(CPU测试)

openeuler 2403

 

1.2   磁盘测试结果

采用fio测试,测试NVME SSD为致钛 Ti7100Plus 1TB版本。

测试项

物理机

ARM虚拟机 

差距

顺序写

5401 MB/s

5172 MB/s

-4.2%

顺序读

6748 MB/s

9932 MB/s

+47%

随机写

74.4k IOPS

58.5k IOPS

-21%

随机读

239k IOPS

70.8k IOPS

-70%

 

1.3   CPU测试结果

采用sysbench测试,线程数为32EPS分数越高越好。

测试项

物理机

ARM虚拟机

差距

Sysbench EPS

732990

729042

-0.5%

 

1.4   内存测试结果

采用sysbench测试,线程数为32,带宽越大越好。

测试项

物理机

ARM虚拟机

差距

Sysbench Mem  

63983 MiB/s

51246 MiB/s

-19.9%

 

2、 磁盘测试

2.1物理机测试

2.1.1 物理机FIO测试顺序写

fio -direct=1 -iodepth=128 -rw=write   -ioengine=libaio -bs=128k -numjobs=12 -time_based=1 -runtime=10   -group_reporting -allow_mounted_write=1 -filename=/dev/nvme0n1 -name=test                

                 

test: (g=0): rw=write, bs=(R) 128KiB-128KiB, (W)   128KiB-128KiB, (T) 128KiB-128KiB, ioengine=libaio, iodepth=128                

...                

fio-3.34                

Starting 12 processes                

Jobs: 12 (f=12):   [W(12)][100.0%][w=5050MiB/s][w=40.4k IOPS][eta 00m:00s]                

test: (groupid=0, jobs=12): err= 0: pid=98897:   Fri Dec 27 13:49:55 2024                

  write:   IOPS=41.2k, BW=5151MiB/s (5401MB/s)(50.5GiB/10035msec); 0 zone resets                

    slat   (usec): min=5, max=121, avg= 9.21, stdev= 3.13                

    clat   (msec): min=3, max=157, avg=37.23, stdev=23.99                

     lat   (msec): min=3, max=157, avg=37.24, stdev=23.99                

    clat   percentiles (msec):                

     |  1.00th=[     17],  5.00th=[   19], 10.00th=[   20], 20.00th=[   21],                

     |   30.00th=[   23], 40.00th=[   23], 50.00th=[   23], 60.00th=[   36],                

     |   70.00th=[   45], 80.00th=[   45], 90.00th=[   77], 95.00th=[   89],                

     |   99.00th=[  128], 99.50th=[  140], 99.90th=[  148], 99.95th=[  148],                

     |   99.99th=[  159]                

   bw   (  MiB/s): min= 2656, max= 7619,   per=99.85%, avg=5143.18, stdev=135.06, samples=239                

     iops        : min=21251,   max=60959, avg=41145.25, stdev=1080.50, samples=239                

  lat   (msec)   : 4=0.01%, 10=0.09%,   20=19.05%, 50=62.46%, 100=15.89%                

  lat   (msec)   : 250=2.52%                

  cpu          : usr=1.84%, sys=1.92%, ctx=385216,   majf=0, minf=93                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=0.1%, >=64=99.8%                

       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.1%                

     issued   rwts: total=0,413506,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=128                

                 

Run status group 0 (all jobs):                

  WRITE:   bw=5151MiB/s (5401MB/s), 5151MiB/s-5151MiB/s (5401MB/s-5401MB/s), io=50.5GiB   (54.2GB), run=10035-10035msec                

2.1.2 物理机FIO测试顺序读

fio -direct=1 -iodepth=128 -rw=read   -ioengine=libaio -bs=128k -numjobs=12 -time_based=1 -runtime=10   -group_reporting -allow_mounted_write=1 -filename=/dev/nvme0n1 -name=test                

         test:   (g=0): rw=read, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB,   ioengine=libaio, iodepth=128                

...                

fio-3.34                

Starting 12 processes                

Jobs: 12 (f=12):   [R(12)][100.0%][r=6552MiB/s][r=52.4k IOPS][eta 00m:00s]                

test: (groupid=0, jobs=12): err= 0: pid=99041:   Fri Dec 27 13:50:23 2024                

  read:   IOPS=51.5k, BW=6435MiB/s (6748MB/s)(63.0GiB/10030msec)                

    slat   (usec): min=2, max=1169, avg= 4.56, stdev= 7.85                

    clat   (usec): min=5470, max=95740, avg=29798.52, stdev=14236.39                

     lat   (usec): min=5481, max=95744, avg=29803.08, stdev=14236.42                

    clat   percentiles (usec):                

     |  1.00th=[16909],  5.00th=[17171], 10.00th=[19268],   20.00th=[19530],                

     |   30.00th=[19530], 40.00th=[19792], 50.00th=[19792], 60.00th=[30802],                

     |   70.00th=[39060], 80.00th=[39584], 90.00th=[51119], 95.00th=[58983],                

     |   99.00th=[72877], 99.50th=[78119], 99.90th=[84411], 99.95th=[86508],                

     |   99.99th=[88605]                

   bw   (  MiB/s): min= 4280, max= 8299,   per=99.95%, avg=6431.68, stdev=95.11, samples=239                

     iops        : min=34243,   max=66398, avg=51453.28, stdev=760.88, samples=239                

  lat   (msec)   : 10=0.05%, 20=53.08%,   50=36.24%, 100=10.64%                

  cpu          : usr=0.62%, sys=1.91%, ctx=341691,   majf=0, minf=6754                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=0.1%, >=64=99.9%                

       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.1%                

     issued   rwts: total=516361,0,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=128                

                 

Run status group 0 (all jobs):                

   READ:   bw=6435MiB/s (6748MB/s), 6435MiB/s-6435MiB/s (6748MB/s-6748MB/s), io=63.0GiB   (67.7GB), run=10030-10030msec                

                 

Disk stats (read/write):                

  nvme0n1:   ios=508831/81, merge=0/2, ticks=15142039/1399, in_queue=15143496,   util=100.00%                

2.1.3 物理机FIO测试随机写

fio -direct=1 -iodepth=32 -rw=randwrite   -ioengine=libaio -bs=4k -numjobs=4 -time_based=1 -runtime=10 -group_reporting   -allow_mounted_write=1 -filename=/dev/nvme0n1 -name=test                

                 

         test:   (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B,   ioengine=libaio, iodepth=32                

...                

fio-3.34                

Starting 4 processes                

Jobs: 4 (f=4): [w(4)][100.0%][w=288MiB/s][w=73.8k   IOPS][eta 00m:00s]                

test: (groupid=0, jobs=4): err= 0: pid=99150: Fri   Dec 27 13:50:44 2024                

  write:   IOPS=74.4k, BW=290MiB/s (305MB/s)(2906MiB/10003msec); 0 zone resets                

    slat   (nsec): min=1680, max=178083, avg=2262.95, stdev=923.70                

    clat   (usec): min=91, max=16426, avg=1717.56, stdev=603.13                

     lat   (usec): min=93, max=16428, avg=1719.82, stdev=603.05                

    clat   percentiles (usec):                

     |  1.00th=[    824],  5.00th=[ 1045], 10.00th=[   1237], 20.00th=[ 1401],                

     |   30.00th=[ 1532], 40.00th=[ 1614], 50.00th=[ 1680], 60.00th=[ 1745],                

     |   70.00th=[ 1827], 80.00th=[ 1958], 90.00th=[ 2212], 95.00th=[ 2343],                

     |   99.00th=[ 2835], 99.50th=[ 4424], 99.90th=[ 9503], 99.95th=[10945],                

     |   99.99th=[14091]                

   bw   (  KiB/s): min=254688, max=350523,   per=100.00%, avg=298960.58, stdev=4535.80, samples=76                

     iops        : min=63670,   max=87630, avg=74740.11, stdev=1133.99, samples=76                

  lat   (usec)   : 100=0.04%, 250=0.05%,   500=0.01%, 750=0.22%, 1000=4.19%                

  lat   (msec)   : 2=77.32%, 4=17.66%,   10=0.43%, 20=0.08%                

  cpu          : usr=2.16%, sys=4.14%, ctx=76695,   majf=0, minf=34                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=100.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.1%, 64=0.0%, >=64=0.0%                

     issued   rwts: total=0,743860,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=32                

                 

Run status group 0 (all jobs):                

  WRITE:   bw=290MiB/s (305MB/s), 290MiB/s-290MiB/s (305MB/s-305MB/s), io=2906MiB   (3047MB), run=10003-10003msec                

                 

Disk stats (read/write):                

  nvme0n1:   ios=45/736976, merge=0/0, ticks=6/1249621, in_queue=1249629, util=100.00%                

2.1.4 物理机FIO测试随机读

fio -direct=1 -iodepth=32 -rw=randread   -ioengine=libaio -bs=4k -numjobs=4 -time_based=1 -runtime=10 -group_reporting   -allow_mounted_write=1 -filename=/dev/nvme0n1 -name=test                

                        

         test:   (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B,   ioengine=libaio, iodepth=32                

...                

fio-3.34                

Starting 4 processes                

Jobs: 4 (f=4): [r(4)][100.0%][r=939MiB/s][r=240k   IOPS][eta 00m:00s]                

test: (groupid=0, jobs=4): err= 0: pid=99397: Fri   Dec 27 13:51:28 2024                

  read:   IOPS=239k, BW=933MiB/s (978MB/s)(9328MiB/10001msec)                

    slat   (nsec): min=1650, max=285366, avg=2224.97, stdev=576.36                

    clat   (usec): min=12, max=3300, avg=533.00, stdev=416.36                

     lat   (usec): min=14, max=3305, avg=535.23, stdev=416.37                

    clat   percentiles (usec):                

     |  1.00th=[     71],  5.00th=[   78], 10.00th=[   96], 20.00th=[  112],                

     |   30.00th=[  120], 40.00th=[  137], 50.00th=[  478], 60.00th=[  914],                

     |   70.00th=[  938], 80.00th=[  963], 90.00th=[  996], 95.00th=[ 1012],                

     |   99.00th=[ 1045], 99.50th=[ 1057], 99.90th=[ 1090], 99.95th=[ 1106],                

     |   99.99th=[ 1303]                

   bw   (  KiB/s): min=931848, max=974088,   per=100.00%, avg=955586.11, stdev=3086.93, samples=76                

     iops        : min=232962,   max=243522, avg=238896.53, stdev=771.73, samples=76                

  lat   (usec)   : 20=0.01%, 50=0.14%,   100=11.64%, 250=37.27%, 500=1.04%                

  lat   (usec)   : 750=1.04%, 1000=41.34%                

  lat   (msec)   : 2=7.51%, 4=0.01%                

  cpu          : usr=8.51%, sys=13.32%,   ctx=1073263, majf=0, minf=218                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=100.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.1%, 64=0.0%, >=64=0.0%                

     issued   rwts: total=2388053,0,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=32                

                 

Run status group 0 (all jobs):                

   READ:   bw=933MiB/s (978MB/s), 933MiB/s-933MiB/s (978MB/s-978MB/s), io=9328MiB   (9781MB), run=10001-10001msec                

                 

Disk stats (read/write):                

  nvme0n1:   ios=2360058/49, merge=0/2, ticks=1244081/206, in_queue=1244290, util=98.88%                

2.2 虚拟机机测试

2.2.1 虚拟机FIO测试顺序写

fio -direct=1 -iodepth=128 -rw=write   -ioengine=libaio -bs=128k -numjobs=12 -time_based=1 -runtime=10   -group_reporting -filename=/dev/vda -name=test                

                        

  test:   (g=0): rw=write, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB,   ioengine=libaio, iodepth=128                

...                

fio-3.38                

Starting 12 processes                

Jobs: 12 (f=12):   [W(12)][100.0%][w=4890MiB/s][w=39.1k IOPS][eta 00m:00s]                

test: (groupid=0, jobs=12): err= 0: pid=19856:   Fri Dec 27 13:45:16 2024                

  write:   IOPS=39.5k, BW=4933MiB/s (5172MB/s)(48.3GiB/10034msec); 0 zone resets                

    slat   (usec): min=8, max=9073, avg=15.36, stdev=18.28                

    clat   (msec): min=2, max=130, avg=38.88, stdev=16.31                

     lat   (msec): min=2, max=130, avg=38.89, stdev=16.31                

    clat   percentiles (msec):                

     |  1.00th=[     27],  5.00th=[   32], 10.00th=[   33], 20.00th=[   33],                

     |   30.00th=[   33], 40.00th=[   34], 50.00th=[   34], 60.00th=[   34],                

     |   70.00th=[   34], 80.00th=[   40], 90.00th=[   45], 95.00th=[   88],                

     |   99.00th=[  106], 99.50th=[  107], 99.90th=[  114], 99.95th=[  115],                

     |   99.99th=[  118]                

   bw   (  MiB/s): min= 4564, max= 5781,   per=99.95%, avg=4930.31, stdev=24.34, samples=240                

     iops        : min=36512,   max=46255, avg=39442.45, stdev=194.70, samples=240                

  lat   (msec)   : 4=0.01%, 10=0.12%, 20=0.41%,   50=90.17%, 100=8.08%                

  lat   (msec)   : 250=1.21%                

  cpu          : usr=3.26%, sys=4.50%, ctx=56191,   majf=0, minf=89                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=0.1%, >=64=99.8%                

       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.1%                

     issued   rwts: total=0,395945,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=128                

                 

Run status group 0 (all jobs):                

  WRITE:   bw=4933MiB/s (5172MB/s), 4933MiB/s-4933MiB/s (5172MB/s-5172MB/s), io=48.3GiB   (51.9GB), run=10034-10034msec                

                 

Disk stats (read/write):                

  vda:   ios=67/388929, sectors=5487/99557744, merge=0/7, ticks=8/15079051,   in_queue=15079059, util=99.10%                

2.2.2 虚拟机FIO测试顺序读

fio -direct=1 -iodepth=128 -rw=read   -ioengine=libaio -bs=128k -numjobs=12 -time_based=1 -runtime=10   -group_reporting -filename=/dev/vda -name=test                

         test:   (g=0): rw=read, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB,   ioengine=libaio, iodepth=128                

...                

fio-3.38                

Starting 12 processes                

Jobs: 12 (f=12):   [R(12)][100.0%][r=9533MiB/s][r=76.3k IOPS][eta 00m:00s]                

test: (groupid=0, jobs=12): err= 0: pid=19789:   Fri Dec 27 13:44:14 2024                

  read:   IOPS=75.8k, BW=9471MiB/s (9932MB/s)(92.7GiB/10019msec)                

    slat   (usec): min=6, max=901, avg= 9.40, stdev=11.29                

    clat   (usec): min=1371, max=118898, avg=20238.04, stdev=3430.86                

     lat   (usec): min=1379, max=118906, avg=20247.44, stdev=3430.82                

    clat   percentiles (msec):                

     |  1.00th=[     14],  5.00th=[   19], 10.00th=[   19], 20.00th=[   20],                

     |   30.00th=[   20], 40.00th=[   20], 50.00th=[   21], 60.00th=[   21],                

     |   70.00th=[   21], 80.00th=[   21], 90.00th=[   22], 95.00th=[   23],                

     |   99.00th=[   27], 99.50th=[   38], 99.90th=[   72], 99.95th=[   86],                

     |   99.99th=[  102]                

   bw   (  MiB/s): min= 8058, max=10174,   per=100.00%, avg=9473.16, stdev=41.02, samples=240                

     iops        : min=64466,   max=81398, avg=75785.00, stdev=328.16, samples=240                

  lat   (msec)   : 2=0.03%, 4=0.10%, 10=0.43%,   20=47.83%, 50=51.35%                

  lat   (msec)   : 100=0.25%, 250=0.01%                

  cpu          : usr=0.98%, sys=8.38%, ctx=6926,   majf=0, minf=49244                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=0.1%, >=64=99.9%                

       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.1%                

     issued   rwts: total=759158,0,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=128                

                 

Run status group 0 (all jobs):                

   READ:   bw=9471MiB/s (9932MB/s), 9471MiB/s-9471MiB/s (9932MB/s-9932MB/s), io=92.7GiB   (99.5GB), run=10019-10019msec                

                 

Disk stats (read/write):                

  vda:   ios=748406/34, sectors=191591936/368, merge=0/6, ticks=14486981/722,   in_queue=14487798, util=99.16%                

2.2.3 虚拟机FIO测试随机写

fio -direct=1 -iodepth=32 -rw=randwrite   -ioengine=libaio -bs=4k -numjobs=4 -time_based=1 -runtime=10 -group_reporting   -filename=/dev/vda -name=test                

         test:   (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B,   ioengine=libaio, iodepth=32                

...                

fio-3.38                

Starting 4 processes                

Jobs: 4 (f=4): [w(4)][100.0%][w=228MiB/s][w=58.3k   IOPS][eta 00m:00s]                

test: (groupid=0, jobs=4): err= 0: pid=20008: Fri   Dec 27 13:46:40 2024                

  write:   IOPS=58.5k, BW=229MiB/s (240MB/s)(2286MiB/10002msec); 0 zone resets                

    slat   (usec): min=2, max=436, avg= 5.07, stdev= 7.58                

    clat   (usec): min=122, max=12844, avg=2180.43, stdev=593.67                

     lat   (usec): min=144, max=12875, avg=2185.50, stdev=594.12                

    clat   percentiles (usec):                

     |  1.00th=[    396],  5.00th=[ 1483], 10.00th=[   1811], 20.00th=[ 1958],                

     |   30.00th=[ 2040], 40.00th=[ 2089], 50.00th=[ 2147], 60.00th=[ 2212],                

     |   70.00th=[ 2278], 80.00th=[ 2376], 90.00th=[ 2540], 95.00th=[ 3359],                

     |   99.00th=[ 4080], 99.50th=[ 4293], 99.90th=[ 5211], 99.95th=[ 6652],                

     |   99.99th=[11469]                

   bw   (  KiB/s): min=223280, max=241696,   per=100.00%, avg=234117.60, stdev=1025.09, samples=80                

     iops        : min=55820,   max=60424, avg=58529.40, stdev=256.27, samples=80                

  lat   (usec)   : 250=0.01%, 500=2.69%,   750=0.78%, 1000=0.41%                

  lat   (msec)   : 2=21.07%, 4=73.82%,   10=1.19%, 20=0.03%                

  cpu          : usr=4.47%, sys=9.33%, ctx=36076,   majf=0, minf=30                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=100.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.1%, 64=0.0%, >=64=0.0%                

     issued   rwts: total=0,585294,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=32                

                 

Run status group 0 (all jobs):                

  WRITE:   bw=229MiB/s (240MB/s), 229MiB/s-229MiB/s (240MB/s-240MB/s), io=2286MiB   (2397MB), run=10002-10002msec                

                 

Disk stats (read/write):                

  vda:   ios=0/578420, sectors=0/4627488, merge=0/3, ticks=0/1205539,   in_queue=1206594, util=100.00%                

2.2.4 虚拟机FIO测试随机读

fio -direct=1 -iodepth=32 -rw=randread   -ioengine=libaio -bs=4k -numjobs=4 -time_based=1 -runtime=10 -group_reporting   -filename=/dev/vda -name=test                

         test:   (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B,   ioengine=libaio, iodepth=32                

...                

fio-3.38                

Starting 4 processes                

Jobs: 4 (f=4): [r(4)][100.0%][r=271MiB/s][r=69.3k   IOPS][eta 00m:00s]                

test: (groupid=0, jobs=4): err= 0: pid=20053: Fri   Dec 27 13:47:07 2024                

  read:   IOPS=70.8k, BW=276MiB/s (290MB/s)(2764MiB/10002msec)                

    slat   (usec): min=2, max=109, avg= 4.78, stdev= 7.29                

    clat   (usec): min=180, max=4720, avg=1802.62, stdev=208.76                

     lat   (usec): min=183, max=4767, avg=1807.40, stdev=209.88                

    clat   percentiles (usec):                

     |  1.00th=[ 1565],  5.00th=[ 1647], 10.00th=[ 1680], 20.00th=[   1713],                

     |   30.00th=[ 1745], 40.00th=[ 1762], 50.00th=[ 1795], 60.00th=[ 1811],                

     |   70.00th=[ 1827], 80.00th=[ 1860], 90.00th=[ 1893], 95.00th=[ 1942],                

     |   99.00th=[ 2933], 99.50th=[ 3195], 99.90th=[ 3916], 99.95th=[ 3949],                

     |   99.99th=[ 4113]                

   bw   (  KiB/s): min=275200, max=291576,   per=100.00%, avg=283079.60, stdev=1238.61, samples=80                

     iops        : min=68800,   max=72894, avg=70769.90, stdev=309.65, samples=80                

  lat   (usec)   : 250=0.01%, 500=0.21%,   750=0.05%, 1000=0.01%                

  lat   (msec)   : 2=96.88%, 4=2.82%, 10=0.03%                

  cpu          : usr=4.13%, sys=9.90%, ctx=22392,   majf=0, minf=158                

  IO   depths    : 1=0.1%, 2=0.1%, 4=0.1%,   8=0.1%, 16=0.1%, 32=100.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.1%, 64=0.0%, >=64=0.0%                

     issued   rwts: total=707699,0,0,0 short=0,0,0,0 dropped=0,0,0,0                

       latency   : target=0, window=0,   percentile=100.00%, depth=32                

                 

Run status group 0 (all jobs):                

   READ:   bw=276MiB/s (290MB/s), 276MiB/s-276MiB/s (290MB/s-290MB/s), io=2764MiB   (2899MB), run=10002-10002msec                

                 

Disk stats (read/write):                

  vda:   ios=699634/32, sectors=5597072/320, merge=0/2, ticks=1178778/67,   in_queue=1178854, util=99.06%                

 

3CPU测试

3.1 物理机(32线程)

sysbench --test=cpu --threads=32   --cpu-max-prime=2000 run                

WARNING: the --test option is deprecated. You can   pass a script name or path on the command line without any options.                

sysbench 1.0.20 (using system LuaJIT 2.1.ROLLING)                

                 

Running the test with following options:                

Number of threads: 32                

Initializing random number generator from current   time                

                 

                 

Prime numbers limit: 2000                

                 

Initializing worker threads...                

                 

Threads started!                

                 

CPU speed:                

    events   per second: 732990.35                

                 

General statistics:                

    total   time:                          10.0006s                

    total   number of events:              7331483                

                 

Latency (ms):                

           min:                                      0.04                

           avg:                                      0.04                

           max:                                      3.02                

           95th percentile:                          0.04                

           sum:                                 316674.26                

                 

Threads fairness:                

    events   (avg/stddev):             229108.8438/332.55                

      execution time (avg/stddev):     9.8961/0.01                

3.2 虚拟机(32线程)

sysbench --test=cpu --threads=32   --cpu-max-prime=2000 run                

WARNING: the --test option is deprecated. You can   pass a script name or path on the command line without any options.                

sysbench 1.0.20 (using system LuaJIT 2.1.ROLLING)                

                 

Running the test with following options:                

Number of threads: 32                

Initializing random number generator from current   time                

                 

                 

Prime numbers limit: 2000                

                 

Initializing worker threads...                

                 

Threads started!                

                 

CPU speed:                

    events   per second: 729042.60                

                 

General statistics:                

    total   time:                          10.0007s                

    total   number of events:              7292134                

                 

Latency (ms):                

           min:                                      0.04                

           avg:                                      0.04                

           max:                                     68.15                

           95th percentile:                          0.04                

           sum:                                 316512.08                

                 

Threads fairness:                

    events   (avg/stddev):             227879.1875/1297.85                

      execution time (avg/stddev):     9.8910/0.01                

4内存测试

4.1物理机(32线程)

sysbench memory --memory-block-size=8K   --memory-total-size=2G --threads=32 run                

sysbench 1.0.20 (using system LuaJIT 2.1.ROLLING)                

                 

Running the test with following options:                

Number of threads: 32                

Initializing random number generator from current   time                

                 

                 

Running memory speed test with the following   options:                

  block   size: 8KiB                

  total   size: 2048MiB                

    operation: write                

  scope:   global                

                 

Initializing worker threads...                

                 

Threads started!                

                 

Total operations: 262144 (8189851.70 per second)                

                 

2048.00 MiB transferred (63983.22 MiB/sec)                

                 

                 

General statistics:                

    total   time:                          0.0307s                

    total   number of events:              262144                

                 

Latency (ms):                

           min:                                      0.00                

           avg:                                      0.00                

           max:                                      0.29                

           95th percentile:                          0.01                

           sum:                                    870.32                

                 

Threads fairness:                

    events   (avg/stddev):           8192.0000/0.00                

      execution time (avg/stddev):     0.0272/0.00                

4.2虚拟机(32线程)

sysbench memory --memory-block-size=8K   --memory-total-size=2G --threads=32 run                

sysbench 1.0.20 (using system LuaJIT 2.1.ROLLING)                

                 

Running the test with following options:                

Number of threads: 32                

Initializing random number generator from current   time                

                 

                 

Running memory speed test with the following   options:                

  block   size: 8KiB                

  total   size: 2048MiB                

    operation: write                

  scope:   global                

                 

Initializing worker threads...                

                 

Threads started!                

                 

Total operations: 262144 (6559493.21 per second)                

                 

2048.00 MiB transferred (51246.04 MiB/sec)                

                 

                 

General statistics:                

    total   time:                          0.0385s                

    total   number of events:              262144                

                 

Latency (ms):                

           min:                                      0.00                

           avg:                                      0.00                

           max:                                      0.23                

           95th percentile:                          0.01                

           sum:                                   1037.37                

                 

Threads fairness:                

    events   (avg/stddev):           8192.0000/0.00                

      execution time (avg/stddev):     0.0324/0.00