5 月 282018
NFS协议挂载NAS服务的性能调优
本地最小化镜像安装后的默认内核参数配置
[root@localhost ~]# sysctl -p net.ipv4.conf.all.arp_notify = 1 [root@localhost ~]# [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@localhost ~]#
阿里云标准ECS镜像的默认内核参数配置
[root@oms ~]# sysctl -p net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 vm.swappiness = 0 net.ipv4.neigh.default.gc_stale_time = 120 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.default.arp_announce = 2 net.ipv4.conf.lo.arp_announce = 2 net.ipv4.conf.all.arp_announce = 2 net.ipv4.tcp_max_tw_buckets = 5000 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_max_syn_backlog = 1024 net.ipv4.tcp_synack_retries = 2 kernel.sysrq = 1 [root@oms ~]# [root@oms ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@oms ~]#
NSF协议调优参数配置
cat /proc/sys/sunrpc/tcp_slot_table_entries
修改
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