Samba Performance problem

Jan Zacharias jan at graphics.cs.uni-sb.de
Fri Sep 29 08:28:48 PDT 2006


Hi Olivier,

generally the Samba performance on *BSD just sucks,
I wrote to this list with the same problem some weeks ago,
no one was able to tune smbd so that it would outperform
as well as under linux.

The only solution is to migrate your fileserver to a Linux distribution
as I did. Performance on the same Hardware: now ~11MB/s using 100Mbit NIC,
before ~6MB/s (FreeBSD 6.1).

Greetz, Jan

On Fri, 29 Sep 2006 16:21:20 +0200, Olivier Cochard-Labbe  
<olivier at freenas.org> wrote:

> Hi all,
>
> I meet a performance problem with my customized distro of FreeBSD  
> 6.1(FreeNAS).
> Lot's of FreeNAS users compare the performance of FreeNAS with Linux, and
> the Samba performance are very poor under FreeNAS (but not with NFS or  
> FTP).
>
>
> I've use this value on the default samba configuration:
> socket options = IPTOS_LOWDELAY TCP_NODELAY
> SO_SNDBUF=16384
> SO_RCVBUF=16384
>
> But there is no change.
>
> Then I've try to add a "tune" parameter that set this kernel variables:
> net.inet.tcp.delayed_ack=0
> net.inet.tcp.sendspace=65536
> net.inet.tcp.recvspace=65536
> net.inet.udp.recvspace=65536
> net.inet.udp.maxdgram=57344
> net.local.stream.recvspace=65535
> net.local.stream.sendspace=65535
> kern.ipc.maxsockbuf=2097152
> kern.ipc.somaxconn=8192
> kern.ipc.nmbclusters=60000
> kern.maxfiles=65536
> kern.maxfilesperproc=32768
> net.inet.tcp.inflight.enable=0
>
> But there is no change too... How can I improve the Samba performace ?
>
> Thanks,
>
> Olivier
>



-- 
Co.G.Wheel - Administation Group, Computer Graphics Lab of Saarland  
University
Phone: 0681 302 3841 Telecopy: 0681 302 3843 Web:  
http://graphics.cs.uni-sb.de


More information about the freebsd-performance mailing list