Go Back   DaemonForums > NetBSD > NetBSD General

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

Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th May 2008
SiTLar SiTLar is offline
New User
Join Date: May 2008
Posts: 2
Unhappy NFS tuning

I'm using NetBSD on an old notebook as a multipurpose server. I've installed nfsd on my NAS to let NetBSD access file archives. Samba doesn't work since NetBSD freezes than doing a memcpy to a mmap'ed file on smbfs. Unfortunately I got a very bad performance of NetBSD's nfs client.

To test the speed I use
$ dd if=/mnt/NAS/testfile of=/dev/null bs=16k
testfile is 256M zeros.

The best result on NetBSD is only 1.3Mb/s , however my desktop (2.6 linux) is doing 2.3Mb/s with same rsize=1024 on both systems. If I increase the value I get much better results on linux - up to 5.4Mb/s, but a performance loss on NetBSD - only about 500kb/s.

Any ideas? Thanks in advance!

Last edited by SiTLar; 25th May 2008 at 01:27 AM.
Reply With Quote
  #2   (View Single Post)  
Old 1st June 2008
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,503

Optimizing NFS is very difficult, something that speeds up one application, will lower performance for another.

Are you using TCP or UDP? NFS version 2 or version 3 protocol ? Can you test the difference?
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 1st June 2008
SiTLar SiTLar is offline
New User
Join Date: May 2008
Posts: 2

I can use only nfsv3 - I need large file support. Somehow there is no tcp support in the nfs server I've compiled, I didn't manage to figure out why. UDP fragmentation is relay a problem in NetBDS: I get 1.5 MB/s with rsize=1024 and 3 times less with larger values which are bigger than 1500 MTU. However linux client shows very good results in that configuration.
Reply With Quote

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

All times are GMT. The time now is 07:55 PM.

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