[Samba] ridiculous slow gigabit transfer, faster with VNC

samba at jdmc.org samba at jdmc.org
Thu Jul 19 21:20:07 GMT 2007


> Mark,
> I have noted the same behavior many times.
> I have an old server box that has not been upgraded since ver. 2.2.8.
> Whenever I connect from a linux box using sftp in a terminal, I get
> top speed 10/100 ethernet transfer rates over the LAN -- 10 Megs/sec.
> - 12 Megs/sec.
> When I use WinSCP (from a win client box), I get no more than 2
> Megs/sec. transfer rate.

  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



This message is confidential, intended only for the named recipient(s) and
may contain information that is privileged or exempt from disclosure under
applicable law.  If you are not the intended recipient(s), you are
notified that the dissemination, distribution or copying of this message
is strictly prohibited.  If you receive this message in error, or are not
the named recipient(s), please notify the sender at the e-mail address
above and delete this e-mail from your computer.  Thank you.



More information about the samba mailing list