ufile的硬盘

参考:

https://docs.ucloud.cn/compute/uhost/introduction/disk

UFS:

https://docs.ucloud.cn/storage_cdn/ufs/price

fio测试:

https://www.wangbokun.com/%E5%90%8E%E7%AB%AF/2019/03/05/Linux-%E7%A3%81%E7%9B%98.html   GG

udisk:
作为云计算场景基础块存储产品为云主机提供持久化存储空间的块设备硬盘。其具有独立的生命周期,基于网络分布式访问,为云主机提供的数据大容量、高可靠、可扩展、高易用、低成本的硬盘。UCloud目前提供SSD云盘与普通云盘两种云硬盘选项。

ufs:
文件存储 (UFS) 是一款分布式文件系统产品,它能够为运行于 UCloud 公有云、物理云、托管云上的各类主机提供高可用、高可靠、易拓展的文件存储功能。通过 UFS 产品提供的共享存储功能,可以方便地为各类数据备份、serverless、AI 数据分析、高性能 web 站点等应用场景提供强有力的支撑。

本地盘

与云主机CPU/内存在同一宿主机的虚拟硬盘,特点是延迟较低,其生命周期与云主机一致,不可绑定与解绑。采用RAID进行数据保护,防止数据丢失。UCloud目前提供SSD本地盘与普通本地盘两种本地盘选项

ufs: 就是NFS, 可以共享多个主机, 速度最慢.

云盘:  就相当于原来的SAS, 只能挂一个主机.

本地盘: 就是和主机在同一个宿主机上的硬盘,速度最快.

测试硬盘参数IOPS等工具:

https://docs.ucloud.cn/storage_cdn/udisk/introduction/performance/rssd

yum install fio -y
IOPS性能测试(4k,4*32队列,随机读写):
读IOPS:
fio -direct=1 -iodepth=32 -rw=randread -ioengine=libaio -bs=4k -size=200G -numjobs=4 -runtime=1000 -group_reporting -name=test -filename=/tmp/test
写IOPS:
fio -direct=1 -iodepth=32 -rw=randwrite -ioengine=libaio -bs=4k -size=200G -numjobs=4 -runtime=1000 -group_reporting -name=test -filename=/tmp/test
时延性能测试:
读时延:
fio -direct=1 -iodepth=1 -rw=read -ioengine=libaio -bs=4k -size=200G -numjobs=1 -runtime=1000 -group_reporting -name=test -filename=/tmp/test
写时延:
fio -direct=1 -iodepth=1 -rw=write -ioengine=libaio -bs=4k -size=200G -numjobs=1 -runtime=1000 -group_reporting -name=test -filename=/tmp/test
吞吐性能测试:
读带宽:
fio -direct=1 -iodepth=32 -rw=read -ioengine=libaio -bs=256k -size=200G -numjobs=4 -runtime=1000 -group_reporting -name=test -filename=/tmp/test
写带宽:
fio -direct=1 -iodepth=32 -rw=write -ioengine=libaio -bs=256k -size=200G -numjobs=4 -runtime=1000 -group_reporting -name=test -filename=/tmp/test

IOPS (Input/Output Per Second)即每秒的输入输出量(或读写次数)
简而言之:
磁盘的 IOPS,也就是在一秒内,磁盘进行多少次 I/O 读写。
磁盘的吞吐量,也就是每秒磁盘 I/O 的流量,即磁盘写入加上读出的数据的大小
例如:
读取10000个1KB文件,用时10秒 Throught(吞吐量)=1MB/s ,IOPS=1000 追求IOPS
IOPS=10000/10=1000
吞吐量=10M/10=1MB/s

带宽(band width)又叫频宽,是指在固定的的时间可传输的资料数量,亦即在传输管道中可以传递数据的能力。在数字设备中,频宽通常以bps表示,即每秒可传输之位数。在模拟设备中,频宽通常以每秒传送周期或赫兹 (Hz)来表示。

数据吞吐量(Throughput):指单位时间内可以成功传输的数据数量。对于大量顺序读写的应用,如VOD(Video On Demand),则更关注吞吐量指标。

各云硬盘参数对比:

https://docs.ucloud.cn/storage_cdn/udisk/introduction/performance/account

https://docs.ucloud.cn/storage_cdn/ufs/performance

实际案例测速:

udesk测试:
yum -y install hdparm
hdparm -t /dev/vdb
hdparm测试硬盘的读取效率:
普通云盘:
Timing buffered disk reads: 310 MB in 3.00 seconds = 103.26 MB/sec
warehouse-guard上普通本地盘:
/dev/vdb:
Timing buffered disk reads: 2074 MB in 3.06 seconds = 678.40 MB/sec
node6上SSD:
/dev/vdb:
Timing buffered disk reads: 7082 MB in 3.00 seconds = 2360.54 MB/sec

yum install fio -y
IOPS性能测试(4k,4*32队列,随机读写):
读IOPS:
fio -direct=1 -iodepth=32 -rw=randread -ioengine=libaio -bs=4k -size=200G -numjobs=4 -runtime=1000 -group_reporting -name=test -filename=/tmp/test
普通云盘:
test: (groupid=0, jobs=4): err= 0: pid=12052: Fri Oct 18 11:36:29 2019
read: IOPS=21.2k, BW=82.0MiB/s (87.0MB/s)(32.5GiB/401258msec)
node6上SSD:
test: (groupid=0, jobs=4): err= 0: pid=19101: Fri Oct 18 04:48:05 2019
read: IOPS=13.1k, BW=51.2MiB/s (53.7MB/s)(7682MiB/150025msec)
warehouse-guard上普通本地盘:
test: (groupid=0, jobs=4): err= 0: pid=31859: Fri Oct 18 05:01:59 2019
read: IOPS=10.5k, BW=40.9MiB/s (42.9MB/s)(5810MiB/141935msec)
IOPS性能测试(4M,4*32队列,随机读写):
普通云盘:
Run status group 0 (all jobs):
READ: bw=1061MiB/s (1113MB/s), 1061MiB/s-1061MiB/s (1113MB/s-1113MB/s), io=800GiB (859GB), run=771999-771999msec
warehouse-guard上普通本地盘:
Run status group 0 (all jobs):
READ: bw=202MiB/s (212MB/s), 202MiB/s-202MiB/s (212MB/s-212MB/s), io=198GiB (213GB), run=1001980-1001980msec


写IOPS:
fio -direct=1 -iodepth=32 -rw=randwrite -ioengine=libaio -bs=4k -size=200G -numjobs=4 -runtime=1000 -group_reporting -name=test -filename=/tmp/test

原文地址:https://www.cnblogs.com/hongfeng2019/p/11648024.html