All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Staubach <staubach@redhat.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Olaf Kirch <okir@suse.de>, Greg Banks <gnb@melbourne.sgi.com>,
	Linux NFS Mailing List <nfs@lists.sourceforge.net>,
	Chuck Lever <chucklever@gmail.com>
Subject: Re: [PATCH 3/4] Add /proc/sys/fs/nfs sysctls to nfsd module
Date: Fri, 04 Aug 2006 15:16:40 -0400	[thread overview]
Message-ID: <44D39D18.7080907@redhat.com> (raw)
In-Reply-To: <1154715807.4727.30.camel@localhost>

Trond Myklebust wrote:
> On Fri, 2006-08-04 at 19:52 +0200, Olaf Kirch wrote:
>   
>> On Fri, Aug 04, 2006 at 11:36:37AM -0400, Trond Myklebust wrote:
>>     
>>> Not really. It would be better to identify and fix the buggy clients
>>> that aren't setting the READDIRPLUS maxcount parameter correctly.
>>>       
>> One of them was Solaris 9, IIRC. Don't recall what the other one was.
>> I contacted at least Sun, but that didn't go anywhere.
>>     
>
> Yeah.... Solaris appears to have a warped design in their READDIR code.
> They want to specify one size for the actual READDIR reply, and one size
> for all the extra READDIRPLUS gunk (see pages 209 and 210 in Brent's
> 'NFS Illustrated').
> In their case, you want to look at the 'dircount' parameter, and
> truncate the readdirplus reply when you hit 'dircount' bytes of filename
> +fileid information. After that, you have to look at the total XDR
> information, and truncate again when you hit 'maxcount' bytes.
>
> Sucks, sucks, sucks....

Actually, the Solaris implementation matches the intended semantics as
described in RFC1813.  The number of bytes of requested information
via readdir(3) is passed via dircount and then the maximum size of the
response is passed through maxcount.

The two fields were intended to be used to reduce the overhead on
the server by passing a hint for the amount of data that the client
was actually looking for and then a count for the maximum sized response
that it was prepared to handle.

Solaris probably uses something like 1048/32768 or 8192/32768, doesn't
it?

    Thanx...

       ps

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2006-08-04 19:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-03 11:05 [PATCH 3/4] Add /proc/sys/fs/nfs sysctls to nfsd module Olaf Kirch
2006-08-03 16:52 ` Chuck Lever
2006-08-03 17:08   ` Trond Myklebust
2006-08-04 17:55     ` Olaf Kirch
2006-08-04  8:43   ` Greg Banks
2006-08-04 15:36     ` Trond Myklebust
2006-08-04 17:52       ` Olaf Kirch
2006-08-04 18:23         ` Trond Myklebust
2006-08-04 19:16           ` Peter Staubach [this message]
2006-08-04 20:06             ` Olaf Kirch
2006-08-07  4:02             ` Trond Myklebust
2006-08-04 23:36     ` Neil Brown
2006-08-05 13:15       ` Olaf Kirch

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=44D39D18.7080907@redhat.com \
    --to=staubach@redhat.com \
    --cc=chucklever@gmail.com \
    --cc=gnb@melbourne.sgi.com \
    --cc=nfs@lists.sourceforge.net \
    --cc=okir@suse.de \
    --cc=trond.myklebust@fys.uio.no \
    /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 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.