Web lists-archives.com

Re: [Samba] Samba Share slow on OpenVPN




Hi Rowland/Jon,

When I am trying to upload/download the files without OpenVPN the speed is
coming as around 10 MB/s.

With OpenVPN it gets reduced to less than 1 MB/s.

Below is my smb.conf details

[global]
        workgroup = WORKGROUP
        server string = Samba Server
        dns proxy = no
        max log size = 1000
        panic action = /usr/share/samba/panic-action %d
        netbios name = centos
        passdb backend = tdbsam
        #hosts allow = 127.0.0.0/8 192.168.23.0/26
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
        #min receivefile size = 16384
        #se sendfile = true
        aio read size = 16384
        aio write size = 16384
        aio write behind = true
        max xmit = 65535
        log level = 1
        read raw = yes
        write raw = yes
        oplocks = yes
        deadtime = 15
        getwd cache = yes
        log file = /var/log/samba/log.%m
        load printers = no
        printing = bsd
        printcap name = /dev/null
        disable spoolss = yes
        reset on zero vc = yes
        security = user
        unix extensions = no
        wide links = yes

        strict allocate = Yes
        allocation roundup size = 4096
        server signing = no
        strict locking = no
        #socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072
SO_SNDBUF=131072
        use sendfile = Yes



[Shared]

        path = /Shared
        browsable = yes
        writable = yes
        guest ok = yes
        read only = no
        force user = nobody

Please help me how to increase the speed and how to test.

Regards,
Shobhit

On 13 September 2017 at 15:07, Jon Gerdes via samba <samba@xxxxxxxxxxxxxxx>
wrote:

> Almost certainly your OpenVPN connection is the problem - Samba will
> serve files as fast as the link permits and is comparable to say ftp.
>
> You could fiddle with OpenVPN first or you could do some real link
> speed testing and then use that to inform your tuning.  That of course
> assumes that your Samba implementation is optimal.  I assume that there
> is no performance problem on site.
>
> I would use something like iperf3 - https://iperf.fr/ to evaluate the
> effects of changes made.  Make one change at a time and test.  Keep a
> log of tests performed and changes made.  If you can, your first set of
> tests should be across the internet link without OpenVPN to establish a
> baseline.
>
> Samba uses TCP for file sharing so make sure you test that.  Try to
> control what else is running at the same time over the links.
>
> There is no easy answer to your question and the only "fix" is by using
> careful testing and a methodical approach.  Quite often you will get
> answers this way far quicker than simply messing about blindly.
>
> Cheers
> Jon
>
>
>
> On Wed, 2017-09-13 at 09:16 +0000, Shobhit Agarwal via samba wrote:
> > Hi guys,
> >
> > I have configured Samba share drives on my CentOS 7 VSI, and using
> > OpenVPN
> > client for the users to access these shares from Windows or MAC.
> >
> > While I am trying to upload/download heavy files (>500MB) it is very
> > slow
> > in speed.
> >
> > Any suggestions?
> >
> > Thanks,
> > Shobhit Agarwal
> > --
> > Regards, Shobhit Agarwal +61-406528285
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba