Zypper is very slow on regular internet connection, but normal through a VPN

Hello!
First time posting, sorry if I make any etiquette transgressions. I’ll try to get to the point fast, but I will get more verbose further down.

When trying to do anything on Zypper (and Opi) involving internet connection there is a 1-5 second lag. However, there is no lag when connecting the system through a VPN service.

What might the problem be?

In my limited understanding, I would assume that clear connection should always be faster than routing through a VPN?

  • This happens to me equally on both Tumbleweed and Slowroll running on the same network on different devices.
  • This has never been a problem on my local network with Linux Mint’s Apt or Arch’s Pacman.
  • I have switched to the closest mirrors. One that has the same domain that is the fastest repository on my Mint install.
  • Regular Firefox web-browsing doesn’t seem to be affected.
  • I live in Europe and have a fast internet connection.

My /etc/zypp/zypp.conf is set up like this…

[main]
download.min_download_speed=20000
multiversion=provides:multiversion(kernel)
multiversion.kernels=latest,latest-1,running
repo.refresh.delay=1080
download.max_concurrent_connections=10
commit.downloadMode=DownloadInAdvance
  • The download speeds themselves for individual packages are reasonably fast - in double digit mb/s. The problem is the 1-5 sec waiting time between different packages and processes.
  • The new experimental Parallel Downloads run very fast and smoothly once preloaded, however that is only one aspect that is remedied.

I’ve been using time sudo zypper ref to test my speed as I troubleshoot on my own. Here is the difference between the Reg Net and VPN.

Regular Connection

user@localhost:~> time sudo zypper ref
Repository 'Main Update Repository' is up to date.
Repository 'update-slowroll' is up to date.
Repository 'Java:packages' is up to date.
Repository 'Main Repository (NON-OSS)' is up to date.
Repository 'Main Repository (OSS)' is up to date.
Repository 'home:fifian:opensuse' is up to date.
Repository 'packman' is up to date.
All repositories have been refreshed.

real    0m28.535s
user    0m0.009s
sys     0m0.015s

VPN Connection

user@localhost:~> time sudo zypper ref
Repository 'Main Update Repository' is up to date.
Repository 'update-slowroll' is up to date.
Repository 'Java:packages' is up to date.
Repository 'Main Repository (NON-OSS)' is up to date.
Repository 'Main Repository (OSS)' is up to date.
Repository 'home:fifian:opensuse' is up to date.
Repository 'packman' is up to date.
All repositories have been refreshed.

real    0m5.828s
user    0m0.012s
sys     0m0.011s

I hope this can be resolved with your help. I would really love to move to Slowroll as my main daily driver. Most everything else on SUSE seems perfect for me! :slight_smile: I hope this issue is just a small exception that can be reliably fixed. I just can’t find anyone else online with this exact Zypper issue and resolution.

Thank you.

@Dewwit Hi and welcome to the Forum :smile:
I would suggest adding some verbosity to the output so you can see what is happening. I always add -vvv. For example time zypper -vvv ref

1 Like

Ok, going with the same scheme that I posted in the OP…

Regular Connection

