[Samba] What is the maximum speed for download from a samba share

Knut Krüger itservice at knut-krueger.de
Fri Apr 20 17:42:31 UTC 2018


Am 20.04.2018 um 17:33 schrieb Michael Wandel:
> Which smb protocol your clients are using ?
>> TCP
> nice answer, but can you look with smbstatus on the serverside which smb
> protocol you use smbX (x = 1,2,2_11,?)
NT1
>
>>   I tried with Server Debian Jessie and Debian Stretch - maybe stretch
>> was a little bit faster.
> which smbtest you are using, smbclient or mount.cifs or something else ?
Connecting with linux konsole
#openvem ...
  mount -t cifs ...


>
> Can you append a stripped smb.conf with your actual settings ?
first I tried the default settings of debian stretch - it was below 20 
Kbits/s

now about 25% faster

[global]

   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

    server role = standalone server

    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

    usershare allow guests = yes




    strict allocate = Yes

    allocation roundup size = 4096

    read raw = Yes


    server signing = No

    write raw = Yes

    strict locking = No

    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 
SO_SNDBUF=131072

    min receivefile size = 16384


    use sendfile = Yes

    aio read size = 16384

    aio write size = 16384


#======================= Share Definitions =======================

[homes]
    comment = Home Directories
    browseable = no

    read only = yes

    create mask = 0700

    directory mask = 0700

    valid users = %S

  usershare allow guests = no

[homes]
    comment = Home Directories
    browseable = yes
  read only = no
  valid users = %S

[TEST1]
   vfs object = recycle
   recycle:repository = basket
   recycle:keeptree = Yes
   recycle:touch = Yes
   recycle:versions = Yes
   recycle:maxsize = 0



  path = /var/data/TEST1/
  public = yes
  writable = yes
  read only = no
  comment = smb share
  printable = no
  guest ok = yes
  create mode = 0775
force user = root
force group = root


[TEST2]

  path = /var/data/TEST2/
  public = yes
  writable = no
  read only = yes
  comment = smb share
  printable = no
  guest ok = yes
  create mode = 0755
  force user = root
  force group = root



More information about the samba mailing list