linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Reproducible 2.6.11.9 NFS Kernel Crashing Bug!
Date: Wed, 18 May 2005 08:34:44 -0400	[thread overview]
Message-ID: <428B3664.7030906@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0505172036020.2028@localhost.localdomain>

Justin Piszcz wrote:

> And I am using UDP, not TCP.
>
> NFS Version 3.


You may able to specify rsize and wsize of 65536 with NFS Version 3 running
over UDP, but it is guaranteed not to work if either the client or the 
server attempts
a 64K transfer.

The problem is that UDP is limited to a 64K datagram.  This datagram 
must hold
the data, some NFS protocol data structures, and some RPC data 
structures.  This
exceeds the 64K limit.  RPC over UDP will not allow the use of multiple UDP
datagrams, so RPC over UDP is limited to less than 64K payloads.  RPC over
TCP will allow larger operations because there is no such single 
datagram limit.

You could specify 56K or 60K transfer sizes if you wanted to stay at a 
multiple
of 8K or 4K, but there doesn't seem to be much point.  The 32K number was
chosen because it was the largest power of 2 below 64K and seems to work
pretty well in most circumstances.

In general, I wouldn't recommend mucking with the read/write transfer sizes
unless you really know what you are doing and understand the target 
environment
very well.

       ps

  reply	other threads:[~2005-05-18 12:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-14 13:18 Reproducible 2.6.11.9 NFS Kernel Crashing Bug! Justin Piszcz
2005-05-17 14:47 ` Alan Cox
2005-05-18  0:35   ` Justin Piszcz
2005-05-18  0:36   ` Justin Piszcz
2005-05-18 12:34     ` Peter Staubach [this message]
2005-06-16  9:19 ` Michael Heyse
2005-06-16  9:24   ` Justin Piszcz
2005-06-16 14:59     ` Lee Revell
2005-06-16 15:10       ` Justin Piszcz
2005-06-17  8:12       ` Michael Heyse
2005-06-17  8:11     ` Michael Heyse

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=428B3664.7030906@redhat.com \
    --to=staubach@redhat.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jpiszcz@lucidpixels.com \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).