OpenBSD NFS server over TCP performance
I finally nailed this problem which had been bugging me for a few months, so here's my notes in case anyone else gets this.
PROBLEM: OpenBSD NFS server, using TCP, is slow - less than 20% the throughput of SMB or SFTP. Observed on OS X, FreeBSD and Linux clients.
Switching to UDP solves the throughput issue.
What bugged me was one client was connecting over a powerline network link with reliability issues. So UDP was not really an option there
After much trial and error I found this: setting rsize, wsize and dsize to 65536 on the client, TCP throughput matched UDP, give or take 5%.
The defaults in /usr/src/sys/nfs/nfs.h (on 5.3-STABLE) are set at 8192 - for NFSv2 compatibility?
Hope this helps someone.
|nfs, nfs over tcp, nfs over udp, nfs performance|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Is openbsd really not so good in performance ?||barti||OpenBSD General||19||23rd August 2012 12:42 PM|
|Weeks of searching and no answer yet - is openbsd performance good for web server ?||barti||FreeBSD General||12||20th August 2012 09:06 PM|
|ssh server on OpenBSD||MarinosK||OpenBSD General||4||16th February 2011 07:38 PM|
|Think you've mastered the art of server performance? Think again.||J65nko||News||2||17th June 2010 10:24 PM|
|OpenBSD Impressive pf performance improvement in OpenBSD current||J65nko||News||0||5th January 2010 08:07 PM|