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

libtorrent: Implement two hash queue threads #28

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

stickz
Copy link
Owner

@stickz stickz commented Jul 15, 2024

We can evenly divide the downloads between two different HashQueue objects. This allows us to create anther disk thread to schedule the CPU load more evenly between multiple processor cores. A common scenario is for 30% of the CPU usage to be allocated for hashing. This pull request would split that load between two threads at 15% when multiple downloads are active.

@stickz stickz merged commit feb17f8 into master Jul 15, 2024
2 checks passed
@stickz stickz deleted the disk-threads branch July 15, 2024 12:57
stickz added a commit to stickz/docker-rtorrent-rutorrent that referenced this pull request Jul 16, 2024
## Version 5.4 Release
This release includes two hash threads instead of one to better split the load between multiple threads. For instance, instead of 30% on a single thread it will execute two threads with 15%. Half the downloads are assigned to one thread and the other half to the other thread.

UDNS now works as intended. A build issue is fixed for debugging. A handshake build mount is added for later for multi-threading support.

## What's Changed
* libtorrent: Implement two hash queue threads by @stickz in stickz/rtorrent#28
* libtorrent: Add handshake bind mount by @stickz in stickz/rtorrent#29
* libtorrent: Add UDNS to configure.ac by @stickz in stickz/rtorrent#32
* libtorrent: Fix instrumentation debug regression by @stickz in stickz/rtorrent#33


**Full Changelog**: stickz/rtorrent@v5.3-0.9.8-0.13.8...v5.4-0.9.8-0.13.8
stickz added a commit that referenced this pull request Sep 15, 2024
stickz added a commit that referenced this pull request Sep 15, 2024
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

Successfully merging this pull request may close these issues.

1 participant