Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fix for file change detection in NFS #28

Open
klenis opened this issue Apr 18, 2016 · 2 comments
Open

A fix for file change detection in NFS #28

klenis opened this issue Apr 18, 2016 · 2 comments

Comments

@klenis
Copy link

klenis commented Apr 18, 2016

Hi!

This is related to dlite (v1 with NFS) and most likely future versions of dlite/dhyve-os since I've read that you are planning on moving back to NFS from 9P. Really looking forward to a future v2 of dlite with NFS since the performance of 9P is really terrible for my use cases.

The only standing issue that I've had with dlite is the annoying and frequent behavior that file updates are not synced between server and host unless you wait for 5-10 seconds.

After the finding this stack overflow question and including the actimeo=1 option in the mount command in the legacy branch everything seems to be working perfectly.

Is this something you would consider including in the upcoming NFS solution for v2?

@nlf
Copy link
Owner

nlf commented Apr 27, 2016

sounds like a great idea to me

@bpinto
Copy link

bpinto commented Aug 16, 2016

@klenis I didn't notice any speed increase. Perhaps I added the wrong flag? Would you mind sharing what you did? Perhaps a PR?

This is what I did:

diff --git a/rootfs/etc/init.d/S41automount-nfs b/rootfs/etc/init.d/S41automount-nfs
index d237aa5..136f43c 100755
--- a/rootfs/etc/init.d/S41automount-nfs
+++ b/rootfs/etc/init.d/S41automount-nfs
@@ -20,7 +20,7 @@ start() {

   if [ -n "$gateway" ]; then
     mkdir -p "$share"
-    mount ${gateway}:"$share" "$share" -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp
+    mount ${gateway}:"$share" "$share" -o rw,async,noatime,rsize=32768,wsize=32768,proto=tcp,actimeo=1
     echo "OK"
   else
     echo "FAIL"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants