Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS + cache coherence

Reply
Thread Tools Display Modes

NFS + cache coherence

 
 
jon wayne
Guest
Posts: n/a

 
      09-08-2006, 10:16 AM
But I still had some doubts

Hi
I'm writing an application to perioidcally transfer a set of files over
nfs to the another machine (and delete these files when am done)
[
environ
linux > 2.6
nfs v4
]
I'd some doubts

1. Does every fwrite (of the system page size say 4k) transfer the data
block immediately to the server?

2. Will the fclose() block until a response for COMMIT is recieved from
the server ? (i'm
avoiding an fsync after every write)
If it doesn't block then the client app has no way of knowing
whether the data has been actually sent across or not.

3. What am really concerned about is that once i've closed the file fd
does it guarantee
that the data has been successfully written over the server??

thanks!

 
Reply With Quote
 
 
 
 
David M
Guest
Posts: n/a

 
      09-08-2006, 10:26 AM
On Fri, 08 Sep 2006 03:16:16 -0700, jon wayne rearranged some electrons to
form:


> 3. What am really concerned about is that once i've closed the file fd
> does it guarantee
> that the data has been successfully written over the server??
>
> thanks!


man sync

--
David M (dmacchiarolo)
http://home.triad.rr.com/redsled
T/S 53
sled351 Linux 2.4.18-14 has been up 8 days 12:22

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      09-08-2006, 04:09 PM
jon wayne <(E-Mail Removed)> wrote:
> 3. What am really concerned about is that once i've closed the file fd
> does it guarantee that the data has been successfully written over
> the server??


It depends on the NFS mount. See "man 5 nfs", especially "noac", "actimeo"
(and friends). Sadly, none of this guarantees that the server has actually
flushed the data to its physical disks.

Chris
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS cache McG Wireless Networks 0 01-08-2006 01:30 PM
DSN Cache Joseph Carrier Wireless Networks 3 11-04-2005 10:09 PM
cache june Broadband 3 07-06-2005 09:53 PM
arp cache cb39940 Wireless Networks 3 06-26-2005 01:22 AM
ISP cache Schewdent Linux Networking 3 08-02-2004 09:08 AM



1 2 3 4 5 6 7 8 9 10 11