The Network File System (NFS) client limits the number of concurrent requests. The default limit in the compiled kernel is 2, which can critically affect performance. This topic describes how to increase this limit to 128 to improve performance.
- Install an NFS client. For more information, see Install an NFS client.
- Run the following commands to set the maximum number of concurrent NFS requests to 128.
echo "options sunrpc tcp_slot_table_entries=128" >> /etc/modprobe.d/sunrpc.confecho "options sunrpc tcp_max_slot_table_entries=128" >> /etc/modprobe.d/sunrpc.confsysctl -w sunrpc.tcp_slot_table_entries=128Note The first time you install an NFS agent, run the preceding commands once with root permissions. You do not need to run the commands again. - Optional:Run the following command to restart the Elastic Compute Service (ECS) instance.
reboot - Mount the file system. For more information, see Mount an NFS file system.
- Use the following command to verify the results.
cat /proc/sys/sunrpc/tcp_slot_table_entriesA return value of 128 indicates that the modification was successful.