qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.19k stars 3.97k forks source link

Queueing not honored, not working #20647

Open Zenya393 opened 7 months ago

Zenya393 commented 7 months ago

qBittorrent & operating system versions

qBittorrent v4.6.4
Linux Qt: | 6.6.2 Libtorrent: | 2.0.10.0 Boost: | 1.82.0 OpenSSL: | 3.2.1 zlib: | 1.3.1

What is the problem?

When torrent queuing is enabled, "Do not count slow torrents in these limits" is not working/honored.

I am not expecting more than 1 active download when the top queued/ranked download is above the configured "Download rate threshold" of 20 KiB/s.

In the screenshots below, notice all the torrents active/displayed are above the minimum download threshold of 20 KiB/s. Therefore these torrents are downloading above the threshold, and should not be considered "slow", and they should not be actively downloading.

qbt_queue_2

Steps to reproduce

  1. Enabled "Torrent Queueing". Maximum active downloads = 1. Maximum active uploads = 2. Maximum active torrents = 9999.

  2. Enable "Do not count slow torrents in these limits". Download rate threshold = 20 KiB/s. Upload rate threshold = 10 KiB/s Torrent inactivity timer = 120 seconds.

qbt_queue

Additional context

It also looks like QBT totally disregards the queue rank.

Log(s) & preferences file(s)

No response

Seeker2 commented 7 months ago

Unless these torrents were all force-started, this looks like a serious bug!

(BTW, the file fragmentation caused by downloading all them at once is likely legendary!)

Zenya393 commented 7 months ago

Might there be a breaking limit of how many queued torrents QBT can handle?

glassez commented 7 months ago

@qbittorrent/bug-handlers Could someone check this, and if the problem is confirmed, redirect it to libtorrent?

thalieht commented 7 months ago

Tested with 6 resumed torrents and settings described in OP with libtorrent 2.0.9 and 2.0.10. Can't reproduce and can't test with hundreds of downloading torrents like OP.

DePalmo commented 7 months ago

You don't need to test with hundreds of torrents. I currently have 10 and can confirm this issue. My settings are similar to the OP's and qBittorrent keeps starting next torrents, ignoring these rules. It somewhat works if I set the upload threshold to 0.

qBittorrent v4.6.4 Libtorrent: 1.2.19.0

Zenya393 commented 6 months ago

Might the problem be related to "Torrent inactivity timer" threshold and the "Last Activity"?

In the screenshot below it shows I'm currently downloading data, but the last activity is showing +9 hours ago.
I would have expected the last activity to be "< 1m ago".

qbt_activity