[CentOS] Slow NFS writes

Tue Oct 21 08:24:11 UTC 2008
A. Kirillov <nevis2us at infoline.su>

> Client, Macintosh G4, OS X 10.4.11
> 
> NFS Mount is done with the following options...
> -P (privileged ports)
> intr
> -r=32768
> -w=32768
> I tried doubling the size of the read/write windows to 65536 but it
> seemed to make little difference.
> 
> Task, Read / Write 648 Megabyte Photoshop file (PSD)
> Win2K = Win2K server (slow), RAID 5, Symantec EndPoint (ugh), retiring
> this server
> AFP   = Netatalk from new CentOS Server
> SMB   = Samba from new CentOS Server
> NFS   = see above options, same CentOS Server
> 
> Copy To     Win2K       AFP         SMB       NFS
>           1m40.053s   0m22.566s  0m23.817s  2m11.849s
> 	
> Copy From   Win2K       AFP         SMB       NFS
> 	1m34.478s   0m20.709s  0m20.823s  0m23.487s
> 
> NFS read performance was slightly slower than AFP/SMB but the write
> performance was poor.

I had a similar problem with a freebsd box awhile ago
and the solution was to mount an nfs share with much lower
r/w buffer size (2048?). There also was something in the logs related to
nfs server timeouts or server not responding.

HTH