mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Oliver Tennert <tennert@science-computing.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: NFS client problem and IO blocksize
Date: Wed, 22 Jan 2003 16:32:08 +0100	[thread overview]
Message-ID: <15918.47480.31996.510033@charged.uio.no> (raw)
In-Reply-To: <Pine.GHP.4.02.10301221459090.7581-100000@alderaan.science-computing.de>

>>>>> " " == Oliver Tennert <tennert@science-computing.de> writes:

     > OK thanks. But I am sorry to push you once more, Trond: can you
     > now give me just a brief explanation of difference between the
     > "wsize" option and the "wtmult" attribute? Is it better now to
     > disable O_DIRECT and use a larger wsize/rsize, or to enable it
     > and be content with the parameters it uses?

wsize gives you the maximum number of bytes NFS is allowed to send in
a single NFSPROC_WRITE RPC call. (rsize gives the same number for
NFSPROC_READ calls). The NFS client will usually wait until it has
'wsize' bytes or more in the page cache before it tries to send
anything over to the server.

OTOH wtmult has nothing to do with RPC, and has more to do with the
disk organization on the server.
As I understand it, in many cases the significance of this value lies
in the fact that hardware operations to the disk have a lower limit on
the number of bytes that can be read/written. IOW if your write is not
aligned to a 'wtmult' boundary, then the server may be forced to read
in the remaining data from the disk before it writes the entire block
back.

Cheers,
  Trond

      reply	other threads:[~2003-01-22 15:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-22 10:33 Oliver Tennert
2003-01-22 13:06 ` Trond Myklebust
2003-01-22 13:35   ` Oliver Tennert
2003-01-22 13:41     ` Trond Myklebust
2003-01-22 14:18       ` Oliver Tennert
2003-01-22 15:32         ` Trond Myklebust [this message]

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=15918.47480.31996.510033@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tennert@science-computing.de \
    /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

all inboxes | Powered by JetHome®