user@localhost:~> time sudo zypper -vvv ref
Verbosity: 3
Initializing Target
Specified repositories:
Checking whether to refresh metadata for Main Update Repository
Retrieving: https://mirrorcache.opensuse.org/update/slowroll/repo/oss/repodata/repomd.x[done]
Repository 'Main Update Repository' is up to date.
Checking whether to refresh metadata for update-slowroll
Retrieving: http://download.opensuse.org/update/slowroll/repo/oss/repodata/[done (1.2 KiB/s)]
Repository 'update-slowroll' is up to date.
Checking whether to refresh metadata for Java:packages
Retrieving: https://download.opensuse.org/repositories/Java:/packages/openSUSE_Slowroll[done]
Repository 'Java:packages' is up to date.
Skipping disabled repository 'repo-non-free'
Checking whether to refresh metadata for Main Repository (NON-OSS)
Retrieving: https://opensuse.koyanet.lv/slowroll/repo/non-oss/repodata/repomd.xml .....[done]
Repository 'Main Repository (NON-OSS)' is up to date.
Checking whether to refresh metadata for Main Repository (OSS)
Retrieving: https://opensuse.koyanet.lv/slowroll/repo/oss/repodata/repomd.xml .........[done]
Repository 'Main Repository (OSS)' is up to date.
Checking whether to refresh metadata for home:fifian:opensuse
Retrieving: https://download.opensuse.org/repositories/home:/fifian:/opensuse/openSUSE_[done]
Repository 'home:fifian:opensuse' is up to date.
Skipping disabled repository 'network:cryptocurrencies'
Skipping disabled repository 'openSUSE-20250402-0'
Skipping disabled repository 'repo-non-oss'
Skipping disabled repository 'repo-openh264'
Skipping disabled repository 'repo-oss'
Skipping disabled repository 'repo-oss-debug'
Skipping disabled repository 'repo-oss-source'
Checking whether to refresh metadata for packman
Retrieving: https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/repodat[done]
Repository 'packman' is up to date.
Skipping disabled repository 'openSUSE-Slowroll-Debug'
Skipping disabled repository 'Open H.264 Codec (openSUSE Tumbleweed)'
Skipping disabled repository 'openSUSE-Slowroll-Source'
All repositories have been refreshed.

real    0m28.420s
user    0m0.015s
sys     0m0.018s

VPN Connection

user@localhost:~> time sudo zypper -vvv ref
Verbosity: 3
Initializing Target
Specified repositories:
Checking whether to refresh metadata for Main Update Repository
Retrieving: https://mirrorcache.opensuse.org/update/slowroll/repo/oss/repod[done (3.6 KiB/s)]
Repository 'Main Update Repository' is up to date.
Checking whether to refresh metadata for update-slowroll
Retrieving: http://download.opensuse.org/update/slowroll/repo/oss/repodata/repomd.xml .[done]
Repository 'update-slowroll' is up to date.
Checking whether to refresh metadata for Java:packages
Retrieving: https://download.opensuse.org/repositories/Java:/packages/openSUSE_Slowroll[done]
Repository 'Java:packages' is up to date.
Skipping disabled repository 'repo-non-free'
Checking whether to refresh metadata for Main Repository (NON-OSS)
Retrieving: https://opensuse.koyanet.lv/slowroll/repo/non-oss/repodata/repomd.xml .....[done]
Repository 'Main Repository (NON-OSS)' is up to date.
Checking whether to refresh metadata for Main Repository (OSS)
Retrieving: https://opensuse.koyanet.lv/slowroll/repo/oss/repodata/repomd.xml .........[done]
Repository 'Main Repository (OSS)' is up to date.
Checking whether to refresh metadata for home:fifian:opensuse
Retrieving: https://download.opensuse.org/repositories/home:/fifian:/opensuse/openSUSE_[done]
Repository 'home:fifian:opensuse' is up to date.
Skipping disabled repository 'network:cryptocurrencies'
Skipping disabled repository 'openSUSE-20250402-0'
Skipping disabled repository 'repo-non-oss'
Skipping disabled repository 'repo-openh264'
Skipping disabled repository 'repo-oss'
Skipping disabled repository 'repo-oss-debug'
Skipping disabled repository 'repo-oss-source'
Checking whether to refresh metadata for packman
Retrieving: https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumble[done (1.3 KiB/s)]
Repository 'packman' is up to date.
Skipping disabled repository 'openSUSE-Slowroll-Debug'
Skipping disabled repository 'Open H.264 Codec (openSUSE Tumbleweed)'
Skipping disabled repository 'openSUSE-Slowroll-Source'
All repositories have been refreshed.

real    0m5.361s
user    0m0.013s
sys     0m0.013s

I hope this helps!