Slow speed on raspberry pi

General support for problems installing or using Deluge
cegueira
New User
New User
Posts: 8
Joined: Thu Oct 18, 2018 5:19 pm

Slow speed on raspberry pi

Post by cegueira »

I've just upgraded my internet connection from 80/20 to 500/80 (Mbps). I'm unable to get much past 10MBps downloading in deluge.

In qbittorrent on the same system it gets to 49MBps.

I am testing with a Ubuntu ISO, and leaving the torrent active for >2 minutes, a separate port has been opened for each client.

Anything I can try, I would like to keep Deluge as I like having the thin client.

Raspberry Pi info:
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye

Deluge Info:
Client: 2.0.3
Server: 2.0.5
libtorrent: 1.2.9.0
shinger
Leecher
Leecher
Posts: 90
Joined: Sat Jun 05, 2010 1:02 pm

Re: Slow speed on raspberry pi

Post by shinger »

Hi,

I don't think Deluge is at fault with this. Before i bought my new SBC i had the same experience with Raspberry Pi 4 (in my case). I could ONLY reach speeds up to around 50-60 MB/s. And i am not talking about internet speeds but also network speeds. When trying to SCP a file or even more files i could not reach higher speeds. Tried SMB that was also slow. Usually using SCP you could reach the maximum when it comes to speed.

https://www.reddit.com/r/raspberry_pi/c ... using_smb/

Back then i was using M.2 NGFF SATA over USB 3.0 (which is still 5 Gbit and my network was 1 Gbit), but i simply could not reach higher speeds. With my current SBC (Radxa Rock 5B) i can reach the maximum speed (which is 1 Gbit, as my network is the bottleneck. It is only 1 Gbit network. Currently trying to upgrade everying to 10 Gbit).

But yeah it is sad..but it is what it is. Maybe open for a Radxa Rock 5B?..i promise you i am not getting any commission :P. It is just a very good product. (up to 8 cores, 16 GB RAM and M.2 NVME slot)
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 22.04 LTS
Deluge: v2.1.1
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
cegueira
New User
New User
Posts: 8
Joined: Thu Oct 18, 2018 5:19 pm

Re: Slow speed on raspberry pi

Post by cegueira »

I think it must have something to do with deluge or this libtorrent version, as using qbittorrent on the same pi, saving to the same location (USB 3 HDD), with the same torrent yields 4x speeds, maxing out my internet connection.

Incidentally iperf3 test (LAN), between two raspberry pis (with a switch and an AP between them):

[ 5] local 192.168.1.200 port 44000 connected to 192.168.1.202 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 110 MBytes 923 Mbits/sec 0 249 KBytes
[ 5] 1.00-2.00 sec 112 MBytes 942 Mbits/sec 0 255 KBytes
[ 5] 2.00-3.00 sec 111 MBytes 929 Mbits/sec 20 255 KBytes
[ 5] 3.00-4.00 sec 111 MBytes 933 Mbits/sec 0 249 KBytes
[ 5] 4.00-5.00 sec 111 MBytes 933 Mbits/sec 0 249 KBytes
[ 5] 5.00-6.00 sec 111 MBytes 933 Mbits/sec 0 246 KBytes
[ 5] 6.00-7.00 sec 110 MBytes 923 Mbits/sec 24 280 KBytes
[ 5] 7.00-8.00 sec 111 MBytes 933 Mbits/sec 0 243 KBytes
[ 5] 8.00-9.00 sec 112 MBytes 944 Mbits/sec 0 249 KBytes
[ 5] 9.00-10.00 sec 108 MBytes 902 Mbits/sec 0 5.66 KBytes
User avatar
ambipro
Moderator
Moderator
Posts: 445
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Slow speed on raspberry pi

Post by ambipro »

Try updating to a 2.x version of libtorrent or more up to date version of 1.2.x.

you can pypi or @mhertz can link you to his build of the latest
mhertz
Moderator
Moderator
Posts: 2215
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Slow speed on raspberry pi

Post by mhertz »

Sorry don't know anything about raspbian i'm affraid, or arm in general or however called, and not sure if even available on pypi honestly(the right type arm also), but could try see yourself, or check with if 'pip3 install libtorrent' succeds.
cegueira
New User
New User
Posts: 8
Joined: Thu Oct 18, 2018 5:19 pm

Re: Slow speed on raspberry pi

Post by cegueira »

pip3 install libtorrent:
ERROR: Could not find a version that satisfies the requirement libtorrent (from versions: none)
ERROR: No matching distribution found for libtorrent

We may be able to rule out the libtorrent version, below is the qbittorrent software info:
Qt: 5.15.1
Libtorrent:1.2.9.0
Boost: 1.71.0
OpenSSL: 1.1.1w
zlib: 1.2.11
shinger
Leecher
Leecher
Posts: 90
Joined: Sat Jun 05, 2010 1:02 pm

Re: Slow speed on raspberry pi

Post by shinger »

Hi cegueira,

I would advice you to scp or move a large file from the raspberry pi to your computer so you are sure that it is the fault of Deluge. Or else you will just be wasting your time looking at the wrong place as the root cause. The should be the first step in solving computer/software issues to see the root cause and from there go to the next step.
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 22.04 LTS
Deluge: v2.1.1
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
cegueira
New User
New User
Posts: 8
Joined: Thu Oct 18, 2018 5:19 pm

Re: Slow speed on raspberry pi

Post by cegueira »

shinger wrote: Fri Oct 27, 2023 7:46 am Hi cegueira,

I would advice you to scp or move a large file from the raspberry pi to your computer so you are sure that it is the fault of Deluge. Or else you will just be wasting your time looking at the wrong place as the root cause. The should be the first step in solving computer/software issues to see the root cause and from there go to the next step.
I don't really see the point in doing this as it takes me 3 minutes to download the iso on qbittorrent and 11 mins to download the same iso with deluge.
shinger
Leecher
Leecher
Posts: 90
Joined: Sat Jun 05, 2010 1:02 pm

Re: Slow speed on raspberry pi

Post by shinger »

ooh wait i think i have missed your other reply.

I do have noticed some of the settings in Deluge. One for example is Peer TOS Byte but also Hide Client Identity.

The Peer TOS Byte is set to 0x08
Hide Client Identity[ is unchecked.

Besides these two settings i have noticed that if you are downloading from another client that is also using like Deluge it goes much faster than if it is using lets say transmission.

Besides these things i would also suggest to start using the latest version of Deluge to see if the problem has been solved, because for now i see no other reason if other clients to have a very high speed.
===============================================================
Server: Rock 5B 8 Cores (ARM), 16 GB RAM, 2 TB 970 Evo +
OS: Linux Ubuntu 22.04 LTS
Deluge: v2.1.1
Plugins: Blocklist, LabelPlus, ItConfig, MyScheduler, Stats, Notifications, YaRSS2
User avatar
ambipro
Moderator
Moderator
Posts: 445
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Slow speed on raspberry pi

Post by ambipro »

I would think that most of the speed issues would be the same across clients if using the same libtorrent library...

I'm not really sure where the actual writing comes from, whether Deluge does the IO but I'd think now based on ltconfig settings for write/read and IO threads. You might try and adjust those, aio_threads and others (google libtorrent settings for this)

Situation sucks, I had IO problems before but it ended up being the hardware.
Post Reply