DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st October 2013
mickywicky mickywicky is offline
New User
 
Join Date: Oct 2013
Posts: 7
Thanked 0 Times in 0 Posts
Default OpenBSD NFS server over TCP performance

Hi guys,

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.
Reply With Quote
  #2   (View Single Post)  
Old 30th December 2013
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
cybernetic organism
 
Join Date: Oct 2013
Location: Oak Ridge, TN
Posts: 31
Thanked 0 Times in 0 Posts
Default

Thanks!

I tried this from a Xubuntu box lucidrine connecting to an OpenBSD NFS server insomnia:

hanzer@lucidrine:~$ sudo mount.nfs -o rsize=65536,wsize=65536 insomnia:/video /home/hanzer/Videos

Data transfer increased from ~7MB/sec to ~25MB/sec.

Much appreciated!
Reply With Quote
Reply

Tags
nfs, nfs over tcp, nfs over udp, nfs performance

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT. The time now is 09:22 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick