Odroid C4 and Qbittorrent DL speed

Post Reply
makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Odroid C4 and Qbittorrent DL speed

Post by makakam »

I have a USB 3.0 external HDD connected to my C4 and a Coreelec system installed on a micro SD card. When I DL torrents using Qbittorrent I can't get more than 60MB DL speed on my 1Gbit connection and it is not very stable, I guess because the disk can't keep up with writing?
Would it be better if I had the Coreelec installed on a USB SSD drive and download torrents on the very same drive the system is installed to?

Edit:This should be in C4 section, I was sure I was posting it there, sorry.

User avatar
rooted
Posts: 9004
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 745 times
Been thanked: 422 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by rooted »

It would be more like 120 megabyte/s from SSD I imagine.

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

Moved to C4.

Note that torrenting is not typically used for benchmarking. 60MB/s for torrenting on a low powered device sounds great to me!

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

Yep, remember you need just as fast seeders on the other side of the link.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

I'm not worried about seeders as they are mostly seedboxes. I'm trying to get that 60MB stable as currently it is not and I'm trying to find the bottleneck.

User avatar
rooted
Posts: 9004
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 745 times
Been thanked: 422 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by rooted »

makakam wrote:I'm not worried about seeders as they are mostly seedboxes. I'm trying to get that 60MB stable as currently it is not and I'm trying to find the bottleneck.
What is your sustained writing speed to the USB drive in general?

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

The problem might be somewhere on the internet - between you and the peers.
To test locally:
- network in LAN:
* iperf3 between C4 and a wired computer. Try with and without -R
* wget a large 4G iso from a linux mirror near you and write it to /dev/null (tests network), like wget -O /dev/null http://centos.mirrors.telekom.ro/centos/8.5.2111/isos/x86_64/CentOS-8.5.2111-x86_64-dvd1.iso
- test disk writing speed (sequential):
* dd if=/dev/zero of=/path/to/mountpoint bs=1M count=8000

and see if you hit a bottleneck. Otherwise, the bottleneck is in bittorrent program/network.
These users thanked the author mad_ady for the post:
mctom (Sun Dec 19, 2021 12:17 am)

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

Iperf3 shows about 900mbps which I think is OK.
Ookla speedtest in Docker shows 905mbps.

DD write test of a USB 3.0 HDD gave me about 96 MB/s but the same command does not seem to work for my SSD connected to the C4 (sorry I'm a noob).

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

Show us the exact dd command you used and the output of mount

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

dd if=/dev/zero of=/var/media/PNY ELITE PSSD/test.speed bs=1M count=8000 <---------- for SSD this does not work


Code: Select all

CoreELEC:~ # mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=1893280k,nr_inodes=473320,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/mmcblk1p1 on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/loop0 on / type squashfs (ro,relatime)
/dev/mmcblk1p2 on /storage type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var type tmpfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda1 on /var/media/PNY ELITE PSSD type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/sdb1 on /var/media/CE type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
overlay on /storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/08cf910a2bd412cdd7314a769e9a09c03cbd7668296eeffcade3417f20e9656d/merged type overlay (rw,relatime,lowerdir=/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/GPROE6JKX5WYWSTWLIKSXSFT4C:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/RIRV4F62352LUZKBV2ZBFQNMJA:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/XABIDCFIPC5VR4FU5JWOY23QZM:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/5XEXDEZAXX5ZMXJNMGLG4BK22K,upperdir=/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/08cf910a2bd412cdd7314a769e9a09c03cbd7668296eeffcade3417f20e9656d/diff,workdir=/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/08cf910a2bd412cdd7314a769e9a09c03cbd7668296eeffcade3417f20e9656d/work)
shm on /storage/.kodi/userdata/addon_data/service.system.docker/docker/containers/a3ea125a38f3539f027a7926b44e4166737822331e5946c3016eff30ad01c7f5/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
nsfs on /run/docker/netns/b855490c96ce type nsfs (rw)
overlay on /storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/d7069c928ccb552b3f7849fde3c3c8c3096544e2b71121c9f622a886b5416a6b/merged type overlay (rw,relatime,lowerdir=/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/BOOFHOJFWU5DBPWLPFLHZ7LOJD:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/UV5EPDXEPVN2C3ROUDGQSCE6OZ:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/NQQ5WHKXEKT7N2R7FFWZHPIIHB:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/5IVIK7YFJJIOVNPNAAQ547ZNHZ:/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/l/WKRUXXDBJD3T65PFIEWCZKLJVU,upperdir=/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/d7069c928ccb552b3f7849fde3c3c8c3096544e2b71121c9f622a886b5416a6b/diff,workdir=/storage/.kodi/userdata/addon_data/service.system.docker/docker/overlay2/d7069c928ccb552b3f7849fde3c3c8c3096544e2b71121c9f622a886b5416a6b/work)
shm on /storage/.kodi/userdata/addon_data/service.system.docker/docker/containers/51698411cc722a53664e6901fefeacbbc779865d59e102df74bca03312a5bba6/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
nsfs on /run/docker/netns/f50429991fd6 type nsfs (rw)

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

makakam wrote:
Sun Dec 19, 2021 7:58 pm
dd if=/dev/zero of=/var/media/PNY ELITE PSSD/test.speed bs=1M count=8000 <---------- for SSD this does not work
Probably because you have no rights to create such a file in that location. Reading an error message would really help understand the problem.
Try creating a file on some other location of this drive, or at least show us the error message.
Also keep in mind this test creates a dummy 8GB file that you will have to delete yourself afterwards.

Note that such benchmark measures sequential writing speed, which is not entirely the same as writing random chunks of data received by Torrent client.
If your Torrent client has cache options (I know Deluge has), increasing them may help speed up writing to HDD.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

i take it this is your ssd? /dev/sdb1 on /var/media/CE

What does touch /var/media/CE/test.file say? Also, show us df -h /var/media/CE.

Based on previous benchmarks there's nothing wrong with your hardware/OS.

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

Ok, this is dd write test result to my SSD drive:
CoreELEC:~ # dd if=/dev/zero of=/var/media/PNY/test.file bs=1M count=8000
8000+0 records in
8000+0 records out
8388608000 bytes (7.8GB) copied, 55.031554 seconds, 145.4MB/s

Now, when I start downloading a torrent to that SSD drive and I check the stats in NetData I see the disk write gets as high as 200MB/s but the net inbound speed is at 0. This lasts for a couple of minutes and then the download starts but it is not that fast. The same thing does not occur when downloading to HDD, the download starts immediately.
Last edited by makakam on Tue Dec 21, 2021 2:52 am, edited 1 time in total.

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

Most likely it tries to preallocate the file (write zeroes) so that there is less fragmentation.

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

@mad_ady: do you think that connecting a USB 3.0 to SATA adapter with UASP and a SATA SSD could help?

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

Not really, no. I don't see any hardware bottlenecks.

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

Ok, I've formatted the SSD and set it as a cache for qbit and the HDD as the default DL location. Now I get stable 67-70MB which is satisfying for me.

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

makakam wrote:
Wed Dec 22, 2021 9:42 pm
Ok, I've formatted the SSD and set it as a cache for qbit and the HDD as the default DL location. Now I get stable 67-70MB which is satisfying for me.
That SSD won't live too long.
The only cache you want to use should be within RAM.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

It depends. I'd say that if he seeds a lot, there will be mostly reads. If he downloads all the isos of all the distros in existence (because what else is there to torrent?), then yes, the disk may age prematurely.
Also, to keep the asd's speed, remember to run fstrim on that partition regularly (e.g. nightly, via cron).
Anyway, you can use something like prometheus + node_explorer + grafana to keep an eye on disk activity/reads/writes if needed.

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

I only use it for downloads, all the torrents are then moved to the hdd and seeded from there.

@mad_ady: The SSD is empty all the time when I'm not downloading anything so is it still necessary to run this "fstrim" service?

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

makakam wrote:
Thu Dec 23, 2021 4:53 am
I only use it for downloads, all the torrents are then moved to the hdd and seeded from there.

@mad_ady: The SSD is empty all the time when I'm not downloading anything so is it still necessary to run this "fstrim" service?
Ah I see, so the whole point is to artificially bump the download speed by some 10% and then spend twice as much time to transfer the downloaded file from one drive to another.
Not to mention that 60MB/s is much faster than bitrate of 8K 120Hz movie, so it cannot be justified really. I can't see the point.

But I get it. I love distcc and compiling on 50 cores just for the sake of it ;)
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

