Linux 内存,磁盘跑分 20210529

软件安装

# 在docker里面跑,避免污染主机 
docker run --rm -it ubuntu /bin/bash
apt update && apt-get install -y sysbench fio
# 磁盘:
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=250M --readwrite=randrw --rwmixread=80

# 内存:
sysbench --test=memory --memory-block-size=1M --memory-total-size=10G run

Oracle ARM 4C24G

  • 内存
10240.00 MiB transferred (15027.04 MiB/sec)
  • 磁盘
root@90588724894f:/# fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=250M --readwrite=randrw --rwmixread=80
test: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
test: (groupid=0, jobs=1): err= 0: pid=888: Fri May 28 16:56:24 2021
  read: IOPS=1932, BW=7729KiB/s (7914kB/s)(200MiB/26463msec)
   bw (  KiB/s): min= 6456, max= 8824, per=99.71%, avg=7705.94, stdev=660.17, samples=52
   iops        : min= 1614, max= 2206, avg=1926.46, stdev=165.02, samples=52
  write: IOPS=486, BW=1945KiB/s (1992kB/s)(50.3MiB/26463msec); 0 zone resets
   bw (  KiB/s): min= 1472, max= 2296, per=99.51%, avg=1934.52, stdev=190.07, samples=52
   iops        : min=  368, max=  574, avg=483.62, stdev=47.50, samples=52
  cpu          : usr=0.77%, sys=5.68%, ctx=64025, majf=0, minf=4
  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.1%, >=64=0.0%
     issued rwts: total=51133,12867,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):
   READ: bw=7729KiB/s (7914kB/s), 7729KiB/s-7729KiB/s (7914kB/s-7914kB/s), io=200MiB (209MB), run=26463-26463msec
  WRITE: bw=1945KiB/s (1992kB/s), 1945KiB/s-1945KiB/s (1992kB/s-1992kB/s), io=50.3MiB (52.7MB), run=26463-26463msec

Oracle X86_64 1C1G

  • 内存
30720.00 MiB transferred (7374.37 MiB/sec)
  • 磁盘
root@23a75a5a12c4:/# fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=250M --readwrite=randrw --rwmixread=80
test: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
test: (groupid=0, jobs=1): err= 0: pid=870: Fri May 28 16:56:37 2021
  read: IOPS=1537, BW=6152KiB/s (6299kB/s)(200MiB/33248msec)
   bw (  KiB/s): min= 3408, max= 6696, per=99.85%, avg=6141.94, stdev=534.34, samples=66
   iops        : min=  852, max= 1674, avg=1535.44, stdev=133.57, samples=66
  write: IOPS=387, BW=1548KiB/s (1585kB/s)(50.3MiB/33248msec); 0 zone resets
   bw (  KiB/s): min=  944, max= 1832, per=99.81%, avg=1545.06, stdev=143.45, samples=66
   iops        : min=  236, max=  458, avg=386.26, stdev=35.87, samples=66
  cpu          : usr=0.90%, sys=6.96%, ctx=64107, majf=0, minf=8
  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.1%, >=64=0.0%
     issued rwts: total=51133,12867,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):
   READ: bw=6152KiB/s (6299kB/s), 6152KiB/s-6152KiB/s (6299kB/s-6299kB/s), io=200MiB (209MB), run=33248-33248msec
  WRITE: bw=1548KiB/s (1585kB/s), 1548KiB/s-1548KiB/s (1585kB/s-1585kB/s), io=50.3MiB (52.7MB), run=33248-33248msec

腾讯云轻量香港 1C2G

  • 内存
30720.00 MiB transferred (12967.24 MiB/sec)
  • 磁盘
root@9d966785c512:/# fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=random_read_write.fio --bs=4k --iodepth=64 --size=250M --readwrite=randrw --rwmixread=80
test: (g=0): rw=randrw, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=64
test: (groupid=0, jobs=1): err= 0: pid=896: Fri May 28 16:56:31 2021
  read: IOPS=1310, BW=5242KiB/s (5367kB/s)(200MiB/39021msec)
   bw (  KiB/s): min= 4224, max= 6155, per=99.92%, avg=5236.92, stdev=459.10, samples=78
   iops        : min= 1056, max= 1538, avg=1309.19, stdev=114.79, samples=78
  write: IOPS=329, BW=1319KiB/s (1351kB/s)(50.3MiB/39021msec); 0 zone resets
   bw (  KiB/s): min=  968, max= 1616, per=99.93%, avg=1317.09, stdev=139.31, samples=78
   iops        : min=  242, max=  404, avg=329.26, stdev=34.83, samples=78
  cpu          : usr=1.05%, sys=4.14%, ctx=64669, majf=0, minf=7
  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.1%, >=64=0.0%
     issued rwts: total=51133,12867,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):
   READ: bw=5242KiB/s (5367kB/s), 5242KiB/s-5242KiB/s (5367kB/s-5367kB/s), io=200MiB (209MB), run=39021-39021msec
  WRITE: bw=1319KiB/s (1351kB/s), 1319KiB/s-1319KiB/s (1351kB/s-1351kB/s), io=50.3MiB (52.7MB), run=39021-39021msec

https://www.cloudsavvyit.com/2521/how-to-test-your-unix-servers-disk-and-ram-speed/

Licensed under CC BY-NC-SA 4.0
最后更新于 May 29, 2021 01:34 +0800
Built with Hugo
Theme Stack designed by Jimmy