Re: NFS Slow writes

2006-06-16 Thread Otto Moerbeek
On Thu, 15 Jun 2006, Bob Bostwick (Lists) wrote:

 I've narrowed the problem down.  I'm running an FTP server (vsftpd)
 who's users home dir's are on an nfs share.  If I run vstpd without
 mounting the nfs share (and create a user with a valid home dir) I get
 21MB/s uploads.  If I copy a file from the OBSD box to a dir on the NFS
 mount, I get 8MB/s.  However if I ftp to the nfs share I get 700KB/s
 uploads.  Downloads are fast either way, it's just the writes that seem
 really slow.  Vsftpd is starting through inetd (but I tried standalone
 and it made no difference.)  Is there some sort of incompatibility in
 doing it this way?
 
 Any thoughts would be greatly appreciated 

First: you do not tell which version of OpenBSD you are using. Recent
version DO have better NFS write performance. Look at the release
notes of 3.8. 

Since local copies are much faster than the ftp'ed data, I would
suspect that vsftd is doing writes in such a way that it really
stresses nfs. You could try using another ftp server and see if the
performance gets better. If that's the case, you know for sure where
to look further. 

-Otto



Re: NFS Slow writes

2006-06-16 Thread Andy Hayward

On 6/15/06, Bob Bostwick (Lists) [EMAIL PROTECTED] wrote:

I'm trying to setup an NFS share, and am getting horrible write
performance.  Reads are fast as can be expected.  I've searched the
archives and found several threads on the subject, but no resolutions.
I've tried all possible fstab options (that I know of) but none really
help with write.  I'm currently using

ip.addr:/nfs /test/dir nfs rw,nodev,nosuid,tcp,intr,-r=32768,-w=32768 0 0


I've found (after various tests) with with an OpenBSD (3.8) server and
Linux client, that I get the best performance with:

 rw,noauto,soft,tcp,rsize=2048,wsize=2048

This gives out 8MB/s for both read and write with my hardware.

YMMV, but one thing I did notice is that large rsize/wsize didn't
necessarily translate to better performance.

-- ach



NFS Slow writes

2006-06-15 Thread Bob Bostwick \(Lists\)
I'm trying to setup an NFS share, and am getting horrible write
performance.  Reads are fast as can be expected.  I've searched the
archives and found several threads on the subject, but no resolutions.
I've tried all possible fstab options (that I know of) but none really
help with write.  I'm currently using

ip.addr:/nfs /test/dir nfs rw,nodev,nosuid,tcp,intr,-r=32768,-w=32768 0
0

From (Subject: Re: nfs write speed performance... still)A Nov. 2004
thread

...it seems that the problem is known but no fixes are known or planned
for now since there're other priorities...

Does anyone still know if this is the case, or have I missed an
important thread?

Thanks.



Re: NFS Slow writes

2006-06-15 Thread Barry, Christopher
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 On Behalf Of Bob Bostwick (Lists)
 Sent: Thursday, June 15, 2006 6:05 PM
 To: misc@openbsd.org
 Subject: NFS Slow writes
 
 I'm trying to setup an NFS share, and am getting horrible write
 performance.  Reads are fast as can be expected.  I've searched the
 archives and found several threads on the subject, but no resolutions.
 I've tried all possible fstab options (that I know of) but none really
 help with write.  I'm currently using
 
 ip.addr:/nfs /test/dir nfs 
 rw,nodev,nosuid,tcp,intr,-r=32768,-w=32768 0
 0
 
 From (Subject: Re: nfs write speed performance... still)A Nov. 2004
 thread
 
 ...it seems that the problem is known but no fixes are known 
 or planned
 for now since there're other priorities...
 
 Does anyone still know if this is the case, or have I missed an
 important thread?
 
 Thanks.
 


Newer versions of nfs are set to 'sync' by default. Change to 'async'
and check performance.

-C 



NFS Slow writes

2006-06-15 Thread Bob Bostwick \(Lists\)
I've narrowed the problem down.  I'm running an FTP server (vsftpd)
who's users home dir's are on an nfs share.  If I run vstpd without
mounting the nfs share (and create a user with a valid home dir) I get
21MB/s uploads.  If I copy a file from the OBSD box to a dir on the NFS
mount, I get 8MB/s.  However if I ftp to the nfs share I get 700KB/s
uploads.  Downloads are fast either way, it's just the writes that seem
really slow.  Vsftpd is starting through inetd (but I tried standalone
and it made no difference.)  Is there some sort of incompatibility in
doing it this way?

Any thoughts would be greatly appreciated