All of lore.kernel.org
 help / color / mirror / Atom feed
* Question regard NFS 4.0 buffer sizes
@ 2014-02-11 12:32 McAninley, Jason
  2014-02-11 14:36 ` J. Bruce Fields
  0 siblings, 1 reply; 11+ messages in thread
From: McAninley, Jason @ 2014-02-11 12:32 UTC (permalink / raw)
  To: linux-nfs@vger.kernel.org

I'm looking for detailed documentation regarding some of the innards of NFS 4.0, without necessarily having to read through the source code (if such documentation exists). 

Specifically related to the relationship between NFS's rsize/wsize options versus some of the lower-level networking buffers. Buffer parameters that I have come across (and my current settings) include:

  - sysctl's net.core.{r,w}mem_default: 229376
  - sysctl's net.core.{r,w}mem_max:     131071
  - sysctl's net.ipv4.tcp_{r,w}mem      4096 87380 4194304
  - #define RPCSVC_MAXPAYLOAD          (1*1024*1024u)

When I run Wireshark during an NFS transfer, I see MAX{READ,WRITE} attributes returned from GETATTR with the value of 1MB. I'm guessing this corresponds to the limit set by RPCSVR_MAXPAYLOAD? However, the maximum packet size I'm recording in practice is ~32K.

In fact, it seems like regardless of the change to {r,w}size (I've tried 32K, 64K, 128K) I am not seeing changes in the max packet size.

This is leading me to investigate the buffer sizes on the client/server. My thought is that if a buffer exists that is too small, NFS/Kernel will ship a packet prior to reaching the MAXWRITE size. 

Any input is appreciated.

-Jason

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-02-13 18:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 12:32 Question regard NFS 4.0 buffer sizes McAninley, Jason
2014-02-11 14:36 ` J. Bruce Fields
2014-02-11 15:01   ` McAninley, Jason
2014-02-11 16:32     ` J. Bruce Fields
2014-02-11 21:17       ` McAninley, Jason
2014-02-11 21:54         ` J. Bruce Fields
2014-02-11 22:50           ` McAninley, Jason
2014-02-11 23:18             ` Malahal Naineni
2014-02-13 12:21               ` McAninley, Jason
2014-02-13 18:21                 ` J. Bruce Fields
2014-02-11 17:22     ` Chuck Lever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.