[Samba] ridiculous slow gigabit transfer, faster with VNC

Mike 1100100 at gmail.com
Thu Jul 19 23:27:04 GMT 2007


On 7/19/07, samba at jdmc.org <samba at jdmc.org> wrote:
>
>   I ran into this when trying to rsync backups on a brand new gig-eth
>   card on a 2.6.x kernel machine. Funny thing was, not only was the
>   slow down machine specific, it was service specific as well. The
>   following MAY work for you ...
>
> #!/bin/sh
>
> /sbin/sysctl -w net.core.rmem_max=107374182
> /sbin/sysctl -w net.core.wmem_max=107374182
> /sbin/sysctl -w net.core.rmem_default=107374182
> /sbin/sysctl -w net.core.wmem_default=107374182
> /sbin/sysctl -w net.core.optmem_max=107374182
> /sbin/sysctl -w net.ipv4.tcp_rmem="107374182 107374182 107374182"
> /sbin/sysctl -w net.ipv4.tcp_wmem="107374182 107374182 107374182"
> /sbin/sysctl -w net.ipv4.tcp_mem="107374182 107374182 107374182"
> /sbin/sysctl -w net.core.netdev_max_backlog=1000
> /sbin/ifconfig eth0 txqueuelen 1000
> /sbin/sysctl -w net.ipv4.route.flush=1
> /sbin/sysctl -w net.ipv4.tcp_no_metrics_save=1
> /usr/sbin/ethtool -K eth0 tso off
> # For  Intel e1000 NIC Users: Add "options e1000 RxDescriptors=4096" into
> /etc/modules.conf
>

hmm, i've never played with anything like this before.
Thanks!
I'll do some reading on sysctl and give a try.


More information about the samba mailing list