PDA

View Full Version : slow NFS


Wooky
02-25-2006, 08:36 PM
I juts got my N770, and I am busy trying things. I set up an NFS server in my linux box, and I mounted it on the N770. It was extremely slowwwwww. So slow that I couldn't even copy files from it. I found little info about mounting NFS shares using the 770, but no one seems to have this kind of problem. Am I doing something foolish?

I created a dir in MyDocs:
/nfs/n770

and I mounted the NFS share like that:
mount 192.168.0.1:/home/jeff/Download/N770 /home/user/MyDocs/nfs/n770

My linux box /etc/exports entry is:
/home/jeff/Download/N770/ 192.168.0.0/8(root_squash,sync,insecure,rw)

Am I doing something wrong? I can access the share, but it is very slow. Perhaps I should create the mount point in the mmc card?

lon
02-26-2006, 05:54 AM
You need the "nolock" option. I use "-o nolock,rsize=1024,wsize=1024" and it seems to work pretty well, although I haven't really used it too heavily.

Lon

Wooky
02-26-2006, 04:21 PM
Thanks, that did the trick. I could play MP3s with no problem. Is 1024 an otimal size for reads/writes? I tried 2048 and it seemed about the same. Guess I should time some cp's to find an optimal value.

lon
02-27-2006, 03:42 AM
I used 1024 as the I/O size to avoid packet fragmentation, on the theory that packet fragmentation is just one more potential source of trouble. I don't actually know what the optimal size is, and prefer reliability to speed in this case anyway.