linux nfs客戶端對於同時發起的NFS請求數量進行了控制,若該參數配置較小會導致IO性能較差,查看該參數:
cat /proc/sys/sunrpc/tcp_slot_table_entries
默認編譯的內核該參數最大值為256,可適當提高該參數的值來取得較好的性能,請以root身份執行以下命令:
echo "options sunrpc tcp_slot_table_entries=128" >> /etc/modprobe.d/sunrpc.conf
echo "options sunrpc tcp_max_slot_table_entries=128" >> /etc/modprobe.d/sunrpc.conf
sysctl -w sunrpc.tcp_slot_table_entries=128
修改完成后,您需要重新掛載文件系統或重啟機器。