User avatar
mad_ady
Posts: 10178
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 632 times
Been thanked: 821 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mad_ady »

Regarding fstrim - yes. As far as I know ext4 doesn't discard the data on file delete, for performance reasons.

I prefer to use the SSD in my NAS as a read cache for my music and picture (photo frame) to keep my regular hdd spun down as long as possible.

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

mad_ady wrote:
Thu Dec 23, 2021 3:19 pm
to keep my regular hdd spun down as long as possible.
That's another reason not to seed from HDD.
My HDD spins up once a day to rsync my SSD. ;)

But it all boils down to intended use which is not clear at this point - is this an experiment on torrent download speed just for sheer satisfaction, a download engine for a whole dorm, a seed node or what.
How long will seeding take place - if it's not constrained or ends at 2x ratio. If the latter was the case, the best idea would be to transfer downloaded data to HDD after seeding is complete. THEN in would actually make a lot of sense.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

It's not an experiment. I just want to be able to DL torrents fast. Downloading them to the HDD usually fills the cache very quickly and the speed slows down to below 10MB or even less and rarely recovers.
@mctom: if you have a better idea to utilize my SSD please tell me.

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

Tell us about your typical use case and we may come up with something together.
How big files do you download, how often, for how long do you seed them, how many are seeded or downloaded at once, when do you use downloaded files and how.

It may sound like a lot of information, but be mindful all these settings are available in Torrent client because there is no correct setup that works for everyone.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

makakam
Posts: 20
Joined: Fri Dec 03, 2021 3:45 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by makakam »

I don't download just any torrents but only the ones that I'm interested in, from several gigs to 50 or 100 tops. Not more than 2 or 3 simultaneously. I try to seed them for as long as I can, until my drives are full and I have to make some space for new files. Ideally it would be best to have qbit move the files from SSD to HDD after having seeded them to the given ratio.

User avatar
mctom
Posts: 1015
Joined: Wed Nov 11, 2020 4:44 am
languages_spoken: english, polish
ODROIDs: N2+, Game Advance, a few XU4
Location: Gdansk, Poland
Has thanked: 104 times
Been thanked: 124 times
Contact:

Re: Odroid C4 and Qbittorrent DL speed

Post by mctom »

Yep, I agree. Files should be moved to HDD after seeding is finished.
The drawback is you'd have two locations with downloaded files to search through, unless you keep trac of what is being seeded yourself.
But then again, your HDD could stay spun down for most of the time.
Punk ain't no religious cult, punk means thinking for yourself!

Maintainer of PiStackMon

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest