Closed bertmeeuws closed 3 weeks ago
Docker/containers add some overhead, so that can be a reason for lower bandwidths, see https://github.com/qdm12/gluetun-wiki/blob/main/faq/bandwidth.md
Core 1 is maxed out but the other 3 cores are at ~20 percent usage.
Not everything is parallelizable, so that would explain the only 20% of usage on the 3 other cores. The Raspberry Pi 4 single core performance might be quite worst than for a laptop, and that could be the reason for the bottleneck (since first core is at 100% usage as well). Enough blabla though! What you should try, is to setup a Wireguard server (not the easiest, but not too hard either) on another machine in your local network, and speed test (for example with iperf) the bandwidth from Gluetun to your own wireguard server. If it is still at the same speeds, it means you have a single core performance bottleneck 😉
I'll leave this issue opened in case you make new discoveries in the coming days, I'll close it if inactive for a few days.
On the host I have:
Retrieving speedtest.net configuration...
Testing from Hetzner Online GmbH (162.XX.162.XX)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by WOBCOM GmbH (Wolfsburg) [153.34 km]: 30.074 ms
Testing download speed
Download: 1891.43 Mbit/s
Testing upload speed
Upload: 703.17 Mbit/s
Within the ProtonVPN gluetun container:
Retrieving speedtest.net configuration...
Testing from Proton AG (194.XXX.177.XX)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by WOBCOM GmbH (Wolfsburg) [294.95 km]: 106.612 ms
Testing download speed
Download: 267.37 Mbit/s
Testing upload speed
Upload: 142.39 Mbit/s
@clemone210 what machine are you using? A raspberry pi 4 as well? It looks like you're comparing no-VPN bandwidths to VPN bandwidths, which not really comparable because:
The only way to reliably compare if Gluetun would have an impact on performance, would be to run wireguard natively without Docker versus Gluetun
as long as you are using the kernelspace wireguard, I don't think there'll be any difference in speed between using gluetun and not. The CPU actually has to do a great deal of work in encrypting all of the data before it is sent. I've seen on some forums people are suggesting midrange x86_64 processors in order to be able to run a wireguard connection at 1gbps. This is just a fundamental reality of using encryption, it has a computational cost.
Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.
This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.
Is this urgent?
No
Host OS
Debian GNU/Linux 11 (bullseye)
CPU arch
aarch64
VPN service provider
Mullvad
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2023-08-11T11:08:54.752Z (commit e556871)
What's the problem 🤔
I am running Gluetun with Mullvad on a Raspberry Pi 4 model B with 8GB RAM.
But whenever I run a speed test inside one of the dockers I only get around 340 Mbits. My Raspberry Pi is connected to my router with a cable and I have an internet speed of 1 gigabit. In reality, it is more or less 920Mbits without a VPN.
Inside my qbittorrent I use port forwarding which works and has been validated with ipleak.net Whenever I run a speed test inside the docker and look at my CPU usage. Core 1 is maxed out but the other 3 cores are at ~20 percent usage.
Extra notes:
Inside the container:
Without VPN raspberry pi
Share your logs (at least 10 lines)
Share your configuration
EDIT: I still had to Docker pull the latest image, issue has not been resolved.