SUN Posted July 29, 2021 Share Posted July 29, 2021 硬件似乎没有太大问题,但是读写速度问题很大。 UNRAID是4片sata SSD,没有校验,没有缓存。网卡是 ConnectX-3光口万兆网卡。 PC是威联通5G USB外置网卡。傲腾900P硬盘。 交换机是威联通的QSW-308S 光电混合口万兆交换机。 似乎硬件都不是瓶颈。 从PC读取,写入UNRAID还算正常,可以保持400MB/s。但是从UNRAID读取,写入PC的时候速度波动非常大,最高只有300MB/s,最低掉到100MB/s,非常不稳定。问题出在哪了?搞不明白了,各位帮忙支支招,谢谢! Quote Link to comment
chrisdeng Posted July 29, 2021 Share Posted July 29, 2021 (edited) 不知道是不是这个问题,Unraid 写速度好像天然就慢,特别是在有Parity盘的时候,这也是为什么官方推荐SSD缓存....我的磁盘都是HDD,读能到110左右(正常),但是写只能到50左右...还有QLCSSD,在我之前群晖的时候就不怎么友好。 Edited July 29, 2021 by chrisdeng Quote Link to comment
chrisdeng Posted July 29, 2021 Share Posted July 29, 2021 (edited) PS.可以试试看 到 "设置" > "磁盘设置" > 找到 "Tunable (md_write_method):" 然后从 “Auto” 改成 “reconstruct write”。试试看,这个设定对于HDD来说提速明显。不过代价就是牺牲磁盘降速。 Edited July 29, 2021 by chrisdeng Quote Link to comment
lyqalex Posted July 30, 2021 Share Posted July 30, 2021 虽然是万兆网络,但如果使用mtu巨型帧,需要两边设备+路由器或交换机都要支持巨型帧才达到效果。你可以先调整mtu数值测试。 Quote Link to comment
SUN Posted July 30, 2021 Author Share Posted July 30, 2021 7 hours ago, lyqalex said: 虽然是万兆网络,但如果使用mtu巨型帧,需要两边设备+路由器或交换机都要支持巨型帧才达到效果。你可以先调整mtu数值测试。 mtu 1500也是一样的效果😭 Quote Link to comment
lyqalex Posted July 31, 2021 Share Posted July 31, 2021 unraid读取可能受到PC机硬盘的影响,有些固态硬盘读取没问题,写入会容易满缓存掉速。 Quote Link to comment
Vr2Io Posted July 31, 2021 Share Posted July 31, 2021 (edited) 应该先用 iperf 确认网络速度正常. 另外, 用 /mnt/disk1 /mnt/disk2 /mnt/disk3 再试, 不用 /mnt/user/xxxx Edited July 31, 2021 by Vr2Io Quote Link to comment
SUN Posted August 1, 2021 Author Share Posted August 1, 2021 20 hours ago, Vr2Io said: 应该先用 iperf 确认网络速度正常. 另外, 用 /mnt/disk1 /mnt/disk2 /mnt/disk3 再试, 不用 /mnt/user/xxxx 好的,我试试单盘 Quote Link to comment
SUN Posted August 1, 2021 Author Share Posted August 1, 2021 20 hours ago, Vr2Io said: 应该先用 iperf 确认网络速度正常. 另外, 用 /mnt/disk1 /mnt/disk2 /mnt/disk3 再试, 不用 /mnt/user/xxxx 在/mnt/disk1目录下读写都可以稳定400MB/s,多谢! 但是在/mnt/user下就不行。。。除了添加cache还有解吗?我就是怕缓存盘扛不住,所以放弃了缓存盘,数据盘全部采用SSD的方案。 Quote Link to comment
Vr2Io Posted August 1, 2021 Share Posted August 1, 2021 (edited) 52 minutes ago, SUN said: 在/mnt/disk1目录下读写都可以稳定400MB/s,多谢! 但是在/mnt/user下就不行。。。除了添加cache还有解吗?我就是怕缓存盘扛不住,所以放弃了缓存盘,数据盘全部采用SSD的方案。 应该没有效办法了, 我本身用大量 RAM 快取, 弥补这个写入慢或者不稳嘅问题, 有 256GB RAM, 不用 SSD 作快取. 写入 /mnt/usr/xxx /mnt/diskxx 都很快, 等佢慢慢后台写入硬盘. Edited August 1, 2021 by Vr2Io Quote Link to comment
chrisdeng Posted August 1, 2021 Share Posted August 1, 2021 1 hour ago, Vr2Io said: 应该没有效办法了, 我本身用大量 RAM 快取, 弥补这个写入慢或者不稳嘅问题, 有 256GB RAM, 不用 SSD 作快取. 写入 /mnt/usr/xxx /mnt/diskxx 都很快, 等佢慢慢后台写入硬盘. 我也打算加ram了,没想到unraid的方案速度砍太多了。或者组zfs也不错?ps,白话嚸过禄柱 Quote Link to comment
Vr2Io Posted August 1, 2021 Share Posted August 1, 2021 (edited) ZFS 不是我杯茶, 還是 Unraid 最自在, 夠簡單直接, 真的要点速度就行 RAID0, out of array 混合使用. Edited August 1, 2021 by Vr2Io Quote Link to comment
SUN Posted August 1, 2021 Author Share Posted August 1, 2021 On 7/30/2021 at 12:28 AM, chrisdeng said: PS.可以试试看 到 "设置" > "磁盘设置" > 找到 "Tunable (md_write_method):" 然后从 “Auto” 改成 “reconstruct write”。试试看,这个设定对于HDD来说提速明显。不过代价就是牺牲磁盘降速。 这个办法不行 Quote Link to comment
lyqalex Posted August 5, 2021 Share Posted August 5, 2021 On 8/1/2021 at 6:47 PM, SUN said: 在/mnt/disk1目录下读写都可以稳定400MB/s,多谢! 但是在/mnt/user下就不行。。。除了添加cache还有解吗?我就是怕缓存盘扛不住,所以放弃了缓存盘,数据盘全部采用SSD的方案。 估计因为/mnt/user下,共享文件夹需要按照设定的分配方式和拆分目录进行平衡等运算,花费了时间,你可以把需要的共享文件夹设定在某个固定的磁盘;如果要由系统分配磁盘等,采用缓存应对大数据应该是必须的。 Quote Link to comment
rallos_hoo Posted January 13, 2022 Share Posted January 13, 2022 加内存是最简单提高unraid磁盘速度的方法 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.