我做过ZFS nvme pool 和SMB 的优化。
这是一些建议
1、SMB的AIO WRITE/READ SIZE 设置为 16384
2、目前来说,所有的RAID都不能把两个NVME的速度叠加。所以,要冲击25G的极限速度,你可以尝试用单一nvme盘以XFS单独做一个POOL。
3、MTU一定要设置为最高,我的是9014.
4、网卡设置要对,比如把TIPS and tweat 内的 flow control关掉,另外两个都设置为4096
你可以先设置这些看看。
我的经验,nvme在zfs raidz1 的速度仍然不能高于单盘速度。
以下经过谷歌翻译
The following is translated by Google
I have optimized ZFS nvme pool and SMB.
Here are some suggestions
1. Set SMB's AIO WRITE/READ SIZE to 16384
2. Currently, all RAID cannot add up the speed of two NVMEs. Therefore, to reach the 25G limit speed, you can try to use a single nvme disk to make a single POOL with XFS.
3. MTU must be set to the highest, mine is 9014.
4. The network card settings must be correct, such as turning off the flow control in TIPS and tweat, and setting the other two to 4096
You can set these first and try.
In my experience, the speed of nvme in zfs raidz1 still cannot be higher than the speed of a single disk.