Samba performance, TCP Stack Issue?

Sten Daniel Sørsdal lists at wm-access.no
Sun Sep 24 07:05:09 PDT 2006


Jan Zacharias wrote:
> Hi,
> 
> was anybody able to tune the Samba service (2.2.12 or 3.0.23b) so that
> it would perform out as well as
> unter linux where it maxes out at about 11 Mb/s using some Intel/3com card?
> 
> So far, the most I got out of it was ~6 Mb/s while txing one file to a
> win2k station, curiously I get
> ~8.5 Mb/s when txing multiple files in parallel.
> 
> So far i messed with:
> 
>  - ifconfig mtu
>  - net.inet.tcp settings
>  - smb's socket options
> 
> Tuning SO_SNDBUF gave only very little gain, adapting the mtu to match
> the win2k box was useless.
> W/a net.inet.tcp.inflight.enable enabled the txrate is 2 Mb/s lower,
> however 6 Mb/s is still SLOW.
> 
> I cant find the bottleneck, as the system is quite idle.
> 
> Any Suggestions?
> 

Try setting sysctl net.inet.tcp.delayed_ack to '0'.
If that helps noticably you may tune sysctl net.inet.tcp.delacktime
to a lower value than the default ('100' ??). delacktime is only in
effect when net.inet.tcp.delayed_ack = '1'.

Does that help any?

-- 
Sten Daniel Sørsdal



More information about the freebsd-performance mailing list