TW vs. Leap 15.2 - such a difference in SAMBA performance?

Hello again!

Have a Leap 15.2 KDE and a TW KDE:

Leap15.2

sudo smbd -V 
Version 4.11.14-git.202.344b137b75dlp152.3.16.1-SUSE-oS15.0-x86_64

TW

sudo smbd -V
Version 4.13.4-git.199.be6e11f5ab2SUSE-oS15.5-x86_64

Both are on the same LAN, connected to same (dumb) switch, both with 1Gbit/s.

If I try to load the exact same (remote, behind VPN with not-that-broad an internet pipe) samba share (on a Debian/ARM,smbd: Version 4.9.5-Debian) in Dolphin it takes 1 second on TW to complete, but on the Leap 15.2 machine it takes LITERALLY minutes to load the folder with some 80 entries (files, folders).

Is it really the smbd version that makes such a big difference? Any way to get the TW-version on the Leap 15.2 from any official repo (not homebake stuff)?

OK, I tried the more recent samba on Leapt 15.2 (repo: https://download.opensuse.org/repositories/network:/samba:/STABLE/openSUSE_Leap_15.2/), now I have on Leap 15.2:

sudo smbd -V 
Version 4.14.2-git.159.2a8872214bflp152.1.1-SUSE-oS15.0-x86_64

but dolphin is slow as before. Is dolphin the problem? oO

Hmmm, smbstatus on server shows:

smbstatus

Samba version 4.9.5-Debian
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
----------------------------------------------------------------------------------------------------------------------------------------
1198    user        user        192.168.100.9 (ipv4:192.168.100.9:46246)    SMB3_11           -                    AES-128-CMAC         
1013    user        user        192.168.100.5 (ipv4:192.168.100.5:54400)    SMB3_11           -                    partial(AES-128-CMAC)
1203    user        user        192.168.100.5 (ipv4:192.168.100.5:54568)    SMB3_11           -                    partial(AES-128-CMAC)


…where the 192.168.100.9 is the slow Leap 15.2 and .100.5 is the fast TW. Why is there a difference in encryption? :frowning:

On both client machines and the server I have in smb.conf

        client min protocol=SMB2

Does Dolphin make the difference?

Are you using the default openSUSE Leap 15.2 KDE version (Plasma v5.18.5 LTS), or version from openSUSE KDE repos (Plasma v5.21.3)?

https://en.opensuse.org/SDB:KDE_repositories

Hi!

It’s default, no KDE repo (samba repo added this morning)

sudo zypper lr -u 
Repository priorities in effect:                                                                                   (See 'zypper lr -P' for details) 
      90 (raised priority)  :  1 repository 
      93 (raised priority)  :  1 repository 
      99 (default priority) :  5 repositories 

#  | Alias                     | Name                                                     | Enabled | GPG Check | Refresh | URI 
---+---------------------------+----------------------------------------------------------+---------+-----------+---------+------------------------
-------------------------------------------------------------- 
 1 | dvd                       | dvd                                                      | No      | ----      | ----    | http://opensuse-guide.o
rg/repo/openSUSE_Leap_15.2/ 
 2 | network_samba_STABLE      | Samba packages of released versions (openSUSE_Leap_15.2) | Yes     | (r ) Yes  | No      | https://download.opensu
se.org/repositories/network:/samba:/STABLE/openSUSE_Leap_15.2/ 
 3 | openSUSE-Leap-15.2        | openSUSE-Leap-15.2                                       | Yes     | (r ) Yes  | Yes     | http://download.opensus
e.org/distribution/leap/15.2/repo/oss/ 
 4 | packman                   | packman                                                  | No      | ----      | ----    | http://packman.inode.at
/suse/openSUSE_Leap_15.2/ 
 5 | packman2                  | packman2                                                 | Yes     | (r ) Yes  | Yes     | https://ftp.gwdg.de/pub
/linux/misc/packman/suse/openSUSE_Leap_15.2/ 
 6 | repo-debug                | Debug Repository                                         | No      | ----      | ----    | http://download.opensus
e.org/debug/distribution/leap/15.2/repo/oss/ 
 7 | repo-debug-non-oss        | Debug Repository (Non-OSS)                               | No      | ----      | ----    | http://download.opensus
e.org/debug/distribution/leap/15.2/repo/non-oss/ 
 8 | repo-debug-update         | Update Repository (Debug)                                | No      | ----      | ----    | http://download.opensus
e.org/debug/update/leap/15.2/oss/ 
 9 | repo-debug-update-non-oss | Update Repository (Debug, Non-OSS)                       | No      | ----      | ----    | http://download.opensus
e.org/debug/update/leap/15.2/non-oss/ 
10 | repo-non-oss              | Non-OSS Repository                                       | Yes     | (r ) Yes  | Yes     | http://download.opensus
e.org/distribution/leap/15.2/repo/non-oss/ 
11 | repo-oss                  | Main Repository                                          | Yes     | (r ) Yes  | Yes     | http://download.opensus
e.org/distribution/leap/15.2/repo/oss/ 
12 | repo-source               | Source Repository                                        | No      | ----      | ----    | http://download.opensus
e.org/source/distribution/leap/15.2/repo/oss/ 
13 | repo-source-non-oss       | Source Repository (Non-OSS)                              | No      | ----      | ----    | http://download.opensus
e.org/source/distribution/leap/15.2/repo/non-oss/ 
14 | repo-update               | Main Update Repository                                   | Yes     | (r ) Yes  | Yes     | http://download.opensus
e.org/update/leap/15.2/oss/ 
15 | repo-update-non-oss       | Update Repository (Non-Oss)                              | Yes     | (r ) Yes  | Yes     | http://download.opensus
e.org/update/leap/15.2/non-oss/



I was asking because of your question…

Does Dolphin make the difference?

Pure speculation, but perhaps worth trying to see if upgrading KDE does indeed make a difference.

I have latest stable samba version and KDE Plasma 5 DE from KDE repos, and not aware of any issues. However, I only ever use it to transfer the odd file to/from my Windows host, and maybe a Mac laptop occasionally.

I would need all 4 repos for that?

https://en.opensuse.org/SDB:KDE_repositories

Just for the lulz I added to the server config:

[global]
...
smb encrypt = mandatory

But that makes no difference in speed at all, for both clients, TW as well as Leap 15.2. The TW is quick, the Leap takes a minute to complete…

smbstatus

Samba version 4.9.5-Debian
PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
----------------------------------------------------------------------------------------------------------------------------------------
1476    user        user        192.168.100.5 (ipv4:192.168.100.5:55394)    SMB3_11           AES-128-CCM          partial(AES-128-CMAC)
1477    user        user        192.168.100.5 (ipv4:192.168.100.5:55396)    SMB3_11           AES-128-CCM          partial(AES-128-CMAC)
1483    user        user        192.168.100.9 (ipv4:192.168.100.9:47114)    SMB3_11           AES-128-CCM          AES-128-CMAC         
1475    user        user        192.168.100.5 (ipv4:192.168.100.5:55390)    SMB3_11           AES-128-CCM          partial(AES-128-CMAC)
1480    user        user        192.168.100.9 (ipv4:192.168.100.9:47090)    SMB3_11           AES-128-CCM          AES-128-CMAC         
1482    user        user        192.168.100.9 (ipv4:192.168.100.9:47112)    SMB3_11           AES-128-CCM          AES-128-CMAC

Strange…

Agreed. Speculating that the difference in encryption could be significant here? Are both samba clients configured the same with respect to "smb encrypt = "? I assume “partial” means the session is encrypted one way, and unencrypted the other, but I’m open to being corrected about that.

Some good information regarding SMB3 and encryption behaviour mentioned here…

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

https://wiki.samba.org/index.php/Samba_Security_Documentation#AES

Maybe it’s related to the different kernels?

https://wiki.samba.org/index.php/LinuxCIFSKernel

Needs a check with Leap + kernel fom kernel:stable repo.

Agreed. Worth a shot.

I don’t want to risk my remote machine and tried something here locally. I installed a (virtual) Leap 15.3 and the samba shares load pretty fast. But it’s too early to update my remote 15.2… :frowning:

PS: But I have a local 15.2 I could upgrade to 15.3, or is that too early? Needs just Firefox and smb… but its an LXDE install. Safe to shift to 15.3?

https://news.opensuse.org/2021/04/28/opensuse-leap-153-enters-rc-phase/

May 21 - Gold Master
June 2 - Public Availability of the Release (5 to 10 days after GM)

Yupp, saw that… I updated the local 15.2 to 15.3 yesterday, went smoothly and samba performance much better than before. I will wait some days and maybe try the remote system, too. The RC looks pretty good for my limited use case :slight_smile: