Connections limits

Other platforms, generic questions.
Post Reply
thec

Connections limits

Post by thec »

Hi. New user here, coming from uTorrent.

I have a 300/300 Mbps fiber connection, and the Asus RT-AC3200 Router.
From the connection calculator at http://infinite-source.de/az/az-calc.html, i ended up with the following settings in qBittorrent:

Global maximum number of connections: 1200
Maximum number of connections per torrent: 96
Global maximum number of upload slots: 8
Maximum number of upload slots per torrent: 13

Any comments ? Other settings you would recommend changing ?
I currently have about 120 torrents seeding, but this number will increase.

Take care.
Switeck

Re: Connections limits

Post by Switeck »

Global maximum number of upload slots definitely needs to be increased above the default of 8, otherwise only 8 peers will be uploaded to across all your torrents!

I suggest 750 for Global maximum number of upload slots. This should give 40 KiloBYTES/second to each upload slot on average if you had >750 connected peers at once. Global maximum connections needs to be higher than 750 for that to work correctly but that's already the case since you allow 1200 max connections.

Maximum upload slots per torrent set to 13 should reach all connected peers on all but the busiest torrents on a private tracker, where almost all torrents have only a few (0-5) short-lived peers at a time. It's very important for qBitTorrent to not be firewalled or you'll almost never see a peer.

If you're overwhelmingly seeding at a private tracker, then at least while seeding you could lower connections per torrent to 50 or as low as 20 (only slightly more than your 13 max upload slots per torrent). On the private tracker at least, that's unlikely to impact download speed much if any.
Public torrents might download slower this way, but many don't have 50 total peers+seeds anyway.

I manually raise and lower Max connections per torrent depending on whether I'm seeding or downloading, since the activities are so different. (Seeds do not stay connected to other seeds and need far fewer connections as a result.)
thec

Re: Connections limits

Post by thec »

Thank´s for your reply Switch.

I have increased "Global maximum Number Of Upload Slots" to 750 as you suggested.

Regarding seeding,- I am only using private trackers, and really dont care much if my downloads are a bit slow/not maxing my download speed..
So, if I understand you correctly, I should lower “Maximum number of connections per torrent”.  If I lower it to 50, would you recommend increasing “Global maximum number of upload slots” .. ?
50 x 8 = 400 Connections. And with "Global maximum number of connections" set to 1200,- there are 800 connections that is not in use..

Sorry in advance if this is a stupid question ..  ::) Appreciate your input.

br
Switeck

Re: Connections limits

Post by Switeck »

[quote="thec"]So, if I understand you correctly, I should lower “Maximum number of connections per torrent”.[/quote]At least while only seeding, won't hurt at a private tracker to be set to 50 max conns. per torrent all the time.

"If I lower it to 50, would you recommend increasing “Global maximum number of upload slots” .. ?"
May be no need. Upload slots can only go to peers that are missing parts of the download that you have. 13 upload slots per torrent may be enough considering at private trackers almost all connections to you will be seeds. Many times you'll likely have 40+ seeds connected and 0-2 peers.

"50 x 8 = 400 Connections."
Where did 8 come from? 8 max downloading torrents at a time?

"And with "Global maximum number of connections" set to 1200,- there are 800 connections that is not in use.."
1200 may seem like too much, and that may be the case if you only have ~120 seeding torrents which seldom have 1 active peer on them.
However... with enough active torrents, you could have 750 peers that you're uploading to.

Is DHT disabled? It doesn't work on private torrents/private trackers and it uses separate connections of its own to maintain links to the DHT network.
Is LPD/LSD disabled? ...same as DHT.
Is Resolve IPs/Country location enabled? These require making additional connections to determine where "bare" ips are located.
Half open connection limit set very high? It can tie up global connections at least equal to its number...and with enough torrents that have lots of reported-by-tracker seeds/peers on them will likely STAY that way all the time qBT is running by basically constantly retrying all the dead/failed/firewalled ips till qBT is closed or crashes.
Incoming peer/seed connections also use up global max connections -- so much so that some of the global max connections are reserved for their use only. The same may be true for the per-torrent max connection limit -- otherwise, qBT could be constantly attempting dead ips on those torrents but not allowing working incoming peer/seed connections for the same torrents because the max is already reached!
thec

Re: Connections limits

Post by thec »

[quote="Switeck"]
At least while only seeding, won't hurt at a private tracker to be set to 50 max conns. per torrent all the time.
[/quote]
Ok. To sum it up, my connections settings are now:

Global maximum number of connections: 1200
Maximum number of connections per torrent: 50
Global maximum number of upload slots: 750
Maximum number of upload slots per torrent: 13

[quote="Switeck"]
"50 x 8 = 400 Connections."
Where did 8 come from? 8 max downloading torrents at a time?
[/quote]
Yes..

[quote="Switeck"]
1200 may seem like too much, and that may be the case if you only have ~120 seeding torrents which seldom have 1 active peer on them.
However... with enough active torrents, you could have 750 peers that you're uploading to.
[/quote]
Before migrating from uTorrent, I was seeding approx 600-700 torrents. I probably wont go that far with qBittorrent, but maybe stop at around 3-400..

[quote="Switeck"]
Is DHT disabled?[/quote] Yes.

[quote="Switeck"]
Is LPD/LSD disabled? ...same as DHT. [/quote] Yes.

[quote="Switeck"]
Is Resolve IPs/Country location enabled? These require making additional connections to determine where "bare" ips are located.[/quote] Yes. Resolve peer countries is enabled.

[quote="Switeck"]
Half open connection limit set very high? It can tie up global connections at least equal to its number...and with enough torrents that have lots of reported-by-tracker seeds/peers on them will likely STAY that way all the time qBT is running by basically constantly retrying all the dead/failed/firewalled ips till qBT is closed or crashes.[/quote] Using the default value,- 20.

As for now, qBittorrent seems to be working great. I will try to familiarise my self with the different settings, and monitor performance as I add more torrents..

br
thec
Switeck

Re: Connections limits

Post by Switeck »

[quote="thec"][quote="Switeck"]1200 may seem like too much, and that may be the case if you only have ~120 seeding torrents which seldom have 1 active peer on them.
However... with enough active torrents, you could have 750 peers that you're uploading to.[/quote]Before migrating from uTorrent, I was seeding approx 600-700 torrents. I probably wont go that far with qBittorrent, but maybe stop at around 3-400..[/quote]At 400 total torrents running, even if qBT only reserves 3 connections each that's all 1200 global connections in use or reserved for started torrents. Fortunately that doesn't mean you'll likely ever have that many connections at once. Likewise, you probably won't have 750 upload slots going at once.
It's sort of like a store that tries to have enough car parking spaces for that rare flash crowd it maybe only gets 1-3 times yearly. :P
Post Reply