From owner-freebsd-current@FreeBSD.ORG Wed Mar 28 10:17:24 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 522C316A405 for ; Wed, 28 Mar 2007 10:17:24 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0DA0A13C465 for ; Wed, 28 Mar 2007 10:17:23 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HWVDI-0003Dn-4Q for freebsd-current@freebsd.org; Wed, 28 Mar 2007 12:17:08 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Mar 2007 12:17:08 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Mar 2007 12:17:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Wed, 28 Mar 2007 12:16:53 +0200 Lines: 45 Message-ID: References: <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBFA75766647B18FBF604C509" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.10 (X11/20060911) In-Reply-To: <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com> X-Enigmail-Version: 0.94.2.0 Sender: news Subject: Re: NFS write() calls lead to read() calls? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2007 10:17:24 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBFA75766647B18FBF604C509 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable 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: >=20 > -----> -----> > A B C > <----- >=20 > The real weirdness comes into play, when I simply cp(1) from HostB > itself like this: >=20 > hostB # cp 500MB /net/share/ >=20 > 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=20 rewriting that's causing reads or is it some weird artifact of scp? --------------enigBFA75766647B18FBF604C509 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --------------enigBFA75766647B18FBF604C509--