NFS client problem and IO blocksize

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Wed Jan 22 2003 - 08:06:43 EST


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

> The problem is that the rsize/wsize options seem to be ignored:

> hal9000:/home/tennert # mount -o
> nfsvers=3,udp,rsize=1024,wsize=1024 ilka2000:/scr /mnt
> hal9000:/home/tennert # stat /mnt/Snatch.avi
> File: `/mnt/Snatch.avi' Size: 724893696 Blocks: 1415816 IO
> Block: 4096 Regular File

rsize/wsize have in principle nothing to do with the blocksize that
'stat' returns. The f_bsize value specifies the 'optimal transfer
block size'. Previously this has been set to the rsize/wsize, but when
you add in O_DIRECT, then 32k becomes too large a value to align
to. For this reason, the f_bsize value was changed to reflect the
actual block size used by the *server*.

Cheers,
  Trond
-
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/



This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 22:00:29 EST