Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2007 12:16:53 +0200
From:      Ivan Voras <ivoras@fer.hr>
To:        freebsd-current@freebsd.org
Subject:   Re: NFS write() calls lead to read() calls?
Message-ID:  <eudfat$g2m$1@sea.gmane.org>
In-Reply-To: <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com>
References:  <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Ulrich Spoerlein wrote:

> If I run the scp again, I can see X MB/s going out from HostA, 2*X
> MB/s coming in on HostB and X MB/s out plus X MB/s in on HostC. What's
> happening is, that HostB issues one NFS READ call for every WRITE
> call. The traffic flows like this:
> 
>  ----->   ----->
> A        B        C
>           <-----
> 

> The real weirdness comes into play, when I simply cp(1) from HostB
> itself like this:
> 
> hostB # cp 500MB /net/share/
> 
> I can do this over and over again, and _never_ get any noteworthy
> amount of NFS READ calls, only WRITE. The network traffic is also, as
> you would expect.

Have you tested with a small C program or a script to see if it's the 
rewriting that's causing reads or is it some weird artifact of scp?


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGCkCcldnAQVacBcgRAv96AJsHvLGyoNbrhPl3aH3Pc4HJ7XmaXgCdGCnb
XDdTho8tei7BT84dJvVQrxM=
=bXtr
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eudfat$g2m$1>