RE: NFS slow



Jan Catrysse wrote:
Hello all,

I am having some problems with NFS and slow performance.
This is the scenario:

2x FreeBSD 7.1. (Raid storage server, MP, the works)

GB Lan interface between them.

When I transfer 1 big file the speed is never higher than 10MB/s with a
peak
to 14MB/s.

When I transfer multiple files at the same time speed is about 10MB/s per
thread.
Disk speed > 100MB/s

Network speed using samba > 60MB/s (limited by clients disk speed)

Tried enabling NFSlockd, NFSstatd but that changes nothing.

Any help or hunch would be greatly appreciated.

Here are some ideas for testing:

* Any firewall in between them? Do you have network errors?
* Any other network problems, like DNS lookup failures? (not that it
should matter for sustained tranfers but still...)
* Are you using TCP or UDP for NFS? TCP should be better in all cases.
* Have you monitored the system with "top"? Try hitting "S" and "H" in
top while transfering files, see if anything looks suspicious.
* Run "iostat 1", check tps and KB/t.
* What file system are you using?

Hello Ivoras,

NFS TCP did the trick. I tried it already but I didn't properly dismount the
volumes before remounting them on TCP. I did a mount -u -a instead.
Using netstat it became clear NFS was still using UDP. A umount and mount -a
did the trick!

Thnx!
Jan

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: System hangs due to NFS share
    ... It works fine but as soon as my computer loses network ... NFS share, consider whether you can have the PATH referencing only local ... within /usr/local/bin run this command (once, or each time you mount ... try using umount -l to umount the filesystem ...
    (Debian-User)
  • Re: NFS automount not happening [solution confirmed]
    ... mount -a -t nfs ... the regular network up routines are not triggered to ... # do not bring up interface twice--PXE already did it ... this mount line to /etc/rc.local in order to mount additional nfs ...
    (Debian-User)
  • NFS Problems
    ... Indigo2 machine in network w/ FreeBSD, both configured for nfs server/client functions, and "nfsd" daemon running on both. ... FreeBSD machine mounts IRIX disks OK, but Indigo2 does not mount FreeBSD disks. ... 100000 2 tcp 111 portmapper ... 100000 2 udp 111 portmapper ...
    (freebsd-hackers)
  • Re: NFS client defaults to a mix of UDP and TCP
    ... The current mount_nfs defaults to using UDP for the mount protocol ... and then switches to using TCP for the actual mount. ... added changes for the experimental NFS client and thought it was ...
    (freebsd-current)
  • Re: [opensuse] Systemd and fstab
    ... can't find out for sure which network device is needed to mount a ... specific NFS directory before actually trying to mount it. ... has to be generic like "waiting for complete network setup" and then ...
    (SuSE)