[Samba] Speedup windows client [was] What is the maximum speed for download from a samba share

Rowland Penny rpenny at samba.org
Wed May 2 15:34:05 UTC 2018


On Wed, 2 May 2018 16:59:46 +0200
Knut Krüger via samba <samba at lists.samba.org> wrote:


See inline comments:

> 
> here the smb.conf

Does it work ?
Have you tried running 'testparm ?
You said earlier that this is running on Debian Stretch, so it should
be Samba version 4.5.12

> 
> [global]
> 
> socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288 
> SO_KEEPALIVE IPTOS_LOWDELAY
> 
> nt acl support = no
> 
>    vfs object = recycle
>    recycle:repository = Papierkorb
>    recycle:keeptree = Yes
>    recycle:touch = Yes
>    recycle:versions = Yes
>    recycle:maxsize = 0

You might as well remove the vfs recycle lines above, they are also in
the share and the line below renders it inoperative, they need to be
on the same line.

>    vfs objects = acl_xattr
>    map acl inherit = Yes

You are missing 'store dos attributes = Yes'

>    unix charset = ISO-8859-1
>    display charset = ISO-8859-1
>    security = share

The above is absolutely wrong 'share' security was removed some time
ago.

>    share modes = yes

Do you mean 'kernel share modes', if so, it is the default.

>    server string = %h server
>    dns proxy = no
>    interfaces=10.8.2.0/255.255.255.0
>    bind interfaces only = yes
>    disable netbios = yes
>    smb ports = 445
>    client NTLMv2 auth = yes
>    log file = /var/log/samba/log.%m
>    max log size = 1000
>    syslog = 0
>     panic action = /usr/share/samba/panic-action %d
>     encrypt passwords = true
>     passdb backend = tdbsam
>     obey pam restrictions = yes
>     unix password sync = yes
>     passwd program = /usr/bin/passwd %u
>     passwd chat = *Enter\snew\s*\spassword:* %n\n 
> *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
>     pam password change = yes
>     map to guest = bad user
>     load printers = no
>     printing = bsd
>     printcap name = /dev/null
>     disable spoolss = yes
>     usershare allow guests = no
> 
> min receivefile size = 2048
> use sendfile = true
> aio read size = 2048
> aio write size = 2048
> write cache size = 1024000
> read raw = yes
> write raw = yes
> getwd cache = yes
> oplocks = yes
> max xmit = 32768
> dead time = 15

I think you mean 'deadtime'

> large readwrite = yes
> 
> 
> [homes]
>     comment = Home Directories
>     browseable = yes
>     read only = no
>     valid users = %S
> 
> [test]
>    vfs object = recycle
>    recycle:repository = Papierkorb
>    recycle:keeptree = Yes
>    recycle:touch = Yes
>    recycle:versions = Yes
>    recycle:maxsize = 0
>    path = /var/datas/test/
>    public = yes
>    writable = yes
>    read only = no
>    comment = smb share
>    printable = no
>    guest ok = yes
>    create mode = 0775
>    force user = root
>    force group = root

How do you think you are running Samba ?
As a Unix domain member or a standalone server ?

Rowland





More information about the samba mailing list