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 1 Week Ago
mafkees1233 mafkees1233 is offline
Port Guard
 
Join Date: Apr 2019
Posts: 27
Default Slow upload to nfs server

Hello again,

I have some nfs shares on a debian server. I can mount them just fine and downloading goes great but uploading seems to be a problem. It goes really slow.

I got this in my fstab
192.168.0.15:/mnt/server-backup /mnt/server-backup nfs rw,nodev,nosuid 0 0

Is there a way to speed it up?

I'm running current (snapshot)

rpcinfo debian server
program vers proto port
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100005 1 udp 33756 mountd
100005 1 tcp 49393 mountd
100005 2 udp 58653 mountd
100005 2 tcp 50081 mountd
100005 3 udp 59368 mountd
100005 3 tcp 35293 mountd
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100227 3 tcp 2049
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100227 3 udp 2049
100021 1 udp 37613 nlockmgr
100021 3 udp 37613 nlockmgr
100021 4 udp 37613 nlockmgr
100021 1 tcp 44301 nlockmgr
100021 3 tcp 44301 nlockmgr
100021 4 tcp 44301 nlockmgr

mount:
/dev/sd0a on / type ffs (local)
/dev/sd0k on /home type ffs (local, nodev, nosuid)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid)
/dev/sd0f on /usr type ffs (local, nodev)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev)
/dev/sd0h on /usr/local type ffs (local, nodev, wxallowed)
/dev/sd0j on /usr/obj type ffs (local, nodev, nosuid)
/dev/sd0i on /usr/src type ffs (local, nodev, nosuid)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
/dev/sd1a on /mnt/backup type ffs (local, nodev, nosuid)
192.168.0.15:/mnt/videos on /mnt/videos type nfs (nodev, nosuid, v3, udp, timeo=100, retrans=101)
192.168.0.15:/mnt/server-backup on /mnt/server-backup type nfs (nodev, nosuid, v3, udp, timeo=100, retrans=101)
192.168.0.15:/mnt/downloads on /mnt/downloads type nfs (nodev, nosuid, v3, udp, timeo=100, retrans=101)

debian export
/mnt/server-backup 192.168.0.0/24(insecure,rw,sync,no_subtree_check,no_root_squas h)
/mnt/downloads 192.168.0.0/24(insecure,rw,sync,no_subtree_check,no_root_squas h)
/mnt/videos 192.168.0.0/24(rw,sync,no_subtree_check,no_root_squash)
/home/robert 192.168.0.0/24(insecure,rw,sync,no_subtree_check,no_root_squas h)

Last edited by mafkees1233; 1 Week Ago at 12:11 AM. Reason: more info
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,523
Default

There are some operands and options defined in mount_nfs(8) which can affect performance. You can also actively monitor performance with nfsstat(1).

All other tuning must occur on your server.
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,523
Default

I'm wrong, there is one more client knob, the sysctl vfs.nfs.iothreads, mentioned in mount_nfs().
Reply With Quote
  #4   (View Single Post)  
Old 1 Week Ago
mafkees1233 mafkees1233 is offline
Port Guard
 
Join Date: Apr 2019
Posts: 27
Default

Problem solved. Server needed async instead of sync in exports.

Thanks a lot for your help Jggimi. I see your name a lot while googling for openbsd things.
You're doing a great job *thumbs up*
Reply With Quote
Reply

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
Slow USB Prevet OpenBSD General 17 30th March 2018 11:44 PM
Web Server responds very slow on WAN notooth OpenBSD General 3 10th June 2016 02:02 AM
ftp upload files using the (S)hell ershiba OpenBSD Installation and Upgrading 4 31st December 2012 04:53 PM
Sun Java System Web Server - Active Server Pages (yes ASP) hopla FreeBSD General 0 26th September 2008 08:22 AM
Upload avatar? anomie Feedback and Suggestions 10 2nd May 2008 01:36 AM


All times are GMT. The time now is 12:38 PM.


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