[lug] Samba, VPN, unison & speed

John Hernandez jph at jph.net
Wed Jan 4 10:56:18 MST 2012


Bump this advice, particularly if a pre-Vista Windows system or an older
Linux kernel is involved.  What's your ping RTT?

On Wed, Jan 4, 2012 at 9:00 AM, Ben Luey <bluey at iguanaworks.net> wrote:

> **
>
>  Have you tried setting the TCP Window size to adjust for the bandwidth
> delay product?
> http://fasterdata.es.net/fasterdata/host-tuning/linux/
>
>   No, I haven't tried it, but I'm connecting to the VPN with internet
> speeds of 1-5 Mbps, so my reading (see below) is that those optimizations
> would only degrade performance in that context. Also, I don't want to
> (significantly) degrade performance for people on the LAN.
>
> "*Note that most of the tuning settings described here will actually
> decrease performance of hosts connected at rates of OC3 (155 Mbps) or less,
> such as home users on Cable/DSL connections. *"
>
> Thanks for the suggestion though,
>
> Ben
>
>
>
>  Dan
>
> On 1/4/2012 8:50 AM, Ben Luey wrote:
>
>  I'm running Debian Squeeze with Samba 3.5.6 and OpenVPN. It works fine,
> but using file sharing over the VPN is very slow. I've read that the smb
> protocol doesn't play nice with network latency, etc, so maybe there is
> nothing I can do about it, but I'm curious if anyone has any
> suggestions. Transferring large files utilizes at best 20% of bandwidth
> (direct wireless connetion to the vpn, or fast internet connection) (On
> wired 100MB/s ethernet without VPN, I get 50% utilization). Doing lots
> of dirs and small file look-ups are significantly slower. This is
> particularly a problem when using unison to sync diectories on a Windows
> machine (fastcheck is enabled in unison), which is really mostly what I
> care about.
>
> I've tried adding
> max protocol = SMB2 to samba, but speed tests under Win 7&  Ubuntu 11.10
> were the same. Maybe the solution is not to have unison run on top of
> windows file sharing, but users don't have shell/ssh access so I don't
> know how else to do it.
>
> Any ideas appreciated. Thanks,
>
> Ben
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
>  _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
>
>
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: irc.hackingsociety.org port=6667 channel=#hackingsociety
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20120104/b51dd5eb/attachment.html>


More information about the LUG mailing list