LinHES Forums
http://forum.linhes.org/

Slow NFS file read [Solved]
http://forum.linhes.org/viewtopic.php?f=11&t=8947
Page 1 of 1

Author:  markp2000 [ Sun Mar 12, 2006 10:20 pm ]
Post subject:  Slow NFS file read [Solved]

I'm having trouble with an nfs share from mythbox to my server. The read speed is just in the toilet. I had it working great, now nothing.

My setup - I have a central server that I keep all of my music, pictures and videos on. I have 4 windows boxes that work through samba, 1 linux box through nfs, and the mythbox through nfs all connected to it. The samba shares work great. I can pull video and music with no problems. The nfs share on the one linux machine works fine.

Here is my fstab

Code:
# /etc/fstab: filesystem table.
#
# filesystem  mountpoint  type  options  dump  pass
/dev/hda1  /  ext3 defaults,errors=remount-ro  0  1
/dev/hda3  /myth  ext3  defaults,auto  0  2

proc  /proc  proc  defaults  0  0
sysfs /sys   sysfs defaults  0  0
#/dev/fd0  /floppy  vfat  defaults,user,noauto,showexec,umask=022  0  0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0


#  Network Shares
192.168.1.104:/home/iso/video /myth/video/network nfs rsize=8192,wsize=8192,ro 0 0


Just does not make sense to me.

The server runs gentoo with a 2.6.15-r1 kernel.

Any ideas?

Mark

Author:  markp2000 [ Tue Mar 14, 2006 10:33 pm ]
Post subject: 

This is cross-posted here

http://www.dslreports.com/forum/remark,15682618

Author:  markp2000 [ Fri Mar 17, 2006 8:12 am ]
Post subject: 

OK - after scouring the net with google searches, it appears this is somewhat of a common problem. Most recommendations have been to go with another file system overlay to get the same results as NFS.

I went with FUSE and more percisely, sshfs. In case anyone is insterested here is what I did to get it to work.

Code:
#On the mythtv box
#As root or sudo
#This will also install fuse

root@mythtv:~# apt-get install sshfs
root@mythtv:~# chmod o+rw /dev/fuse
root@mythtv:~# chmod 4755 /usr/bin/fusermount
root@mythtv:~# su - mythtv

mythtv@mythtv:~$ sshfs 192.168.1.104:/home/iso/video /myth/video/network

#On the server side
#need to create a user - mythtv
#need to create a password for the mythtv user



This got my throughput up to where I can now watch the videos again.

I could not tell exactly where the issues were, but I did try several live OS to see if it was a mythtv problem or a network problem. Each live OS had the same symptoms, thus I assumed it was not mythtv. If I had to guess, it seemed to have to do with the different kernel versions, but that is pure speculation on my part.

Remember my gentoo box works with my gentoo server using nfs just fine.

EDIT (7 Jun 06) - I upgraded the built in LAN card to a gigabit (1000) card and I am now able to get NFS to work again. In researching this issue several posts spoke about mixing network card speeds. I did not take to much stock in them, but this gives me pause. Now it could have been a bad network card all along but at least everything is back to normal.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/