libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

How to increase the initial download speed or speed up the download ramp speed

Open pqqsxhy opened this issue 1 year ago • 5 comments

I have a libtorrent sharing terminal and a downloading terminal within the LAN. The downloading end directly connects to the sharing end's IP port through handle.connect_peer. The downloading speed download_rate always increases linearly from 0, instead of downloading at a very high speed from the beginning. Is there any parameter setting that can directly set the initial download speed? In short, the fastest download speed can occupy the bandwidth of libtorrent download. The purpose is to download files of about 200 megabytes in the shortest time, rather than waiting for the download speed to gradually increase.

pqqsxhy avatar Dec 02 '24 05:12 pqqsxhy

你可以提高BT任务发起默认的pending的request数,任务开始后初始下载速度会从512KB/s 提升到100MB/s 注意需要同时修改socket缓存大小 发送与接收 https://www.libtorrent.org/tuning.html#send-buffer-low-watermark

1265578519 avatar Dec 04 '24 13:12 1265578519

you probably want to set the mixed_mode_algorithm (https://libtorrent.org/reference-Settings.html#mixed_mode_algorithm) to prefer_tcp.

arvidn avatar Jan 25 '25 01:01 arvidn

you probably want to set the mixed_mode_algorithm (https://libtorrent.org/reference-Settings.html#mixed_mode_algorithm) to prefer_tcp.

Thank you

pqqsxhy avatar Jan 27 '25 00:01 pqqsxhy

你可以提高BT任务发起默认的pending的request数,任务开始后初始下载速度会从512KB/s 提升到100MB/s 注意需要同时修改socket缓存大小 发送与接收 https://www.libtorrent.org/tuning.html#send-buffer-low-watermark

谢谢,我看下

pqqsxhy avatar Jan 27 '25 00:01 pqqsxhy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '25 03:04 stale[bot]