lkml.org 
[lkml]   [2005]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Reproducible 2.6.11.9 NFS Kernel Crashing Bug!
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-18 14:45    [W:0.077 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site