Skip to content
Commit 6ff40dec authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: improve write performance with better sendspace reservations



Currently the rpc code conservatively refuses to accept rpc's from a
client if the sum of its worst-case estimates of the replies it owes
that client exceed the send buffer space.

Unfortunately our estimate of the worst-case reply for an NFSv4 compound
is always the maximum read size.  This can unnecessarily limit the
number of operations we handle concurrently, for example in the case
most operations are writes (which have small replies).

We can do a little better if we check which ops the compound contains.

This is still a rough estimate, we'll need to improve on it some day.

Reported-by: default avatarShyam Kaushik <shyamnfs1@gmail.com>
Tested-by: default avatarShyam Kaushik <shyamnfs1@gmail.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 587ac5ee
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment