Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send and receive buffer sizes #435

Closed
chros73 opened this issue May 30, 2016 · 3 comments
Closed

Send and receive buffer sizes #435

chros73 opened this issue May 30, 2016 · 3 comments

Comments

@chros73
Copy link
Contributor

chros73 commented May 30, 2016

I came across this post about network.send_buffer.size and network.receive_buffer.size : http://www.torrent-invites.com/showthread.php?t=192492&p=1289478&viewfull=1#post1289478
It states that we should use really small receive buffer size.

Since my networking knowledge is pretty limited, can somebody shed some light on these settings?
Thanks

@Wymaxep2011
Copy link

If you are using UDP or any other datagram protocol without delivery check - if your packet will be lost you will loose 1M of data or 50k of data that must be sent again? It's better to loose less.
Opposite, any packet has a header, in this case it's UDP header included into IP header, then the network frame etc so less packets you send more useful data you will able to sent in a time. I.e. bigger packet size is better. If you have such kind of fork you must try some tests to select optimal result

@chros73
Copy link
Contributor Author

chros73 commented Jun 13, 2016

Thanks for your input. I'm using only TCP (no UDP).
What kind of tests are you referring?
If I understand it correctly the bigger buffer size will result bigger memory footprint (not visible in rtorrent process, but in kernel process).
Right now I set those to these, what do you prefer?

network.receive_buffer.size.set = 4M
network.send_buffer.size.set    = 12M

Thanks

@rakshasa
Copy link
Owner

If you have a large number of peers and high bandwidth, use high buffer sizes as that reduces the disk seeking / connection polling.

In low-memory, high-bandwidth case you still want decent buffer sizes. It is however the number of upload/downloading peers you want to reduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants