我有两个三星860 QVO在RAID1与mdadm。一张光盘的写入速度在450 on /S左右,在RAID 1上最高达到70 on/S,读取速度是正常的。
xfs用作文件系统。
这里有什么问题?
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdb[0] sdc[1]
976630464 blocks super 1.2 [2/2] [UU]
bitmap: 3/8 pages [12KB], 65536KB chunk
unused devices: <none>1073741824 bytes (1,1 GB, 1,0 GiB) copied, 16,6422 s, 64,5 MB/s发布于 2020-07-31 15:00:18
您的写入速度很慢,因为您使用了oflag=dsync。如手册页所述:
dsync use synchronized I/O for data这意味着系统在每次写入之后都会等待,直到存储确认它已经写入为止。通常,您不会使用同步I/O,除非您的应用程序迫切需要确保单个写在继续之前实际上已经提交给媒体。
https://serverfault.com/questions/1028429
复制相似问题