How to torrent efficiently on Manjaro

I’ve been using Manjaro as my daily driver for a couple of months now, and something I’ve noticed is that torrent speeds have been very slow compared to those I used to have when using Windows 10.

Before anyone mentions it: Yes, I am connectable, all of my ports are being forwarded, etc, etc, etc. It has nothing to do with that. I have a 200 mbps connection (up & down), so speed shouldn’t be an issue.

I’m using pretty much the same setup I’ve been using on Windows which is qBit with exactly the same settings. Downloading a 300 meg file would usually take a couple of seconds, but in Manjaro it will take over 5 minutes and sometimes even over 10. I also used to get pretty good upload ratios with all my downloads. If I downloaded a 500 meg file, I could easily get a ratio of over 30 if I left the torrent seeding all day. Now, I barely even break a ratio of 5 when seeding a file of a similar size for the entire day.

What settings can I change to upload and download torrents more efficiently with qBit on Manjaro?

Weird, i don’t have that kind of issue, and i’m using qbittorrent too.
I suppose you converted your Windows computer to Manjaro? So same same hardware?..

2 Likes

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies… :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.

:+1:

Not helping but there is no difference between Manjaro and Windows on my side either. I use(d) same on Windows. This could simply be the torrent file itself.

Here ya go:

[ducky@manjaro ~]$ inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 5.10.53-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=2b6889e9-1d3c-4d39-86cb-2b1ce055cef4 rw quiet udev.log_priority=3 
  Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG STRIX B450-F GAMING v: Rev 1.xx 
  serial: <filter> UEFI: American Megatrends v: 2901 date: 10/16/2019 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 13.65 GiB used: 3.25 GiB (23.8%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Dual Core model: AMD Athlon 3000G with Radeon Vega Graphics bits: 64 
  type: MT MCP arch: Zen family: 17 (23) model-id: 18 (24) stepping: 1 
  microcode: 8108109 cache: L2: 1024 KiB bogomips: 27961 
  Speed: 3476 MHz min/max: 1600/3500 MHz boost: enabled Core speeds (MHz): 
  1: 3476 2: 1397 3: 3425 4: 1394 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm mca 
  mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl 
  npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb 
  perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 
  rdrand rdseed rdtscp rep_good sep sev sev_es sha_ni skinit smap smca sme 
  smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce 
  topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt 
  xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Picasso vendor: ASUSTeK driver: amdgpu v: kernel 
  bus-ID: 08:00.0 chip-ID: 1002:15d8 class-ID: 0300 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: 
  loaded: amdgpu display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.9x11.2") 
  s-diag: 1052mm (41.4") 
  OpenGL: renderer: AMD Radeon Vega 3 Graphics (RAVEN2 DRM 3.40.0 
  5.10.53-1-MANJARO LLVM 12.0.1) 
  v: 4.6 Mesa 21.1.5 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
  v: kernel bus-ID: 08:00.1 chip-ID: 1002:15de class-ID: 0403 
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus-ID: 08:00.6 chip-ID: 1022:15e3 class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.53-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.32 running: no 
Network:
  Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel 
  port: e000 bus-ID: 03:00.0 chip-ID: 8086:1539 class-ID: 0200 
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  IF-ID-1: virbr0 state: down mac: <filter> 
  IP v4: <filter> scope: global broadcast: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 21.03 TiB used: 13.92 TiB (66.2%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST4000DM005-2DP166 
  size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 5980 serial: <filter> rev: 0001 scheme: GPT 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT120BX500SSD1 
  size: 111.79 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: R013 scheme: GPT 
  ID-3: /dev/sdc maj-min: 8:32 vendor: Toshiba model: HDWR21E size: 12.73 TiB 
  block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD 
  rpm: 7200 serial: <filter> rev: 0601 scheme: GPT 
  ID-4: /dev/sdd maj-min: 8:48 vendor: Seagate model: ST4000DM006-2G5107 
  size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 7200 serial: <filter> rev: DN04 scheme: GPT 
  ID-5: /dev/sde maj-min: 8:64 vendor: Western Digital model: WD10EZEX-22MFCA0 
  size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 7200 serial: <filter> rev: 1A01 scheme: MBR 
  Optical-1: /dev/sr0 vendor: HL-DT-ST model: BD-RE WH14NS40 rev: 1.03 
  dev-links: cdrom 
  Features: speed: 48 multisession: yes audio: yes dvd: yes 
  rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
Partition:
  ID-1: / raw-size: 111.49 GiB size: 109.18 GiB (97.93%) 
  used: 17.29 GiB (15.8%) fs: ext4 dev: /dev/sdb2 maj-min: 8:18 label: N/A 
  uuid: 2b6889e9-1d3c-4d39-86cb-2b1ce055cef4 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 296 KiB (0.1%) fs: vfat dev: /dev/sdb1 maj-min: 8:17 label: NO_LABEL 
  uuid: 6725-9687 
  ID-3: /run/media/memo/Seagate BarraCuda 4TB raw-size: 3.64 TiB 
  size: 3.64 TiB (100.00%) used: 285.51 GiB (7.7%) fs: ntfs dev: /dev/sda2 
  maj-min: 8:2 label: Seagate BarraCuda 4TB uuid: D2AAB659AAB639B5 
  ID-4: /run/media/memo/Seagate BarraCuda 4TB 2 raw-size: 3.64 TiB 
  size: 3.64 TiB (100.00%) used: 3.6 TiB (98.9%) fs: ntfs dev: /dev/sdd2 
  maj-min: 8:50 label: Seagate BarraCuda 4TB 2 uuid: C05A106E5A106406 
  ID-5: /run/media/memo/TOSHIBA14TB raw-size: 12.73 TiB 
  size: 12.73 TiB (100.00%) used: 9.17 TiB (72.1%) fs: ntfs dev: /dev/sdc2 
  maj-min: 8:34 label: TOSHIBA14TB uuid: 9A8233E48233C393 
  ID-6: /run/media/memo/The Good Stuff raw-size: 931.51 GiB 
  size: 931.51 GiB (100.00%) used: 866.9 GiB (93.1%) fs: ntfs dev: /dev/sde1 
  maj-min: 8:65 label: The Good Stuff uuid: 4AAACBACAACB933D 
Swap:
  Alert: No swap data was found. 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 128 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-2: /dev/sdc1 maj-min: 8:33 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-3: /dev/sdd1 maj-min: 8:49 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-5:2 info: Razer USA Ornata Chroma type: Keyboard,Mouse 
  driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 500mA chip-ID: 1532:021e class-ID: 0300 
  Device-2: 1-6:3 info: Logitech G502 SE HERO Gaming Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c08b class-ID: 0300 serial: <filter> 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 33.6 C mobo: N/A gpu: amdgpu temp: 33.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 226 Uptime: 5h 24m wakeups: 0 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: pacman: 1250 lib: 334 
  Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06 

And to answer the earlier reply: yes, this is pretty much the same computer but with a different boot drive. All the same qBit settings as well.

I mean, torrents download just fine (albeit slower than usual, which kinda sucks) but what really irks me is not being able to seed as much as before.

Some detective work can guide others to the real culprit,

  • Are the torrents downloading to the same physical drive and/or partition?
  • What are your settings in qBittorrent? (Especially in regards to DHT, PEX, encryption/obfuscation, anonymous mode, disk preallocation)
  • What speeds do you get if you try with aria2c on a known fast torrent? (aria2c https://path/to/download.torrent) (The package name is aria2 if it’s not currently installed)
  • What speeds do you get with qBittorrent on a known fast torrent if you save it to a ramdisk?

To create a temporary ramdisk, make sure it is large enough to hold the entire download:

sudo mkdir /mnt/torrent-test/
sudo mount -t tmpfs -o size=2G,noatime,noexec,nosuid tmpfs /mnt/torrent-test
sudo chmod -R 777 /mnt/torrent-test
sudo chown -R username:username /mnt/torrent-test

You can later unmount the ramdisk and remove the directory when you’re done testing.

Keep in mind a ramdisk consumes RAM. So the above example will immediately consume 2GB of RAM until you unmount it.

When prompted to save the download in qBittorrent, browse to /mnt/torrent-test/

These above tests might clue someone into what might be the culprit if you’re consistently seeing slower speeds under Manjaro vs Windows 10, using the same version of qBittorrent.


For comparison, here is a sample of the dynamic output from aria2c when downloading the LibreOffice torrent to the ramdisk:

sudo mkdir /mnt/torrent-test

sudo mount -t tmpfs -o size=2G,noatime,noexec,nosuid tmpfs /mnt/torrent-test

sudo chmod -R 777 /mnt/torrent-test

sudo chown -R winnie:winnie /mnt/torrent-test

cd /mnt/torrent-test/

aria2c https://download.documentfoundation.org/libreoffice/stable/7.1.5/rpm/x86_64/LibreOffice_7.1.5_Linux_x86-64_rpm.tar.gz.torrent

208MiB/257MiB(81%) CN:24 SD:17 DL:9.1MiB ETA:5s

That’s approximately 9.1 MiB/s, which translates to roughly 73 Mbps (our service is marketed as “50 Mbps”, but we regularly see speeds exceed that.)

1 Like

The only things I see wrong in your inxi is that:

so read this but this is unrelated to your current problem; just ensuring you don’t get freezes in the future.

  1. You have NTFS HDDs mounted so the mount parameters of these are crucial if you want to attain a high speed, and you seem to be using automounts:
    Are any of these automounts in use for qBitTorrent?

  2. What are the paths for:

    MainWindowLastDir=
    FileLogger\Path=
    save_path_history=
    

    in your qBittorrent.conf file under both Windows and Manjaro?

  3. Can we have a screenshot of the output of https://speedtest.net from both Windows and Manjaro?

:thinking:

Another thing to rule out is to check (or force set) the option in your network card to “Auto Negotiate”. Many systems default to “Ignore”. Change this to “Automatic”.

link-negotiation

If it hasn’t been set previously, might as well Apply and reboot your computer to further assess your download speeds. (I believe a reboot / reloading of the driver is required for the change to take effect.)

However, I wrote the above steps as a process of elimination, since it might clue others that this might be one or the following at fault,

  • physical drive
  • filesystem
  • software application
  • unfriendly settings for Linux / native filesystem
  • network card and/or driver

UPDATE: Just to confirm, it does indeed require a reboot (or reloading the module) for the change to take effect.

3 Likes

This seems to have fixed the issue. Can’t believe I missed that even though I went through the connection settings a handful of times.

Thank you!

1 Like

Thanks for the heads-up, I’ll definitely check it out.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.