SUNRPC: Reduce thread wake-up rate when receiving large RPC messages
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Jul 2023 18:31:29 +0000 (14:31 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commit2b877fc53e975bdc5614c0a7d64047cfdbae3894
tree1b164f42603b3d0de0284044e79b9a1eda5b92da
parent89d2d9fbeadcbdbd6302d3d0cd6bfbe219d85b68
SUNRPC: Reduce thread wake-up rate when receiving large RPC messages

With large NFS WRITE requests on TCP, I measured 5-10 thread wake-
ups to receive each request. This is because the socket layer
calls ->sk_data_ready() frequently, and each call triggers a
thread wake-up. Each recvmsg() seems to pull in less than 100KB.

Have the socket layer hold ->sk_data_ready() calls until the full
incoming message has arrived to reduce the wake-up rate.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/svcsock.c