Issue READIRPLUS calls with a sensible dircount maxcount ratio
authorStefan Blanke <stefan.blanke@framestore.com>
Thu, 30 Oct 2014 16:32:43 +0000 (16:32 +0000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 4 Nov 2014 01:23:17 +0000 (17:23 -0800)
commit4a58e6145568fd21ef956ae6ac3d3c37ef209a57
treea85e9ed9259dba05d7427f8828662be1248a2ca5
parentab1af6953ce7be7d6887dc65172100fff8a5af30
Issue READIRPLUS calls with a sensible dircount maxcount ratio

The NFS spec states:

"The ratio of the directory entry size to the size of the attributes plus the
size of the file handle is usually at least 8 to 1."

Though implementation dependent the spec implies that the previous 1 to 1 ratio
could have a detrimental impact on the performance of the server due to most of
the data per VOP_READDIR call being wasted.

The Linux kernel uses the 8 to 1 ratio.

Signed-off-by: Stefan Blanke <stefan.blanke@framestore.com>
Signed-off-by: Mark Hills <mark.hills@framestore.com>
nfs/nfs.c