NFS or Samba? What performance could be expected?

Roger Olofsson raggen at
Fri Feb 9 14:31:13 UTC 2007

Dear mailing list,

First of all, thanks to everyone that took the time to answer my 
previous questions to the list, I will try and do the same for the 
questions I am able to help with.

Now, over to this weeks project. Basically it's about a web server 
(apache) that runs a php application. This application saves data to a 
definable path and the idea is to save over the network to another 
physical machine. The application is disk intensive meaning speed is (as 
always) essential. Both machines are close, same network segment with a 
couple of switches inbetween. One machine is 6.2 and the other is 5.5 
(FreeBSD of course).

The questions:

What would be appropriate to use to mount the storage? NFS or Samba? 
What performance would be expected?

Follow-up, for NFS, should the storage machine (where the data is saved) 
be the NFS daemon and the web server the client or the other way around? 
Is there any tweaking parameters other than the setup from the handbook?

I am familiar with the basic setup of both NFS and Samba, compiling 
samba into the kernel etc but I'd be grateful for tips about tweaking 
the network performance for both.

As always, I am grateful for any answer! Thanks In Advance!


More information about the freebsd-questions mailing list