From: "J. Bruce Fields" <bfields@fieldses.org>
To: "McAninley, Jason" <jmcaninl@harris.com>
Cc: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: Question regard NFS 4.0 buffer sizes
Date: Tue, 11 Feb 2014 09:36:33 -0500 [thread overview]
Message-ID: <20140211143633.GB9918@fieldses.org> (raw)
In-Reply-To: <322949BF788C8D468BEA0A321B79799098BDB9F0@MLBMXUS20.cs.myharris.net>
On Tue, Feb 11, 2014 at 12:32:33PM +0000, McAninley, Jason wrote:
> 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.
Are you using UDP or TCP?
And what do you mean by "maximum packet size"?
To see if the maximum rsize/wsize is being used you'd need to look for
the length of the data in a READ reply or WRITE call.
What actual problem are you trying to solve? (Is your read or write
bandwidth lower than you expected?)
--b.
>
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-02-11 14:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 12:32 Question regard NFS 4.0 buffer sizes McAninley, Jason
2014-02-11 14:36 ` J. Bruce Fields [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140211143633.GB9918@fieldses.org \
--to=bfields@fieldses.org \
--cc=jmcaninl@harris.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox