Date: Wed, 28 Mar 2007 18:03:35 +0200 From: Ivan Voras <ivoras@fer.hr> To: freebsd-current@freebsd.org Subject: Re: NFS write() calls lead to read() calls? Message-ID: <eue3ku$mq2$1@sea.gmane.org> In-Reply-To: <7ad7ddd90703280611p5c0ca4e1y600315551391a813@mail.gmail.com> References: <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com> <eudfat$g2m$1@sea.gmane.org> <7ad7ddd90703280611p5c0ca4e1y600315551391a813@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Ulrich Spoerlein wrote:
> What kind of C program or script did you have in mind? My C-foo is very
> weak ...
If you have python installed, this is a simple way:
----
print "writing"
f = file("a_file", "w")
for x in xrange(1024): # write 1024 MB
f.write(' '*1024*1024)
f.close()
raw_input("press enter to rewrite")
print "rewriting"
f = file("a_file", "r+")
for x in xrange(1024): # write 1024 MB again
f.write(' '*1024*1024)
f.close()
----
save it to a file, run the file with python interpreter. If you don't
observe the weird read-before-write effect, then it's not a problem in
FreeBSD / NFS.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGCpHeldnAQVacBcgRAhMOAKCSJeFj5s91ez30c8a9to0AWOLiKgCgpv/6
qq8onPrO+FCXNTWY9zSJrpM=
=FEUB
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eue3ku$mq2$1>
